Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: sensor state not updating after sleep/hibernation #204

Open
LAB02-Admin opened this issue Nov 1, 2022 · 4 comments
Open

Bug: sensor state not updating after sleep/hibernation #204

LAB02-Admin opened this issue Nov 1, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@LAB02-Admin
Copy link
Member

When resuming from sleep/hibernation, in some cases sensors aren't updated anymore (unless their values change), or HASS.Agent doesn't properly reconnect. This can also occur when Home Assistant restarts.

This is a known bug which will be addressed in a future update.

To circumvent the bug after HA restarts, you can trigger a PublishAllSensors command to have HASS.Agent resend all current sensor values.

[#hassagent-102]

@LAB02-Admin
Copy link
Member Author

Attempted to fix in latest release: https://github.com/LAB02-Research/HASS.Agent/releases/tag/2022.14.0

I'm unable to reproduce this, if anyone still encounters issues please let me know.

@MarcelHue
Copy link

That same Issue happened for me today, My Sensors were Unknown in Home Assistant after I restarted Home Assistant.
To be specific, HASS.Agent_Available & HASS.Agent_sessionstate are having problems while HASS.Agent_lastactive seams to work fine. And for now it seems reproducible since I got the same issue while restarting just now.

@LAB02-Admin
Copy link
Member Author

You can use the PublishAllSensors command in conjunction with this automation trigger:

  trigger:
    - platform: homeassistant
      event: start

Created a ticket to fix this internally: [hassagent-202]

@ITensEI
Copy link

ITensEI commented Oct 17, 2023

I noticed that after HA restarts the MQTT connection on the Satellite Service stays Disconnected. Even going to the settings and pressing Send & Activate doesn't reconnect it. Only thing I found that fixes it is to change the hostname, save, change it back. That way it reconnects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants