I am looking to use a plug to open a relay but have through about two failure modes I would like help mitigating. Also are there other risks I need to think about…?
The plug is connected to a transformer that outputs 12V 2A to a mortice strike lock.
Failure scenario 1 is that the plug is disconnected from the home assistant server and doesn’t get a command to switch off (so the gate stays unlocked). Can I have the plug know to switch off after a maximum of, say, 10 seconds?
Failure scenario 2 is the plug starts as “on” after a power cut or if the power goes when it was turned on. I think this is resolved with
substitutions:
# Aka: `restore_mode` in documentation
# Options: `RESTORE_DEFAULT_OFF`, `RESTORE_DEFAULT_ON`, `ALWAYS_ON` & `ALWAYS_OFF`
default_state: "RESTORE_DEFAULT_OFF"".
Thanks for your help, a great community, and a great product!!