Hi, I’m sure it is possible to short this code, but didn’t find how. Maybe someone can help.
This scripts turns a hue on and off. Switching from red to orange
blink_kugellicht:
alias: Alarm Kugellicht
sequence:
- alias: Alarm start
data:
brightness_pct: 100
color_name: orange
entity_id: light.kugellicht
service: light.turn_on
- delay:
seconds: 1
- alias: Alarm stop
data:
entity_id: light.kugellicht
service: light.turn_off
- delay:
seconds: 1
- alias: Alarm start
data:
brightness_pct: 100
color_name: red
entity_id: light.kugellicht
service: light.turn_on
- delay:
seconds: 1
- alias: Alarm stop
data:
entity_id: light.kugellicht
service: light.turn_off
- delay:
seconds: 1
- alias: Alarm start
data:
brightness_pct: 100
color_name: orange
entity_id: light.kugellicht
service: light.turn_on
- delay:
seconds: 1
- alias: Alarm stop
data:
entity_id: light.kugellicht
service: light.turn_off
- delay:
seconds: 1
- alias: Alarm start
data:
brightness_pct: 100
color_name: red
entity_id: light.kugellicht
service: light.turn_on
- delay:
seconds: 1
- alias: Alarm stop
data:
entity_id: light.kugellicht
service: light.turn_off
- delay:
seconds: 1
- alias: Alarm start
data:
brightness_pct: 100
color_name: orange
entity_id: light.kugellicht
service: light.turn_on
- delay:
seconds: 1
- alias: Alarm stop
data:
entity_id: light.kugellicht
service: light.turn_off
- delay:
seconds: 1
- alias: Alarm start
data:
brightness_pct: 100
color_name: red
entity_id: light.kugellicht
service: light.turn_on
- delay:
seconds: 1
- alias: Alarm stop
data:
entity_id: light.kugellicht
service: light.turn_off