Skip to content

Instantly share code, notes, and snippets.

@jlpouffier
Created August 22, 2023 17:56
Show Gist options
  • Save jlpouffier/b5c5ecc93e80bbbfca0adada21eee347 to your computer and use it in GitHub Desktop.
Save jlpouffier/b5c5ecc93e80bbbfca0adada21eee347 to your computer and use it in GitHub Desktop.
Home Assistant Hot Tip: Dynamic Scene
alias: Flash Ceiling lights Red
sequence:
- service: scene.create
data:
scene_id: previous_ceiling_lights_state
snapshot_entities:
- light.ceiling_lights
- service: light.turn_on
data:
rgb_color:
- 255
- 0
- 0
brightness_pct: 100
target:
entity_id: light.ceiling_lights
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: scene.turn_on
data: {}
target:
entity_id: scene.previous_ceiling_lights_state
mode: single
icon: mdi:flash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment