Hi I have used nodered to control this but my nuc died and now try to achieve the same with automation.
Here is my yaml
alias: Rfbridge gang
description: ""
triggers:
- trigger: state
entity_id:
- sensor.rf_bridge_sonoff_value
to: "4924858"
from: null
conditions: []
actions:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.gang
- delay:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.gang
mode: parallel
Although I used mode: parallel i only runs once
I would like to restart the timer every time the trigger is received.
How do I do this?
Thanks in advance
Hans