Skip to content

Out of sync state with power sensor #32

Open
@shinyste

Description

Sometimes the state of the entity can be wrong even if there is a power sensor set on the configuration that is reporting the right state.

How to reproduce the issue:

  • Having a hub mini as a manager for an AC unit
  • Having a contact sensor as the power sensor of the AC unit (on the flap of the AC so closed = OFF, opened = ON)
  • Obstruct the hub mini with something in a way that the IR blaster can't reach the AC
  • Turn on the AC on HA, the status of the AC is reported as ON but the contact is still closed (because no IR was received from the AC in truth)
  • For HA the AC is ON even if the physical object is still OFF
image

Here is a screen rapresenting the current scenario.
The "Porta" -> "Closed" is the contact sensor targeted in the power sensor setup.

The steps I've presented are of course done to let the IR blaster fail, but the original issue showed off randomly with the IR blaster sometimes failing to fire off the command or the unit to receive it, not sure, but in the way described above it's quite easy to test it.

Do we have a way to force refresh the entity status based on the power sensor or is it worth to add a recheck based on it and not trust only the entity updated status from HA?

Extra info:
Using the version 1.1.2 of the Custom Integration
Using the version 2024.1.3 of HA Core
Using the version 2023.12.1 of the HA Supervisor
Using the version 11.4 of the HA OS

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions