home_assistant/scripts/good_night.yaml

20 lines
498 B
YAML

# https://www.home-assistant.io/integrations/script
alias: Skript Gute Nacht
sequence:
- service: light.turn_on
target:
entity_id: light.attic_ceiling_spots
data:
brightness: 130
rgb_color: [255, 0, 0]
- service: switch.turn_off
target:
entity_id: switch.metered_wall_plug_switch_node4
- delay:
# supports seconds, milliseconds, minutes, hours
minutes: 3
- service: scene.turn_on
target:
entity_id: scene.schalfenszeit
mode: single