Skip to content

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

Open

Description

@LAB02-Admin

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]

Activity

  1. self-assigned this
    on Nov 1, 2022
  2. pinned this issue on Nov 1, 2022
  3. LAB02-Admin commented on Nov 12, 2022

    @LAB02-Admin
    MemberAuthor

    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.

  4. MarcelHue commented on Dec 31, 2022

    @MarcelHue

    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.

  5. LAB02-Admin commented on Jan 14, 2023

    @LAB02-Admin
    MemberAuthor

    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]

  6. ITensEI commented on Oct 17, 2023

    @ITensEI

    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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions