Closed cmorlok closed 6 years ago
Somehow this breaks the state machine. I see the updated states in /dev-state, but no subsequent templates get updated.
Very interesting and clearly the way we should head on Can you raise a hand when you think it is stabilized : I will merge and pack a new release ASAP as it has been awaited by several users (sorry, do not have yet the time to dig in the state machine problem)
It turned out that the issue with the state machine is not related to the restore_state change, see #23.
The change looks good so far, but I will do some more testing.
Any news about that pull request ?
I'll have a look at it this WE
Have been using this for more than a month now without any issues.
Is it possible to accept this pull request ? :)
Oh yeah please accept it, after restart I can't retrieve values :(
A lot of sensors (i.e. the Xiaomi temperature sensors) send state updates only if the data has changed. There is no way to poll the current state. Thus, after a restart of home assistant, it can take hours or even days until a value is available.
Use the restore_state (together with the recorder component) to set the state initially to the last known value.