I have a somewhat flaky ip cam…that needs to be restarted once in a while…
So i thought i create an automation that checks if cam is having status “unavailable” and restarts it via “smart” outlet.
BUT…for some reason, my automation doesnt see the status or doesnt care…
Can anyone take a look and let me know what part i am missing?!
Unfortunately my changes to state did nothing
Is there a state check that does not require a change from something to something? Just if state is xyz than do bla bla?
Cause the code as it is rught now is looking a for a change from to unavailable, but the from stste can be a list of things and not just available.
Maybe using a ‘From’ definition in the trigger helps (e.g. from: idle or from: recording) to: unavailable helps - not sure, though, what the right status might be or if you’d need to use more than one trigger to capture all possibilities
Check with a time pattern trigger, if the state is unavailable every 5 or 10 minutes - and if the camera is unavailable run the switch off/switch on action.
I have a camera that falls off now & then and I just do a switch off/on routine every night at e.g. 3:33AM - this has worked well for me so far and keeps me from checking every 5min.