Quantcast
Channel: Configuration - Home Assistant Community
Viewing all 105971 articles
Browse latest View live

Best way to track energy?

$
0
0

I currently only track energy for my washer and dryer using plugs they are both connected to. Actually real purpose of those was for automation of alerts when things were done however when the Energy area came into HA extra bonus. But that’s all I’m monitoring. I’ve looked at those devices that connect to the mains in the circuit box but am unsure if they provide real value. Isn’t that just going to give me a whole house we don’t know what is using what reading? Plus HA will also include what’s coming from the plugs on the washer and dryer in the totals so will show a higher energy usage than what is really being used.

1 post - 1 participant

Read full topic


Velux KLF200 integration

$
0
0

Hi, I am trying to connect my Velux KLF200 to HA but I am getting this error all the time below. I have connected a LAN cable to KLF 200 and configured a static IP withing a closed range of på LAN and followed the setup instructions for the integration. What am I missing out?

Error during setup of component velux
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 235, in _async_setup_component
result = await task
File “/usr/src/homeassistant/homeassistant/components/velux/init.py”, line 39, in async_setup
await hass.data[DATA_VELUX].async_start()
File “/usr/src/homeassistant/homeassistant/components/velux/init.py”, line 84, in async_start
await self.pyvlx.load_scenes()
File “/usr/local/lib/python3.9/site-packages/pyvlx/pyvlx.py”, line 80, in load_scenes
await self.scenes.load()
File “/usr/local/lib/python3.9/site-packages/pyvlx/scenes.py”, line 51, in load
await get_scene_list.do_api_call()
File “/usr/local/lib/python3.9/site-packages/pyvlx/api/api_event.py”, line 21, in do_api_call
await self.send_frame()
File “/usr/local/lib/python3.9/site-packages/pyvlx/api/api_event.py”, line 33, in send_frame
await self.pyvlx.send_frame(self.request_frame())
File “/usr/local/lib/python3.9/site-packages/pyvlx/pyvlx.py”, line 66, in send_frame
await self.connect()
File “/usr/local/lib/python3.9/site-packages/pyvlx/pyvlx.py”, line 43, in connect
await self.connection.connect()
File “/usr/local/lib/python3.9/site-packages/pyvlx/connection.py”, line 87, in connect
self.transport, _ = await self.loop.create_connection(
File “/usr/local/lib/python3.9/asyncio/base_events.py”, line 1056, in create_connection
raise exceptions[0]
File “/usr/local/lib/python3.9/asyncio/base_events.py”, line 1041, in create_connection
sock = await self._connect_sock(
File “/usr/local/lib/python3.9/asyncio/base_events.py”, line 955, in _connect_sock
await self.sock_connect(sock, address)
File “/usr/local/lib/python3.9/asyncio/selector_events.py”, line 502, in sock_connect
return await fut
File “/usr/local/lib/python3.9/asyncio/selector_events.py”, line 537, in _sock_connect_cb
raise OSError(err, f’Connect call failed {address}’)
OSError: [Errno 113] Connect call failed (‘192.168.1.32’, 51200)

1 post - 1 participant

Read full topic

Climate entity clears setpoint and shut off KNX thermostat

$
0
0

So, the basis of my smart home is a KNX system. I’ve got wall switches with built-in thermostats in every room.
I’ve got everything configured in Home Assistant via the KNX integration as follows:

climate:
    - name: bathroom
      target_temperature_address: 2/1/0
      on_off_address: 2/4/0
      temperature_address: 6/2/1
      target_temperature_state_address: 3/1/0
      on_off_state_address: 3/2/0
      operation_mode_state_address: 3/4/1

The operation mode is moot, but I’ve got the group address set up. The boiler actually is in a ‘dumb’ state. It gets a signal to supply heat when at least one of the valves is open.

The problem comes when the room reaches the temperature setpoint.

In KNX it works as follows: setpoint is set at target temperature > thermostat heats until target is reached and will keep the temperature around the target by closing/opening the valves and sending a signal to the boiler to heat when needed.

Home Assistant does the following: setpoint is set > thermostat heats until setpoint temperature is reached > Home Assistant SHUTS OFF the Climate entity (and thus the KNX thermostat) > setpoint is cleared.
The thermostat is never turned back on unless a new setpoint is set that’s higher then the room temperature.

I don’t understand why the HA Climate entity behaves this way. If I want a room a certain temperature, I don’t want it there for a second and then never again.

Have I set this up wrong?

1 post - 1 participant

Read full topic

How to add integration not on UI and no instructions on Giyhub

$
0
0

Hi

I have a supervised install of Home Assistant and I am trying to add the Evohome (Europe) integration. It does not come up in the search but is available in Github. I just can’t work out why or how to install it?

Thanks in advance

1 post - 1 participant

Read full topic

Picture Glance Card - set an image on Camera status "Spleep"

$
0
0

Hello Everybody,
I am using a Picture Glance Card to show my camera live stream.
Everithing works fine but I would like to place an image instead of the camera live preview when it is on sleep mode.
This is my config:

camera_view: live
type: picture-glance
title: Kitchen
entities:
  - entity: switch.c6n_sleep
camera_image: camera.c6n_xxxxxxx
entity: switch.c6n_sleep
state_image:
  'on': /local/images/imagexxx.png

1 post - 1 participant

Read full topic

Nest Doorbell Battery Automation

$
0
0

After having issues with 2 Eufy doorbells, I went for the Nest battery doorbell. I’m trying to get the notifications working like I had on my Eufy’s.

What I had before was when someone was detected it would show me a notification on my TV using Notifications: Send a notification with firestick_4k. This worked perfectly.

I followed the instructions at Nest - Home Assistant but it does not display any pictures/videos on my phone or TV.

Can anyone help me with this? I have 2 weeks to send it back and will do if I can’t get the notifications working properly as the Google App is terrible!

If I don’t use a picture in the notification then I get the alert fine.

This is the code I used:

alias: Doorbell Person Alert
description: ‘’
trigger:

  • platform: device
    device_id: 7dff7f6a507ed355bfd8bd126e011ae1
    domain: nest
    type: camera_person
    condition: []
    action:
  • service: notify.mobile_app_robbs_iphone_xs_max
    data:
    message: Person detected at the front door
    data:
    image: >-
    /api/nest/event_media/{{ trigger.event.data.device_id }}/{{
    trigger.event.data.nest_event_id }}/thumbnail
    mode: single

1 post - 1 participant

Read full topic

Automation not work - user error?

$
0
0

Hi there. I am a beginner in automation / home assistant. I am successfully beyond ESP installation and sensor setup.

The problem is this: I create two automatisms in a graphical interface (one is for turning it on, the other is for turning it off). There is a sensor that monitors the temperature and turns a relay on or off below a certain value. What time condition I specify (08: 00-20: 00) does not work. that is, sometimes it works, sometimes it doesn’t. there are times when the relay does not turn on for days, there are times when every day but never at 8 a.m. but from 12 to 3 p.m., but turning off at 8 p.m.

In another automatism, I tried the temperature / time control separately. This is how it worked.
Here is my automation yaml picture. The highlighted parts is not work. I created this for automatisms in a graphical interface - writing the text part is hard for me.

I hope work my pic insert.

Jeromos

1 post - 1 participant

Read full topic

Cant use template in for field of trigger automation

$
0
0

Hi
I get the error : Message malformed: expected float for dictionary value @ data[‘for’][‘minutes’]
when I use this template in an automation


trigger:
  - type: no_motion
    platform: device
    device_id: e0954ea41d7a6da69baeff2e9558ed13
    entity_id: binary_sensor.v4b01_motion
    domain: binary_sensor
    id: '1'
    for:
      hours: 0
      minutes: {{states('input_number.timeout_offices') |float }}
      seconds: 0

when I test this out it works perfectly and returns a float

2 posts - 2 participants

Read full topic


Zigbee2MQTT Question Third Reality 3RMS16BZ

Z-Wave JS - Removing a device

$
0
0

I have just successfully migrated to Z-Wave JS and everything is working. I do however want to remove and re setup my Schlage Z-Wave Plus lock that is on my front door. When I look in the device properties I see this

image

Am I right in thinking the correct way to remove a device is to first select “Remove Failed Device” and then push the “Exclude” button on the lock itself? I cannot see any option just to remove a device from the network.

Thanks in advance for any help

Richard

1 post - 1 participant

Read full topic

Help with specific webpage scraping (suddenly stopped working)

$
0
0

Hi there

There are a few webpages I scrape content from, most of which in a simple / quick’n’dirty approach.

A few days ago one of a scraped entity became unavailable (no changes or update of the system involved), and the error message is not very helpful:

Logger: homeassistant.components.rest.data
Source: components/rest/data.py:74
Integration: RESTful ([documentation](https://www.home-assistant.io/integrations/rest), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+rest%22))
First occurred: 5:26:36 PM (10 occurrences)
Last logged: 5:31:47 PM
 * Error fetching data: http://webtv.feratel.com/webtv/?cam=4225&t=3&messwLg=1 failed with

It is a temp. sensor:

sensor:
- platform: scrape
  name: cardada_temp
  resource: http://webtv.feratel.com/webtv/?cam=4220&t=3&messwLg=1
  select: "td"
  index: 19

I tried different approaches, no success. Is there a way to have a better error message? or any hints to have the temp. scraped from that page (the one under “Measured values”)?

thx!

1 post - 1 participant

Read full topic

Energy Dashboard is not working since Update 2022.03.02

$
0
0

Hey Guys,

i am totally los thiere right now. My Energydashboard was working fine now for two month, with the new update its not showing actual values, but if I change something in the Dashboard Setup: it will show me in the history the proper changes. I am confused.

I also have a new set of error in the log I did not see before, I guess this is connected. Here The log entrys:

Logger: homeassistant.components.recorder
Source: components/recorder/util.py:133
Integration: Recorder (documentation, issues)
First occurred: 17:22:45 (42 occurrences)
Last logged: 18:00:13

SQLAlchemyError error processing task StatisticsTask(start=datetime.datetime(2022, 3, 9, 16, 35, tzinfo=datetime.timezone.utc)): This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2022-03-09 16:40:13.152557', '2022-03-09 16:35:00.000000', 46.49986163333334, 44.0, 54.0, None, None, None, 257)] (Background on this error at: https://sqlalche.me/e/14/4xp6) (Background on this error at: https://sqlalche.me/e/14/7s2a)
SQLAlchemyError error processing task StatisticsTask(start=datetime.datetime(2022, 3, 9, 16, 40, tzinfo=datetime.timezone.utc)): This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2022-03-09 16:45:14.992867', '2022-03-09 16:40:00.000000', 36.491475699999995, 34.0, 44.0, None, None, None, 257)] (Background on this error at: https://sqlalche.me/e/14/4xp6) (Background on this error at: https://sqlalche.me/e/14/7s2a)
SQLAlchemyError error processing task StatisticsTask(start=datetime.datetime(2022, 3, 9, 16, 45, tzinfo=datetime.timezone.utc)): This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2022-03-09 16:50:16.507862', '2022-03-09 16:45:00.000000', 23.446890626666665, 20.0, 34.0, None, None, None, 257)] (Background on this error at: https://sqlalche.me/e/14/4xp6) (Background on this error at: https://sqlalche.me/e/14/7s2a)
SQLAlchemyError error processing task StatisticsTask(start=datetime.datetime(2022, 3, 9, 16, 50, tzinfo=datetime.timezone.utc)): This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2022-03-09 16:55:13.065088', '2022-03-09 16:50:00.000000', 12.449374366666664, 10.0, 20.0, None, None, None, 257)] (Background on this error at: https://sqlalche.me/e/14/4xp6) (Background on this error at: https://sqlalche.me/e/14/7s2a)
SQLAlchemyError error processing task StatisticsTask(start=datetime.datetime(2022, 3, 9, 16, 55, tzinfo=datetime.timezone.utc)): This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2022-03-09 17:00:13.038394', '2022-03-09 16:55:00.000000', 6.9812573733333325, 6.0, 10.0, None, None, None, 257)] (Background on this error at: https://sqlalche.me/e/14/4xp6) (Background on this error at: https://sqlalche.me/e/14/7s2a)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/recorder/__init__.py", line 803, in _process_one_task_or_recover
    return task.run(self)
  File "/usr/src/homeassistant/homeassistant/components/recorder/__init__.py", line 417, in run
    if statistics.compile_statistics(instance, self.start):
  File "/usr/src/homeassistant/homeassistant/components/recorder/util.py", line 428, in wrapper
    return job(instance, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/recorder/statistics.py", line 553, in compile_statistics
    metadata_id = _update_or_add_metadata(instance.hass, session, stats["meta"])
  File "/usr/src/homeassistant/homeassistant/components/recorder/statistics.py", line 232, in _update_or_add_metadata
    old_metadata_dict = get_metadata_with_session(
  File "/usr/src/homeassistant/homeassistant/components/recorder/statistics.py", line 646, in get_metadata_with_session
    result = execute(
  File "/usr/src/homeassistant/homeassistant/components/recorder/util.py", line 133, in execute
    result = list(qry)
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/ext/baked.py", line 382, in __iter__
    return self._iter().__iter__()
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/ext/baked.py", line 412, in _iter
    result = self.session.execute(
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 1688, in execute
    conn = self._connection_for_bind(bind)
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 1529, in _connection_for_bind
    return self._transaction._connection_for_bind(
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 721, in _connection_for_bind
    self._assert_active()
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 601, in _assert_active
    raise sa_exc.PendingRollbackError(
sqlalchemy.exc.PendingRollbackError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely)
(sqlite3.DatabaseError) database disk image is malformed
[SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)]
[parameters: ('2022-03-09 16:22:45.445618', '2022-03-09 13:30:00.000000', 24.0, 24.0, 24.0, None, None, None, 257)]
(Background on this error at: https://sqlalche.me/e/14/4xp6) (Background on this error at: https://sqlalche.me/e/14/7s2a)

Logger: homeassistant.components.recorder.util
Source: components/recorder/util.py:88
Integration: Recorder (documentation, issues)
First occurred: 17:22:45 (42 occurrences)
Last logged: 18:00:13

Error executing query: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2022-03-09 16:40:13.152557', '2022-03-09 16:35:00.000000', 46.49986163333334, 44.0, 54.0, None, None, None, 257)] (Background on this error at: https://sqlalche.me/e/14/4xp6) (Background on this error at: https://sqlalche.me/e/14/7s2a)
Error executing query: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2022-03-09 16:45:14.992867', '2022-03-09 16:40:00.000000', 36.491475699999995, 34.0, 44.0, None, None, None, 257)] (Background on this error at: https://sqlalche.me/e/14/4xp6) (Background on this error at: https://sqlalche.me/e/14/7s2a)
Error executing query: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2022-03-09 16:50:16.507862', '2022-03-09 16:45:00.000000', 23.446890626666665, 20.0, 34.0, None, None, None, 257)] (Background on this error at: https://sqlalche.me/e/14/4xp6) (Background on this error at: https://sqlalche.me/e/14/7s2a)
Error executing query: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2022-03-09 16:55:13.065088', '2022-03-09 16:50:00.000000', 12.449374366666664, 10.0, 20.0, None, None, None, 257)] (Background on this error at: https://sqlalche.me/e/14/4xp6) (Background on this error at: https://sqlalche.me/e/14/7s2a)
Error executing query: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2022-03-09 17:00:13.038394', '2022-03-09 16:55:00.000000', 6.9812573733333325, 6.0, 10.0, None, None, None, 257)] (Background on this error at: https://sqlalche.me/e/14/4xp6) (Background on this error at: https://sqlalche.me/e/14/7s2a)
Logger: homeassistant.components.recorder.util
Source: components/recorder/util.py:152
Integration: Recorder (documentation, issues)
First occurred: 17:22:45 (126 occurrences)
Last logged: 18:00:13

Error executing query: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2022-03-09 16:50:16.507862', '2022-03-09 16:45:00.000000', 23.446890626666665, 20.0, 34.0, None, None, None, 257)] (Background on this error at: https://sqlalche.me/e/14/4xp6) (Background on this error at: https://sqlalche.me/e/14/7s2a)
Error executing query: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2022-03-09 16:55:13.065088', '2022-03-09 16:50:00.000000', 12.449374366666664, 10.0, 20.0, None, None, None, 257)] (Background on this error at: https://sqlalche.me/e/14/4xp6)
Error executing query: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2022-03-09 16:55:13.065088', '2022-03-09 16:50:00.000000', 12.449374366666664, 10.0, 20.0, None, None, None, 257)] (Background on this error at: https://sqlalche.me/e/14/4xp6) (Background on this error at: https://sqlalche.me/e/14/7s2a)
Error executing query: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2022-03-09 17:00:13.038394', '2022-03-09 16:55:00.000000', 6.9812573733333325, 6.0, 10.0, None, None, None, 257)] (Background on this error at: https://sqlalche.me/e/14/4xp6)
Error executing query: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO statistics_short_term (created, start, mean, min, max, last_reset, state, sum, metadata_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2022-03-09 17:00:13.038394', '2022-03-09 16:55:00.000000', 6.9812573733333325, 6.0, 10.0, None, None, None, 257)] (Background on this error at: https://sqlalche.me/e/14/4xp6) (Background on this error at: https://sqlalche.me/e/14/7s2a)

Can someone help me with this?
In advance: I already checked the variables: they are device_class:energy and state total- this should be fine I guess… I totally lost grip.
Best regards,
Alex

1 post - 1 participant

Read full topic

Smart meter integration?

$
0
0

Hello.

I have just had a Landis Gyr+ E470 fitted which came with a Geo Trio IHD.

I read I could get data from N3rgy using the mac id of my IHD etc and have set up an account with N3rgy but can only find a way to download a zip file of consumption data.

Is there another way I can intergrate all this into HA?

Do I need to go out and buy another smart meter display like the Hildebrand offerings? I found an N3rgy HACS integration here:

GitHub - smartechru/n3rgy: This component is a Home Assistant custom sensor that provides access to historic energy consumption data and tariff information..

But not sure this is what I need?

Any suggestions?

1 post - 1 participant

Read full topic

Some weird DNS problem?

$
0
0

Today, out of nothing, I got a weird issue.

Supervisor says installation unsupported. Until yesterday it was not a problem.

core-2022.3.3
supervisor-2022.03.2
debian bullseye full up to date
x86 - 64bit

supervisor log:

22-03-09 17:23:54 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.systemd1
22-03-09 17:23:54 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.login1
22-03-09 17:23:54 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.hostname1
22-03-09 17:23:54 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.timedate1
22-03-09 17:23:55 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.NetworkManager
22-03-09 17:23:55 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface de.pengutronix.rauc
22-03-09 17:23:55 WARNING (MainThread) [supervisor.dbus.manager] Can't load dbus interface de.pengutronix.rauc: The name de.pengutronix.rauc was not provided by any .service files
22-03-09 17:23:55 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.resolve1
22-03-09 17:23:55 WARNING (MainThread) [supervisor.dbus.manager] Can't load dbus interface org.freedesktop.resolve1: Unit dbus-org.freedesktop.resolve1.service not found.
22-03-09 17:23:55 INFO (MainThread) [supervisor.host.info] Updating local host information
22-03-09 18:23:55 INFO (MainThread) [supervisor.host.services] Updating service information
22-03-09 18:23:55 INFO (MainThread) [supervisor.host.network] Updating local network information
22-03-09 18:23:55 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
22-03-09 18:23:55 INFO (MainThread) [supervisor.host.manager] Host information reload completed
22-03-09 18:23:55 INFO (MainThread) [supervisor.host.apparmor] Loading AppArmor Profiles: {'hassio-supervisor'}
22-03-09 18:23:55 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-cli with version 2021.12.0
22-03-09 18:23:55 INFO (MainThread) [supervisor.plugins.cli] Starting CLI plugin
22-03-09 18:23:56 INFO (SyncWorker_1) [supervisor.docker.cli] Starting CLI ghcr.io/home-assistant/amd64-hassio-cli with version 2021.12.0 - 172.30.32.5
22-03-09 18:23:56 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-dns with version 2021.06.0
22-03-09 18:23:56 INFO (MainThread) [supervisor.plugins.dns] Starting CoreDNS plugin
22-03-09 18:23:57 INFO (SyncWorker_0) [supervisor.docker.dns] Starting DNS ghcr.io/home-assistant/amd64-hassio-dns with version 2021.06.0 - 172.30.32.3
22-03-09 18:23:57 INFO (MainThread) [supervisor.plugins.dns] Updated /etc/resolv.conf
22-03-09 18:23:57 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-audio with version 2021.07.0
22-03-09 18:23:57 INFO (MainThread) [supervisor.plugins.audio] Starting Audio plugin
22-03-09 18:23:58 INFO (SyncWorker_1) [supervisor.docker.audio] Starting Audio ghcr.io/home-assistant/amd64-hassio-audio with version 2021.07.0 - 172.30.32.4
22-03-09 18:23:58 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-observer with version 2021.10.0
22-03-09 18:23:58 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-multicast with version 2022.02.0
22-03-09 18:23:58 INFO (MainThread) [supervisor.plugins.multicast] Starting Multicast plugin
22-03-09 18:23:59 INFO (SyncWorker_1) [supervisor.docker.multicast] Starting Multicast ghcr.io/home-assistant/amd64-hassio-multicast with version 2022.02.0 - Host
22-03-09 18:23:59 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
22-03-09 18:24:19 WARNING (MainThread) [supervisor.utils.codenotary] rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 34.207.232.93:443: i/o timeout"
22-03-09 18:24:19 INFO (MainThread) [supervisor.homeassistant.secrets] Loaded 1 Home Assistant secrets
22-03-09 18:24:19 INFO (SyncWorker_3) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/qemux86-64-homeassistant with version 2022.3.3
22-03-09 18:24:19 INFO (MainThread) [supervisor.os.manager] No Home Assistant Operating System found
22-03-09 18:24:20 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/core repository
22-03-09 18:24:20 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/f5a8083e repository
22-03-09 18:24:20 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/a0d7b954 repository
22-03-09 18:24:20 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/6872d8d8 repository
22-03-09 18:24:21 INFO (MainThread) [supervisor.store] Loading add-ons from store: 65 all - 65 new - 0 remove
22-03-09 18:24:21 INFO (MainThread) [supervisor.addons] Found 9 installed add-ons
22-03-09 18:24:21 INFO (SyncWorker_5) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-configurator with version 5.3.3
22-03-09 18:24:21 INFO (SyncWorker_4) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-mariadb with version 2.4.0
22-03-09 18:24:21 INFO (SyncWorker_3) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-vlc with version 0.1.3
22-03-09 18:24:21 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to ghcr.io/hassio-addons/vscode/amd64 with version 4.1.0
22-03-09 18:24:21 INFO (SyncWorker_6) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-ssh with version 9.3.0
22-03-09 18:24:21 INFO (SyncWorker_7) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-mosquitto with version 6.0.1
22-03-09 18:24:21 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-samba with version 9.5.1
22-03-09 18:24:21 INFO (SyncWorker_2) [supervisor.docker.interface] Attaching to f5a8083e/amd64-addon-dutch_gas_prices with version 2022.2.27.1
22-03-09 18:24:21 INFO (SyncWorker_5) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-zwave_js with version 0.1.54
22-03-09 18:24:21 INFO (MainThread) [supervisor.backups.manager] Found 13 backup files
22-03-09 18:24:21 INFO (MainThread) [supervisor.discovery] Loaded 3 messages
22-03-09 18:24:21 INFO (MainThread) [supervisor.ingress] Loaded 0 ingress sessions
22-03-09 18:24:21 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.SETUP
22-03-09 18:24:21 INFO (MainThread) [supervisor.resolution.check] System checks complete
22-03-09 18:24:21 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP
22-03-09 18:24:21 WARNING (MainThread) [supervisor.resolution.evaluations.base] Systemd-Resolved is required for DNS in Home Assistant. (more-info: https://www.home-assistant.io/more-info/unsupported/systemd_resolved)
22-03-09 18:24:21 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-03-09 18:24:21 INFO (MainThread) [supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not running - CoreState.SETUP
22-03-09 18:24:21 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP
22-03-09 18:24:21 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-03-09 18:24:21 INFO (MainThread) [__main__] Running Supervisor
22-03-09 18:24:21 WARNING (MainThread) [supervisor.core] System running in a unsupported environment!
22-03-09 18:24:21 INFO (MainThread) [supervisor.jobs] 'OSManager.mark_healthy' blocked from execution, no Home Assistant OS available
22-03-09 18:24:21 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.INITIALIZE' starting 0 add-ons
22-03-09 18:24:22 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.SYSTEM' starting 2 add-ons
22-03-09 18:24:23 INFO (SyncWorker_3) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-mosquitto with version 6.0.1
22-03-09 18:24:24 INFO (SyncWorker_5) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-mariadb with version 2.4.0
22-03-09 18:24:26 INFO (MainThread) [supervisor.services.modules.mqtt] Set core_mosquitto as service provider for mqtt
22-03-09 18:24:28 INFO (MainThread) [supervisor.services.modules.mysql] Set core_mariadb as service provider for MySQL
22-03-09 18:24:29 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.SERVICES' starting 6 add-ons
22-03-09 18:24:30 INFO (SyncWorker_6) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-zwave_js with version 0.1.54
22-03-09 18:24:30 INFO (SyncWorker_4) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-ssh with version 9.3.0
22-03-09 18:24:31 INFO (SyncWorker_5) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-samba with version 9.5.1
22-03-09 18:24:32 INFO (SyncWorker_2) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-vlc with version 0.1.3
22-03-09 18:24:32 INFO (MainThread) [supervisor.api.middleware.security] /network/interface/default/info access from core_samba
22-03-09 18:24:33 INFO (MainThread) [supervisor.api.middleware.security] /host/info access from core_zwave_js
22-03-09 18:24:33 INFO (SyncWorker_3) [supervisor.docker.addon] Starting Docker add-on ghcr.io/hassio-addons/vscode/amd64 with version 4.1.0
22-03-09 18:24:33 INFO (MainThread) [supervisor.auth] Auth request from 'core_mosquitto' for 'mosquitto'
22-03-09 18:24:33 INFO (MainThread) [supervisor.auth] Home Assistant not running, checking cache
22-03-09 18:24:34 INFO (SyncWorker_0) [supervisor.docker.addon] Starting Docker add-on f5a8083e/amd64-addon-dutch_gas_prices with version 2022.2.27.1
22-03-09 18:24:39 INFO (MainThread) [supervisor.core] Start Home Assistant Core
22-03-09 18:24:39 INFO (SyncWorker_2) [supervisor.docker.interface] Starting homeassistant
22-03-09 18:24:40 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
22-03-09 18:24:54 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.STARTUP
22-03-09 18:24:54 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-03-09 18:24:56 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
22-03-09 18:26:06 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
22-03-09 18:26:06 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.APPLICATION' starting 1 add-ons
22-03-09 18:26:07 INFO (SyncWorker_5) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-configurator with version 5.3.3
22-03-09 18:26:12 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled
22-03-09 18:26:12 INFO (MainThread) [supervisor.core] Supervisor is up and running
22-03-09 18:26:12 INFO (MainThread) [supervisor.host.info] Updating local host information
22-03-09 18:26:12 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
22-03-09 18:26:12 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING
22-03-09 18:26:12 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON
22-03-09 18:26:12 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.PLUGIN
22-03-09 18:26:12 INFO (MainThread) [supervisor.host.services] Updating service information
22-03-09 18:26:13 INFO (MainThread) [supervisor.host.network] Updating local network information
22-03-09 18:26:13 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
22-03-09 18:26:13 INFO (MainThread) [supervisor.host.manager] Host information reload completed

This is suspicious, if I’m not wrong, that IP is of GitHub:

22-03-09 18:24:19 WARNING (MainThread) [supervisor.utils.codenotary] rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 34.207.232.93:443: i/o timeout"

Anyone can give me a push in the right direction?

Thanks in advance :wink:

1 post - 1 participant

Read full topic

Solax Power in Home Assistant

$
0
0

First I want to apologies because I´m super new on this and I almost know nothing.

I was able to install Home Assistant on a VirtualBox (VM) machine and I would like to add the SOLAX POWER add-on to Home Assistant.

I have Solax Power Inverter X1.

When I click to added I get the following screen asking me for:

  1. IP address
  2. Port
  3. Password

QUESTION

  1. How do I get the IP address that I need to introduce here? For this, I connected to the Solax Power wifi and typed the IP address 5.8.8.8 to access the configuration. (I´m attaching the configuration that I got).
  2. The port appears by default: 80 (It is this correct?)
  3. Password: I have not idea which password is asking me for here?
    a) Should be this one the WIFI internet password? o which password should I introduce here?
    b) should be this the password the one I introduced for accessing the 5.8.8.8?

Screen I got trying to add the Solax Power add-on

Configuration that I got from the inverter:

Thank you very much

1 post - 1 participant

Read full topic


Binary_sensor state based on two other binary_sensors

$
0
0

Hello,

I want to create a binary_sensor that is set to on when two other binary_sensors change from off to on (and condition) and is set to off when the same two binary_sensors change from on to off (also and condition).

Currently I do it with a couple automations and an input_boolean helper, which is set to on or off based on state of the two binary_sensors, and then the binary_sensor changes it state based on the state of the input_boolean.

Is there a way of doing if without the helper? I know that triggers may be used in sensors and binary_sensors, but I don’t get to replicate the desired behaviour.

input_boolean:
  movimiento_piso

automation:
  - id: alarma_movimiento_piso_on
    alias: Alarma:Movimiento piso on
    description: ''
    trigger:
      - platform: state
        entity_id: binary_sensor.sonoff_a480019e03
        from: 'off'
        to: 'on'
      - platform: state
        entity_id: binary_sensor.sonoff_a480028dba
        from: 'off'
        to: 'on'
    condition:
      - condition: and
        conditions:
          - condition: state
            entity_id: binary_sensor.sonoff_a480019e03
            state: 'on'
          - condition: state
            entity_id: binary_sensor.sonoff_a480028dba
            state: 'on'
    action:
      - service: input_boolean.turn_on
        data: {}
        target:
          entity_id: input_boolean.movimiento_piso
    mode: single
 
  - id: alarma_movimiento_piso_off
    alias: Alarma:Movimiento piso off
    description: ''
    trigger:
      - platform: state
        entity_id: binary_sensor.sonoff_a480019e03
        from: 'on'
        to: 'off'
      - platform: state
        entity_id: binary_sensor.sonoff_a480028dba
        from: 'on'
        to: 'off'
    condition:
      - condition: and
        conditions:
          - condition: state
            entity_id: binary_sensor.sonoff_a480019e03
            state: 'off'
          - condition: state
            entity_id: binary_sensor.sonoff_a480028dba
            state: 'off'
    action:
      - service: input_boolean.turn_off
        data: {}
        target:
          entity_id: input_boolean.movimiento_piso
    mode: single

binary_sensor:
  - platform: template
    sensors:      
      movimiento_piso:
        friendly_name: Sensor Movimiento piso
        device_class: motion
        value_template: "{{ is_state('input_boolean.movimiento_piso', 'on') }}"

Thank you!

1 post - 1 participant

Read full topic

Sensors what am i doing wrong?

$
0
0

First thing to say is although i have learnt to add a line or two when needed i basically know NOTHING about coding.
I’m using two tablets one for ha dashboard and one to display outdoor cam the sensors using the ha mobile app take so long to update (up to 20 min or more) i don’t know why as it works great with my s10.
the delay causes probs with charging automations
I have fully kiosk on both tabs so following a post by xstrex Fully Kiosk Browser i added sensors in ha and now get real time updates for battery levels.
the problem comes when trying to add battery temp sensor iit all looks good and sensor shows in ha but reads 0 i have tried many ways of righting it but same result.

version core-2022.2.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.91
arch x86_64
timezone Europe/London
Home Assistant Community Store (click for more details) Home Assistant Cloud (click for more details) Home Assistant Supervisor (click for more details) Lovelace (click for more details)

2 posts - 2 participants

Read full topic

Config-editor no copy and paste?

Automation to Prevent Printer Head clogging (Epson)

$
0
0

I have an Epson Workforce ET-4550 printer that we only use every couple weeks, and thus the print head winds up needing cleaning when we need to use it.

I’ve also heard that the print head can become permanently clogged if left unused for a long periods.

So, is this possible (automating a page print every few days) with Home Assistant? The Epson integration only provides status and tank levels.

2 posts - 2 participants

Read full topic

Event not firing a trigger – event_length never goes above 0 (SecuritySpy for Home Assistant)

$
0
0

I can’t get an event to fire a trigger with an event_object Attribute change, but all the pieces seem to be working as expected. This automation is trying to use the SecuritySpy for Home Assistant integration, but it’s not clear if that is where the problem lies.

My setup

Goal
SecuritySpy will detect if a human is present, and fire an event – I’d like to have Home Assistant do something when this happens. For example, someone walks up to the front door and it turns the porch light to 100%, sends me a notification, etc. For now (while testing) I just have it set up to send me a notification.

Automation YAML

alias: 'cam1 / Front Door: person detected – TEST'
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor.cam1_front_door_motion
    attribute: event_object
    to: human
condition: []
action:
  - service: camera.snapshot
    data:
      entity_id: camera.cam1_front_door
      filename: /config/www/cam_captures/frontdoor.jpg
  - service: notify.mobile_app_benish
    data:
      message: Person at Front Door
      data:
        image: /local/cam_captures/frontdoor.jpg
        url: securityspy:///live?cameraNum=2
        actions:
          - action: URI
            title: Large Image (latest capture)
            uri: >-
              https://myNabuCasaUniqueIDobfuscated.ui.nabu.casa/local/cam_captures/frontdoor.jpg
          - action: URI
            title: Live Video in Security Spy
            uri: securityspy:///live?cameraNum=2
mode: single

The Automation is enabled. The Trigger is a direct copy of the example on the SecuritySpy for Home Assistant README (but with my entity_id).

All the pieces seem to be working individually:

  • If I click Run Actions from the Automation detail page, the Actions work as expected (I get a notification on my phone with the specified image and notification actions).
  • There are no Conditions, so I guess we can say those work. :slight_smile:
  • SecuritySpy will send me a native notification when a human is detected with this camera, so the human detection is working as expected in SecuritySpy.
  • If I get rid of attribute: event_object and to: human in the above Automation – i.e. just use regular motion detection without checking for a human – it fires the trigger as expected. In fact it fires a ton of then in quick succession. So the binary_sensor.cam1_front_door_motion created by SecuritySpy for Home Assistant does work: regular motion is detected and the corresponding event will fire.
  • If I look at the binary_sensor.cam1_front_door_motion Entity in Developer Tools > States I can see the event_object Attribute change to human as expected when I walk in front of the camera as seen in this video screen capture. Of note, event_object rapidly changes between human and None and the event_length never goes above 0 when it’s at human. I suspect this might be the root of the issue? But I don’t have a for: setup for the Trigger, so I’d expect it to trigger regardless of the event_length? Out of desperation I did try setting for: to 0 seconds, but that had no effect so I removed it.
  • If I manually set the state to on with event_object: human via Developer Tools > States > Set State, it will trigger the Automation. Also of note, it takes about 4 seconds for the notification to show up when I manually set the State like this. In contrast, notifications directly from SecuritySpy and the motion-only test Automation in Home Assistant (with no event_object: human) both trigger / notify much faster (less than a second).

I enabled Debug Logging for SecuritySpy for Home Assistant, but I don’t see anything there.

I’m new to Home Assistant and very new to YAML, so apologies for any mistakes regarding terminology. Any help is greatly appreciated.

1 post - 1 participant

Read full topic

Viewing all 105971 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>