Hi, i made a irrigation for all my irrigation devices, script that is working wundertful see below…
A made two buttons, see frontend to activate this script, just for testing.
The first button does not work , Why?
The second does, but you have to acknowlegde the execution of the script.
Why is the first one not working, and i want a button so that i dont have to acknowledge…
alias: irrigatie allesstarten
sequence:
- repeat:
for_each:
- ac_1b11552_1
- ac_1b11552_3
- ac_1b11552_2
- ac_1b11552_8
- ac_1b11552_9
- ac_1b11552_10
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.{{ repeat.item }}
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: switch.turn_off
data: {}
target:
entity_id: switch.{{ repeat.item }}
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
mode: single
icon: mdi:sprinkler-variant
My frontend with problems…with the first option, does not working
type or p - type: horizontal-stack
cards:
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: input_boolean.irrigatie_alles
name: IRRIGATIE
icon: ''
hold_action:
action: call-service
service: script.turn_on
target:
entity_id: script.1687611106186
data: {}
- type: entity
entity: script.1687611106186
state_color: true
icon: mdi:sprinkler-variant
name: IRRIGATIE
attribute: currentaste code here