slashback100 / presence_simulation

Home Assistant Presence Simulation
423 stars 22 forks source link

Previous state is not correctly restored after HA reboot #81

Closed ds7771 closed 1 year ago

ds7771 commented 1 year ago

After HA reboot, the logs show that the code routine is correctly checking whether Presence Simulation state was previously running.

However previous ‘on’ state is being incorrectly reflected as ‘false’ and therefore Presence Simulation is reverting to ‘off’ after HA reboot.

slashback100 commented 1 year ago

Fixed in commit 881615a. This was due to the fact that now the entity name is not directly in States table but is in StatesMeta table.

slashback100 commented 1 year ago

Fix in v3.0

ds7771 commented 1 year ago

Confirmed fixed — thank you!