You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. This might be an edge case scenario that won't be encountered too often, but wanted to document it since I found it while testing.
Reproduce Steps
Have a helper button.
Home Assistant running.
TimescaleDB not running.
Press the helper button 5 times.
Bring TimescaleDB back up.
Query ltss table. The first couple records are missing while 3, 4, 5 are present with the correct time and state values.
To me, this means LTSS is designed to re-sync once the connection is made, but is somehow either not recognizing the first few as needing resync (is this a delay it recognizing the database is down?), or is the database not capturing the first few in the sync request (so this might be a database issue).
Setup
Home Assistant
Core 2024.11.3
Frontend 20241106.2
In a podman container from: ghcr.io/home-assistant/home-assistant:stable
TimescaleDB
docker.io/timescale/timescaledb:latest-pg17
I extended this by installing postgis (ironically, this was easier than figuring out how to get non-privledged user working in timescale/timescaledb-ha).
The text was updated successfully, but these errors were encountered:
This is expected behaviour. LTSS tries to write a record (a new state) to the database a finite amount of times (with a delay in between). If all tries fail, the record will be dropped. We cant keep records in memory "forever" until the database comes back online.
Good thing I moved to posgres with the record integration. I setup a podman container that will start before home assistants container. Then I created a replica timescaledb for long term storage. This setup allows me to do cools things link shutdown all the heavy lifting processes while the rpi is on battery backup.
This battery running mode is mostly why I wanted LTSS to be more flexible in dumping to the timescaledb, but it makes sense why it's not.
Hello. This might be an edge case scenario that won't be encountered too often, but wanted to document it since I found it while testing.
Reproduce Steps
To me, this means LTSS is designed to re-sync once the connection is made, but is somehow either not recognizing the first few as needing resync (is this a delay it recognizing the database is down?), or is the database not capturing the first few in the sync request (so this might be a database issue).
Setup
Home Assistant
Core 2024.11.3
Frontend 20241106.2
In a podman container from: ghcr.io/home-assistant/home-assistant:stable
TimescaleDB
docker.io/timescale/timescaledb:latest-pg17
I extended this by installing postgis (ironically, this was easier than figuring out how to get non-privledged user working in timescale/timescaledb-ha).
The text was updated successfully, but these errors were encountered: