-- StefanHegger - 15 Oct 2025

- id: '1760461379661'
  description: "Abendbeleuchtung"
  mode: single
  trigger:
    - platform: sun
      event: sunrise
      offset: 0
      id: Licht an
  condition: []
  action:
    - if:
        - condition: and  # Und Verknuepfung der Bedingungen
          conditions:
            - condition: sun                   #Bedingung abhaengig von der Sonne
              after: sunset                    #Nach Sonnenuntergang
            - condition: time                  #Bedingung Zeit
              before: "19:00:00"               #Vor 19:00 Uhr
            - condition: state                 #Bedingung Status eines Geraetes
              entity_id: light.eg_deelentor    #ID des Geraetes
              state: "off"                     #Status muss off sein

      then:
        - service: light.turn_on               #Licht soll angeschaltet werden 
          target:
            entity_id: light.eg_deelentor      #ID des Geraetes
          data: {}
      else:
        - service: light.turn_off              #Licht soll ausgeschaltet werden
          target:
            entity_id: light.eg_deelentor      #ID des Geraetes
          data: {}

This topic: Main > WebHome > WikiUsers > StefanHegger > HomeAssistant > Automations-yaml
Topic revision: 15 Oct 2025, StefanHegger
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Milan? Send feedback