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

Out of sync state with power sensor #32

Open
shinyste opened this issue Jan 21, 2024 · 1 comment
Open

Out of sync state with power sensor #32

shinyste opened this issue Jan 21, 2024 · 1 comment

Comments

@shinyste
Copy link

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

@KiraPC
Copy link
Owner

KiraPC commented Jan 22, 2024

Hello @shinyste I'll take a look asap

But i do not have a power sensor configured. So I need time.

In the mean while, if you are confident with python, an help is appreciated :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants