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

Behaviour of restore param #15

Closed
aburghelea opened this issue Jun 11, 2020 · 0 comments · Fixed by #26
Closed

Behaviour of restore param #15

aburghelea opened this issue Jun 11, 2020 · 0 comments · Fixed by #26

Comments

@aburghelea
Copy link
Collaborator

Hi there.
DISCLAIMER: I may be really stupid and don't understand what I read.

Per the documentation:

https://github.com/cadavre/miio_gateway#v13
Added restore param to sensor mapping. Defaults to false, will restore pre-HA restart state if set to true.

The behaviour i see with door sensors is that if i have restore: true , after a HA restart , all the sensors report as Open (until i trigger them manually, when the state is updated). But if i set restore: false , after the restart, the state that are reported after restart (without any other trigger) is the actual state of the sensor prior to the restart.

I've seed this with HA 0.105 , 0.107, 0.110 and 0.111.

Am I reading the README and not understanding it or does is the actual behaviour different from the documented one ?

aburghelea added a commit to aburghelea/miio_gateway that referenced this issue Feb 11, 2021
Basically I saw something fishy and asked back here cadavre#15, but a binary
sensor state of "ON" is just theoretically equal to true.
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

Successfully merging a pull request may close this issue.

1 participant