Skip to content

Instantly share code, notes, and snippets.

@hectorzin
Created October 31, 2025 10:06
Show Gist options
  • Select an option

  • Save hectorzin/18b8dd4ecf7ce3f5cb4e6d8b811e6336 to your computer and use it in GitHub Desktop.

Select an option

Save hectorzin/18b8dd4ecf7ce3f5cb4e6d8b811e6336 to your computer and use it in GitHub Desktop.
HALLOWEEN
alias: 🎃 Halloween Jardín Show
mode: restart
max_exceeded: silent
sequence:
- target:
entity_id: light.luces_jardin
data:
rgb_color:
- 255
- 69
- 0
brightness: 220
action: light.turn_on
- repeat:
while: []
sequence:
- variables:
efecto: "{{ ['strobe','breathe','cycle'] | random }}"
- choose:
- conditions:
- condition: template
value_template: "{{ efecto == 'strobe' }}"
sequence:
- repeat:
count: 8
sequence:
- target:
entity_id: light.luces_jardin
data:
rgb_color:
- 255
- 69
- 0
brightness: 255
transition: 0
action: light.turn_on
- delay: "0.15"
- target:
entity_id: light.luces_jardin
action: light.turn_off
data: {}
- delay: "0.10"
- conditions:
- condition: template
value_template: "{{ efecto == 'breathe' }}"
sequence:
- target:
entity_id: light.luces_jardin
data:
rgb_color:
- 128
- 0
- 128
brightness: 90
transition: 1
action: light.turn_on
- delay: "1.2"
- target:
entity_id: light.luces_jardin
data:
rgb_color:
- 255
- 140
- 0
brightness: 255
transition: 2.5
action: light.turn_on
- delay: "2.7"
- conditions:
- condition: template
value_template: "{{ efecto == 'cycle' }}"
sequence:
- repeat:
count: 6
sequence:
- target:
entity_id: light.luces_jardin
data:
rgb_color: >-
{{ [[255,69,0],[255,140,0],[128,0,128],[255,0,255]]
| random }}
brightness: 200
transition: 0.5
action: light.turn_on
- delay: "0.8"
- delay:
milliseconds: "{{ range(300, 900) | random }}"
description: ""
icon: mdi:halloween
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment