Persistance

Hi,

Something I liked with OpenHAB was once it was setup, it would save it’s current state, so that if I had to restart it for whatever reason, everything would be as it was before the reboot. With HA, I’m finding that some of my sensors, such as MQTT Temperature sensors and my Presence sensors (using Locative) are null after a reboot.

How do I get it to reload the last state it received on startup?

Thanks,
Brett

Unfortunately, the only way to do that currently is via AppDaemon. But there’s a feature request that you can vote for.

1 Like

Not an answer, but maybe helpful: I have some code that runs at startup to guess at what some booleans should be. Could easily be expanded:

- alias: 'HA_Start'
  trigger:
    platform: event
    event_type: homeassistant_start
  action: 
    - service: script.startup_awake