# https://www.home-assistant.io/integrations/script alias: Skript Guten Morgen variables: scene_to_start: > {% if now().hour > 5 and now().hour < 12 -%} "scene.attic_breakfast_time" {%- else -%} "scene.taglicht" {%- endif %} sequence: - service: notify.dev_telegram data: message: >- Aktuelle Szene für Guten-Morgen: "{{ scene_to_start }}" - service: scene.turn_on data_template: entity_id: > {% if now().hour > 5 and now().hour < 12 %} scene.attic_breakfast_time {% else %} scene.taglicht {% endif %} - delay: "00:01:00" - service: script.turn_on entity_id: script.sonos_group_livingroom mode: single