HASS.Agent Satellite randomly stops sending out MQTT after hibernate or sleep

Setup: - HASS.Agent 2.1.0-beta1 [BETA} - Tailscale connecting the desktop to Pi, requesting DNS from PiHole - Docker on Pi - mosquitto 2.0.18 - HA Core 2024.3.0 - but problem has been since at least 2024.1.0 version --- Expected behaviour: - HASS.Agent Satellite should keep sending MQTT info for sensors and commands after waking from hibernate/sleep. Actual behaviour: - HASS.Agent Satellite does not send out MQTT info, seems to be after waking from hibernate/sleep. - I have noticed the normal HASS.Agent sometimes does this too but to a lesser and even less replicable degree - Comment: Pull Request #51 may have provided a fix for this, I'll check again later with the settings enabled --- Relevant Github things: - Bug: Reconnecting MQTT not working properly #35 - Feature: ability to ignore MQTT grace period after waking up from hibernation #51 - Notably, this fix does not address the Satellite portion. Edit 1: Restarting HASS.Agent does not fix this problem, notably restarting the Satellite service does (duh). Probably good to put a restart service button in HASS.Agent.
No description
No description
18 Replies
Amadeo
Amadeo8mo ago
hm, just to be clear, the issue is that after hibernation/sleep the HASS.Agent satellite service doesn't send any messages and doesn't react to commands until restarted?
Bucky
Bucky8mo ago
correct, the way I set it is that Home Assistant will look at loggeduser to decide what to display so every time Satellite service breaks, it displays nothing
Amadeo
Amadeo8mo ago
could you please see if you have satellite logs from the time this occured? satellite is installed in the programfiles
Bucky
Bucky8mo ago
The system halted from 07:00 to 22:00
Bucky
Bucky8mo ago
right now it says connected, but nothing is showing up same thing with the normal hass.agent too
Bucky
Bucky8mo ago
oh btw this may be important
Bucky
Bucky8mo ago
No description
Bucky
Bucky8mo ago
so the error shows up like this
Bucky
Bucky8mo ago
No description
Bucky
Bucky8mo ago
when in normal situation, it would be like this Update: this is the correct response (so far)
No description
Bucky
Bucky8mo ago
No description
DrR0x
DrR0x8mo ago
Mqtt issues for sure then Mqtt explorer? Are entities still there?
Bucky
Bucky8mo ago
i'll check in a bit
Bucky
Bucky8mo ago
No description
Bucky
Bucky7mo ago
2024-03-17 09:03:48.799 +08:00 [INF] [SYSTEMSTATE] Session halting: system suspending
2024-03-17 09:04:42.033 +08:00 [INF] [SYSTEMSTATE] Session resuming
2024-03-17 09:04:52.075 +08:00 [INF] [MQTT] Connected
2024-03-17 09:04:56.363 +08:00 [WRN] [MQTT] Disconnected: UnspecifiedError
2024-03-17 09:03:48.799 +08:00 [INF] [SYSTEMSTATE] Session halting: system suspending
2024-03-17 09:04:42.033 +08:00 [INF] [SYSTEMSTATE] Session resuming
2024-03-17 09:04:52.075 +08:00 [INF] [MQTT] Connected
2024-03-17 09:04:56.363 +08:00 [WRN] [MQTT] Disconnected: UnspecifiedError
note: this was mistaken, I don't think this is actually true, I rechecked and it's reported as unavailable note again: Commands sent can be received properly. just sensors are not working Back with more info, some very interesting things I thought the bug was related to my unique setup where the pi runs tailscale, and HASS is hooked through tailscale DNS but I switched over to direct local IP and the issue persists MQTT explorer shows the changes properly but HA just doesn't pick it up, for whatever reason Both satellite and core HASS are broken if: - the pi restarts, regardless of local/tailscale ip But it's fine if: - disconnection happens on the client side, at least on the short term
Amadeo
Amadeo7mo ago
Hm, how long is your mqtt grace period in the settings?
Bucky
Bucky7mo ago
60 seconds
Want results from more Discord servers?
Add your server