I’ve been looking around the community the web site to find how i could do this to no avail.
the only thing i found close to it was appdeamon although with my limited programming skills it’s a no go for me.
I think what i’m trying to get is fairly simple for the guys around here, so i’ll ask
I have some RF switch that are working great except when HA is restarted. The state of those switches are returned to off even if the switches are “on” before restarting.
Knowing the the last state is saved in the DB i was wondering if there was a way to fetch the last state at start up and overwriting the new state with the value fetched from the DB ( API call or other )
here’s one of them as an example , as said earlier, it’s a really basic RF Switch
Camera reset:
protocol: 1
pulselength: 185
code_on: 5265155
code_off: 5265164
It seems weird that I would need to do this just to keep track of a light switch. I have 5 RF outlets that are for living room and upstairs lights. I may just start to replace those with wemo or tp-link outlets since the couple of those I have appear to keep their state through a restart.