@cmartens wrote:
Hi,
I have created the following automation to set up a timer for my irrigation system. Based on a input_select, you can select one option and the time remaining is displayed in the Home Assistant dashboard. My question is if it is possible to combine the four parts of this automation to one automation with an IF statement in the Action section of the automation. However, I am not able to make it work in Home Assistant. Who can help me?
- id: '1587199282465' alias: timer_beregening_30 description: '' trigger: - entity_id: input_select.beregening_handmatig platform: state to: 30 minuten condition: [] action: - data: duration: 00:30:00 entity_id: timer.timer_beregening service: timer.start - id: '1587199468800' alias: timer_beregening_60 description: '' trigger: - entity_id: input_select.beregening_handmatig platform: state to: 60 minuten condition: [] action: - data: duration: 00:60:00 entity_id: timer.timer_beregening service: timer.start - id: '1587199553088' alias: timer_beregening_90 description: '' trigger: - entity_id: input_select.beregening_handmatig platform: state to: 90 minuten condition: [] action: - data: duration: 00:90:00 entity_id: timer.timer_beregening service: timer.start - id: '1587199661855' alias: timer_beregening_uit description: '' trigger: - entity_id: input_select.beregening_handmatig platform: state to: Uit condition: [] action: - data: {} entity_id: timer.timer_beregening service: timer.cancel
Posts: 1
Participants: 1