Hi.
Whenever I restart Hass, The switch states and the owntracks zones are gone. Is there a way to keep that data?
Hi.
Whenever I restart Hass, The switch states and the owntracks zones are gone. Is there a way to keep that data?
Did you follow this instruction:
You set up a region in the Owntracks app which you should name the same as your HA Zone, and then make sure to turn on the share option for the region in the owntracks app.
And what type of switch are you using? If your switch have a way of communication their status, hass should read it on start. But, not all switch are capable of that.
Thank you for your reply. No, I guess I didn’t read that. Sorry.
I switch them by rc 433 MHz with pilight.
Addition: I don’t really get the part with the on_code_receive and off_code_receive. Do I have to sniff these protocols and id’s or do I make them up to set the state in HA?
on_code_receive <- if you set the code of one of your 433MHz remote here, pilight will send the code stored in on_code when the remote is pressed.
And for 433MHz device, HA cannot know their status on restart. Their is no way for HA to ask the device for a status…
As for OwnTracks, it could depend on the accuracy of the last location reported if you have max_gps_accuracy set. If the accuracy is too low, hass will ignore it. Since MQTT only retains the last message received, if the last one received was too inaccurate, hass will ignore it when it restarts. The solution would be to set the threshold for inaccurate reports in the OwnTracks app so it doesn’t send those to hass and overwrite the more accurate reports.