Hi
I’d like to program a LocalBytes plug to turn its power outlet off after a period of time of it being turned on. I know I can do this from within HomeAssistant, but I’d like to ensure the LocalBytes plug will turn off even if HomeAssistant is unavailable. I’d like to run some code similar to what I’ve written below on the plug. However, the LocalBytes GPIO pin has already declared on the plug, so I’m getting a compile error. Do know how I can interact with the LocalBytes output relay to turn it off after it has been turned on using code running locally on the plug?
My sample code:
`switch:
- platform: gpio
pin: GPIO14
id: momentary_switch
name: “Momentary Output Switch”
on_turn_on:
then:
- delay: 1s
- switch.turn_off: momentary_switch`
Thanks