I am working on a little project that I’d like to accomplish with a dashboard button.
When button pressed…
fire one GPIO for 5 seconds
then fire second GPIO for 1 second
turn both off.
Is there a component I can use for this? I looked around and cannot find the proper component (I think this is the correct term) to use? I started to just do this in scripts but I feel it would be best accomplished on device. Generally I would always want these to fire in this order but I may have a need to fire them independently.
Currently I have it set under one switch - when turned on delay 5 seconds, fire second for 1 second and then turn them both off.
- platform: gpio pin: number: GPIO13 inverted: False name: ph_up_mixer id: ph_up_mixer_pn2222_base on_turn_on: - delay: 5000ms - switch.turn_on: ph_up_pn2222_base - delay: 1000ms - switch.turn_off: ph_up_pn2222_base - switch.turn_off: ph_up_mixer_pn2222_base