- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
- id: "1654370462630"
  alias: Dekobeleuchtung an bei Sonnenuntergang
  description: ""
  triggers:
    - entity_id:
        - sun.sun
      attribute: elevation
      below: 0
      trigger: numeric_state
  conditions: []
  actions:
    - parallel:
        - data:
            transition: 1
            brightness_pct: 100
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
              - light.wohnzimmer_deko
          action: light.turn_on
        - alias: Weihnachtsdeko an wenn nach Totensonntag
          if:
            - condition: state
              entity_id: binary_sensor.nach_totensonntag
              state: ""
          then:
            - action: light.turn_on
              metadata: {}
              data: {}
  mode: single
- id: "1654433190973"
  alias: Licht - Schalter Wohnzimmer  - Einfach
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "on"
      to: "off"
    - platform: state
      entity_id:
        - binary_sensor.wohnzimmer_deckenlampe_1_input
      from: "off"
      to: "on"
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.wohnzimmer_deckenlicht
  mode: single
- id: "1663771876537"
  alias: Flur - Licht - Rundbogen - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.flur_rundbogen
  mode: single
- id: "1664646298135"
  alias: Licht - Treppenaufgang - Doppel
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: double_push
      subtype: button2
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button1
    - platform: device
      device_id: a1e1f7ab61f614688bf654bb75e88883
      domain: shelly
      type: double_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1664646612525"
  alias: Licht - 3D Drucker - Ein/Aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: e5cd6981c00dfae3d25c8a059a9c22bf
      entity_id: b73a4f8546444f455e8e8f4b0658eb80
      domain: switch
  condition: []
  action:
    - if:
        - condition: state
          entity_id: switch.3d_drucker
          state: "on"
      then:
        - service: light.turn_on
          data:
            transition: 1
            rgb_color:
              - 255
              - 255
              - 255
          target:
            entity_id: light.3d_drucker
      else:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.3d_drucker
  mode: single
- id: "1664646878899"
  alias: Garten Licht aus um 00:00 oder über 15 lx
  description: ""
  triggers:
    - at: 00:00:00
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data:
        transition: 1
      target:
        floor_id: aussen
      action: light.turn_off
  mode: single
- id: "1664647621110"
  alias: Garten - Licht - Seiteneingang geöffnet
  description: ""
  triggers:
    - type: opened
      device_id: 4958049478eed75e7ccea49ac125bb47
      entity_id: b4a5a85718292ec5e077c1dd29ae59c4
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
  actions:
    - data:
        transition: 1
        brightness_pct: 100
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.carport_einfahrt
      action: light.turn_on
    - action: script.buggy_led_workaround_2
      metadata: {}
      data:
        target:
          entity_id:
            - light.beckslampe
        data:
          transition: 1
          brightness_pct: 100
  mode: single
- id: "1664652915773"
  alias: Licht - Schalter Schlafzimmer - Einfach
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: single
      discovery_id: 0x00124b00251ecd72 action_single
  condition: []
  action:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
              before: 06:00:00
            - condition: state
              entity_id: light.vitrinen
              state: "off"
      then:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id:
              - light.nachttische
      else:
        - service: light.toggle
          data:
            transition: 1
          target:
            entity_id: light.schlafzimmer
  mode: single
- id: "1664653186978"
  alias: Licht - Schalter Schlafzimmer - Doppel
  description: ""
  triggers:
    - domain: mqtt
      device_id: b1995f65879737ab9bd06915fbecdf72
      type: action
      subtype: double
      discovery_id: 0x00124b00251ecd72 action_double
      trigger: device
  conditions: []
  actions:
    - parallel:
        - data: {}
          target:
            entity_id: input_boolean.nachtmodus
          action: input_boolean.turn_on
        - data: {}
          target:
            entity_id: alarm_control_panel.werkstatt
          action: alarm_control_panel.alarm_arm_away
    - delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
    - parallel:
        - data:
            transition: 1
          target:
            floor_id: unten
          action: light.turn_off
        - data:
            transition: 1
          target:
            area_id: 8f861fd46e9bed783b6d63f76b1b6b2f
          action: light.turn_off
  mode: single
- id: "1665599332180"
  alias: Wegebeleuchtung an, wenn außen dunkel
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - metadata: {}
      data:
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.carport_einfahrt
          - light.beckslampe
          - light.brunnenbeleuchtung
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - repeat:
        count: 2
        sequence:
          - metadata: {}
            data:
              brightness_pct: 100
            target:
              entity_id:
                - light.beckslampe
            action: light.turn_on
  mode: single
- id: "1665907101133"
  alias: Vordereingang - Licht - Auto Aus
  description: Lampe Vordereingang aus um 23:00 Uhr oder bei über 15lx für 2 min.
  triggers:
    - at: "23:00:00"
      trigger: time
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "on"
      to: "off"
  conditions: []
  actions:
    - data: {}
      target:
        device_id: 15c6a8c3f21135f0bc025cc5eac61040
      action: light.turn_off
  mode: single
- id: "1665907278628"
  alias: Vordereingang - Licht - An wenn Tür auf
  description: ""
  triggers:
    - type: opened
      device_id: 77fffad76c7e33e1f49851ec97bbc8b8
      entity_id: binary_sensor.vordereingang_tur_contact
      domain: binary_sensor
      trigger: device
    - trigger: time
      at: sensor.sun_next_dusk
  conditions:
    - condition: sun
      after: sunset
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
  actions:
    - data: {}
      target:
        entity_id: light.lampe_vordereingang
      action: light.turn_on
  mode: single
- id: "1666254409854"
  alias: Zirkulationspumpe nach Zeitplan ein/aus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - schedule.zeitplan_zirkulationspumpe
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.zirkulationspumpe
          alias: Aus
  mode: single
- id: "1667502740269"
  alias: Garten - Licht an wenn Bewegung auf Hof
  description:
    Schalte Gartenweg ein wenn Bewegung auf Hof erkannt und Nachtmodus
    nicht an. Nach 5min automatisch wieder ausschalten.
  triggers:
    - entity_id:
        - binary_sensor.driveway_person_occupancy
        - binary_sensor.driveway_car_occupancy
      from: "off"
      to: "on"
      trigger: state
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.morgens
          state: "on"
    - condition: state
      entity_id: light.garten_deko
      state: "off"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: ""
  actions:
    - data:
        transition: 1
        brightness_pct: 100
        kelvin: 2000
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_on
    - delay:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - data:
        transition: 1
      target:
        entity_id:
          - light.brunnenbeleuchtung
          - light.beckslampe
          - light.carport_einfahrt
      action: light.turn_off
  mode: single
- id: "1668704127235"
  alias: Roborock - Tägliche Reinigung
  description: ""
  triggers:
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochentag'))
        - timedelta(minutes=15))\n  and (now() <= today_at(states('input_datetime.reinigung_wochentag'))
        + timedelta(minutes=15))\n  and is_state('binary_sensor.workday_sensor', 'on')\n
        \ and is_state('input_boolean.urlaubsmodus', 'off')\n}}"
      id: benachrichtigung_werktag
      alias: Template Werktag
      trigger: template
    - value_template:
        "{{ \n  (now() >= today_at(states('input_datetime.reinigung_wochenende'))
        - timedelta(minutes=15))\n  and\n  (now() <= today_at(states('input_datetime.reinigung_wochenende'))
        + timedelta(minutes=15))\n  and (\n    states('binary_sensor.workday_sensor')
        == 'off'\n    or\n    states('input_boolean.urlaubsmodus') == 'on'\n  )\n}}"
      id: benachrichtigung_wochenende
      alias: Template Wochenende
      trigger: template
  conditions:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: state
              entity_id: vacuum.consuela
              state: unavailable
            - condition: state
              entity_id: vacuum.consuela
              state: unknown
  actions:
    - if:
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
      then:
        - data:
            message: Besuchermodus aktiv, Reinigung fällt heute aus ⛔️
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
      else:
        - data:
            message:
              "Reinigung beginnt in 15 Minuten \U0001F9FC \nRäume schnell auf und
              öffne alle Türen\U0001F6AA\n"
            title: "Roborock \U0001F916 \U0001F9FC"
            data:
              tag: roborock
          action: notify.mobile_app_jps_iphone
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
    - delay:
        hours: 0
        minutes: 15
        seconds: 0
        milliseconds: 0
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
      alias: Re-confirm Besuchermodus is off
    - if:
        - condition: or
          conditions:
            - condition: trigger
              id: benachrichtigung_wochenende
            - condition: and
              conditions:
                - condition: trigger
                  id: benachrichtigung_werktag
                - condition: state
                  entity_id: calendar.home_office
                  state: "off"
      then:
        - data: {}
          action: script.komplettreinigung
      else:
        - data: {}
          action: script.teilreinigung
  mode: single
- id: "1672073759767"
  alias: Urlaubsmodus - Ein/Aus bei Urlaub oder Feiertag
  description: ""
  trigger:
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_start
      alias: "Kalendar Trigger: Urlaub Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.urlaub
      id: urlaub_ende
      alias: "Kalendar Trigger: Urlaub Ende"
    - platform: calendar
      event: start
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_start
      alias: "Kalendar Trigger: Feiertag Start"
    - platform: calendar
      event: end
      offset: 0:0:0
      entity_id: calendar.feiertage
      id: feiertag_ende
      alias: "Kalendar Trigger: Feiertag Ende"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_start
                - condition: trigger
                  id: feiertag_start
          sequence:
            - service: input_boolean.turn_on
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
        - conditions:
            - condition: or
              conditions:
                - condition: trigger
                  id: urlaub_ende
                - condition: trigger
                  id: feiertag_ende
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.urlaubsmodus
  mode: single
- id: "1672231499918"
  alias: Treppe - Schalter - Einfach
  description: ""
  trigger:
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button1
    - platform: device
      device_id: 47e327c9e485bffd2f32c5289263c883
      domain: shelly
      type: single_push
      subtype: button2
  condition: []
  action:
    - service: light.toggle
      data: {}
      target:
        entity_id: light.treppenaufgang
  mode: single
- id: "1673783139427"
  alias: Oben
  description: ""
  trigger:
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "off"
      discovery_id: 0xbc33acfffe6faf91 action_off
    - platform: device
      domain: mqtt
      device_id: bcc16721e50ba9c3e6f20f2c6d5fbda2
      type: action
      subtype: "on"
      discovery_id: 0xbc33acfffe6faf91 action_on
  condition: []
  action:
    - service: light.toggle
      data:
        color_temp: 330
        transition: 1
        effect: Solid
      target:
        entity_id: light.niklas_buro
  mode: single
- id: "1682343628343"
  alias: Einfahrt - Benachrichtigung bei Bewegung
  description: ""
  use_blueprint:
    path: SgtBatten/Beta.yaml
    input:
      tv_transparency: 0%
      camera:
        - camera.driveway
      notify_device: f44a263f78c54a354b10f5f3032c858f
      alert_once: true
      attachment: "{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/thumbnail.jpg"
      ios_live_view: false
      tv_size: large
      update_thumbnail: false
      icon_3: sfsymbols:speaker.zzz
      zone_filter: true
      zones:
        - back
        - front
      message: "{{ label }} detected - {{ camera_name }}"
      cooldown: 60
      update_sub_label: false
      tap_action: /ccab4aaf_frigate-proxy/dashboard
      presence_filter:
        - ""
      final_update: true
- id: "1683872848001"
  alias: McPrinter - Auto Off wenn Druck fertig
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      from: printing
      to: complete
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition:
    - condition: time
      after: "22:00:00"
  action:
    - wait_for_trigger:
        - platform: numeric_state
          entity_id: sensor.mcprinter_extruder_temperature
          below: 70
      continue_on_timeout: false
    - service: switch.turn_off
      data: {}
      target:
        entity_id: switch.mcprinter_drucker
  mode: single
- id: "1684310674073"
  alias: Nachtmodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "on"
      to: "off"
      id: on_off
    - platform: state
      entity_id:
        - input_boolean.nachtmodus
      from: "off"
      to: "on"
      id: off_on
    - platform: time
      at: 05:20:00
      id: time
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: time
          sequence:
            - service: input_boolean.turn_off
              data: {}
              target:
                entity_id: input_boolean.nachtmodus
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: switch.turn_off
              data: {}
              target:
                entity_id: switch.nachtmodus
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: switch.turn_on
              data: {}
              target:
                entity_id: switch.nachtmodus
  mode: parallel
  max: 10
- id: "1684601151393"
  alias: Auto. Schlafzimmer Deko an bei Bewegung
  description: ""
  trigger:
    - type: motion
      platform: device
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
  condition:
    - condition: time
      after: "22:00:00"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  action:
    - service: light.turn_on
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
    - if:
        - condition: numeric_state
          entity_id: sensor.env_sensor_schlafzimmer_temperature
          above: 25
      then:
        - service: fan.turn_on
          data:
            percentage: 30
          target:
            entity_id: fan.mi_smart_standing_fan_2_lite
  mode: single
- id: "1684865363033"
  alias: Gäste-WC - Auto. Licht
  description: ""
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.gaste_wc_licht
      id: timer
      enabled: true
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: off_on
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: on_off
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id: on_off
          sequence:
            - service: timer.finish
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: off_on
          sequence:
            - service: timer.start
              data: {}
              target:
                entity_id: timer.gaste_wc_licht
        - conditions:
            - condition: trigger
              id: timer
          sequence:
            - service: light.turn_off
              data: {}
              target:
                device_id: e439f5c0312d7eac95f0eeb6a20e6486
  mode: parallel
  max: 10
- id: "1686553550702"
  alias: Heizung - Sommer-/Wintermodus
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.schwellenwert_heizen
      for:
        hours: 0
        minutes: 5
        seconds: 0
  condition: []
  action:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: template
                  value_template: '{{ trigger.to_state.state == "on" }}'
                - condition: not
                  conditions:
                    - condition: state
                      entity_id: sensor.jahreszeit
                      state: summer
          sequence:
            - service: climate.set_hvac_mode
              metadata: {}
              data:
                hvac_mode: auto
              target:
                entity_id: climate.gastherme
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: climate.turn_off
              target:
                entity_id:
                  - climate.gastherme
              data: {}
  mode: single
- id: "1692009600720"
  alias: "McPrinter: Fertig - LED auf Grün"
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: complete
      from: printing
      id: finished
    - platform: state
      entity_id:
        - sensor.mcprinter_current_print_state
      to: printing
      id: to_print
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - finished
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 17
                  - 255
                  - 0
              target:
                entity_id: light.3d_drucker
        - conditions:
            - condition: trigger
              id:
                - to_print
          sequence:
            - service: light.turn_on
              data:
                transition: 1
                rgb_color:
                  - 255
                  - 255
                  - 255
              target:
                entity_id: light.3d_drucker
  mode: single
- id: "1693381569980"
  alias: Homematic Duty Cycle Warnung
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.rpi_rf_mod_001f58a9a70ca0_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: RaspberryMatic
    - platform: numeric_state
      entity_id:
        - sensor.hap_werkstatt_duty_cycle_level
      for:
        hours: 0
        minutes: 2
        seconds: 0
      above: 60
      id: HAP Werkstatt
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      data:
        message: "Achtung! Duty Cycle über 60% für 2 Minuten ({{ trigger.id }}). "
  mode: single
- id: "1695126296853"
  alias: Wohnzimmer Taster Küche
  description: ""
  use_blueprint:
    path: danielperna84/homematicip_local-actions-for-6-button.yaml
    input:
      remote: b08d8ce3050a9b54920dac8292194ffe
      action_left_top_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_right_top_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deckenlicht
      action_left_middle_short:
        - service: light.turn_on
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
      action_right_middle_short:
        - service: light.turn_off
          data: {}
          target:
            entity_id: light.wohnzimmer_deko
- id: "1696921836127"
  alias: Küche Wintergarten Taster
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
- id: "1697637219046"
  alias: Küche Schalter Wintergarten
  description: ""
  use_blueprint:
    path: vandalon/z2m EnOcean PTM 215Z (Friends of Hue) switch.yaml
    input:
      controller: Küche Schalter Wintergarten
      button_1_pressed:
        - service: light.turn_on
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_2_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.wintergarten_spots
      button_3_released: []
      button_3_pressed:
        - service: scene.turn_on
          target:
            entity_id: scene.garten_normal
          metadata: {}
      button_4_pressed:
        - service: light.turn_off
          data:
            transition: 1
          target:
            entity_id: light.garten_deko
- id: "1698834093997"
  alias: Schlafzimmer - Vitrinen
  description: ""
  trigger:
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      above: 51
      id: above
      attribute: brightness
    - platform: numeric_state
      entity_id:
        - light.schlafzimmer
      below: 51
      id: below
      attribute: brightness
    - platform: state
      entity_id:
        - light.schlafzimmer
      id: "off"
      to: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - above
          sequence:
            - service: light.turn_on
              data: {}
              target:
                entity_id: light.vitrinen
        - conditions:
            - condition: trigger
              id:
                - below
                - "off"
          sequence:
            - service: light.turn_off
              data: {}
              target:
                entity_id: light.vitrinen
  mode: single
- id: "1703768634134"
  alias: "Soll- und Ist-Wert an Heizung übermitteln "
  description: ""
  triggers:
    - minutes: /2
      trigger: time_pattern
    - entity_id:
        - sensor.heizung_soll_temperatur
      id: soll_changed
      to:
      trigger: state
  conditions: []
  actions:
    - if:
        - condition: and
          conditions:
            - condition: trigger
              id:
                - soll_changed
            - condition: numeric_state
              entity_id: sensor.heizung_soll_temperatur
              above: 5
      then:
        - metadata: {}
          data:
            temperature:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: climate.gastherme
          action: climate.set_temperature
        - metadata: {}
          data:
            value:
              "{{ states('sensor.heizung_soll_temperatur') | round(1, default=0)
              }}"
          target:
            entity_id: number.heizung_reduziertsollwert
          action: number.set_value
      enabled: true
    - alias: Ist-Temperatur übermitteln wenn über 15 Grad
      if:
        - condition: numeric_state
          entity_id: sensor.heizung_ist_temperatur
          above: 15
      then:
        - metadata: {}
          data:
            qos: "0"
            retain: true
            topic: BSB-LAN/0/35/10000/inf
            payload:
              "{{ states('sensor.heizung_ist_temperatur')|round(1, default=0)
              }}"
          action: mqtt.publish
  trace:
    stored_traces: 10
  mode: restart
  max_exceeded: silent
- id: "1704282726414"
  alias: Benachrichtigung bei Heizungs-Fehler
  description: ""
  trigger:
    - platform: state
      entity_id:
        - sensor.heizung_letzter_fehler_zeit
      from:
      to:
  condition:
    - condition: not
      conditions:
        - condition: or
          conditions:
            - condition: template
              value_template:
                '{{ trigger.to_state.state == "unknown" or trigger.to_state.state
                == "unavailable" }}'
            - condition: template
              value_template:
                '{{ trigger.from_state.state == "unknown" or trigger.from_state.state
                == "unavailable" }}'
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: Heizungsfehler erkannt ⚠️
        message: '{{ states("sensor.heizung_letzter_fehler") }}

          '
        data:
          push:
            interruption-level: time-sensitive
  mode: single
- id: "1706633304144"
  alias: Gäste-WC Spiegel an/aus
  description: ""
  trigger:
    - platform: device
      type: turned_on
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "on"
    - platform: device
      type: turned_off
      device_id: e439f5c0312d7eac95f0eeb6a20e6486
      entity_id: 66cd2485d601a533b8d90a1c967dadf1
      domain: light
      id: "off"
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - "on"
          sequence:
            - service: light.turn_on
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
        - conditions:
            - condition: trigger
              id:
                - "off"
          sequence:
            - service: light.turn_off
              metadata: {}
              data: {}
              target:
                entity_id: light.gaste_wc_spiegel
  mode: single
- id: "1706950024923"
  alias: Batterie automatisch als ausgetauscht markieren
  description: ""
  trigger:
    - platform: event
      event_type: battery_notes_battery_increased
  condition: []
  action:
    - service: battery_notes.set_battery_replaced
      data:
        device_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1706950078152"
  alias: Battery Low Notification
  description: Battery Low Notification with auto dismiss
  trigger:
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: true
      id: low
      alias: Battery went low
    - platform: event
      event_type: battery_notes_battery_threshold
      event_data:
        battery_low: false
      id: high
      alias: Battery went high
  condition: []
  action:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - low
          sequence:
            - service: persistent_notification.create
              data:
                title: "{{ trigger.event.data.device_name }} Battery Low

                  "
                notification_id: "{{ trigger.event.data.device_id }}"
                message:
                  'The device has a battery level of {{ trigger.event.data.battery_level
                  }}% {{ ''\n'' -}} You need {{ trigger.event.data.battery_quantity }}x
                  {{ trigger.event.data.battery_type }}

                  '
        - conditions:
            - condition: trigger
              id:
                - high
          sequence:
            - service: persistent_notification.dismiss
              data:
                notification_id: "{{ trigger.event.data.device_id }}"
  mode: queued
- id: "1707987996739"
  alias: Büro Niklas - Auto-Licht an wenn PS4 an
  description: ""
  triggers:
    - type: turned_on
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
      trigger: device
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.licht_aussen_benotigt
          state: "on"
        - condition: device
          type: is_on
          device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
          entity_id: 3efdcab7444f3bc2916d121c1bdd2944
          domain: switch
  actions:
    - target:
        entity_id: light.niklas_buro
      data:
        transition: 1
      action: light.turn_on
  mode: single
- id: "1709410403796"
  alias: Ankleide - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.ankleide_bewegungssensor_occupancy
      light_switch:
        entity_id: light.ankleide_lampe
      time_delay: 4
      include_light_control:
        - use_brightness
        - use_transition
- id: "1710275020619"
  alias: Benachrichtigung bei Wasserleck
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: a84765c453be96025470249b7dfd9e21
      entity_id: 34f19554f06dae8f5f4cb32eb43c1daa
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 30
  condition: []
  action:
    - service: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        title: ‼️ Wasserleck Heizung ‼️
        message: Sensor meldet Wasser bei der Heizung
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1710943819727"
  alias: Küche - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.kuche_mmwave_radar_target
      light_switch:
        entity_id:
          - light.kuche_deckenlicht
          - light.kuchenschranke
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      light_transition_on: 0.5
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id:
          - light.kuche_spots
          - light.kuche_pendelleuchten
      night_time_delay: 1
      include_night_light_control:
        - use_transition
      night_light_brightness: 5
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_dynamic_lighting: disable_dynamic_lighting
      dynamic_lighting_min_brightness: 20
      light_transition_off: 10
      include_bypass:
        - bypass_enabled_turn_on
      motion_bypass_lights_stop: []
      motion_bypass_lights_on:
        - input_boolean.kuche_dauerlicht
- id: "1710945434768"
  alias: Waschmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.waschmaschine_wattage
      start_appliance_power: 17
      start_time_delay: 1
      end_time_delay: 3
      running_dead_zone: 45
      include_end_notify: enable_end_notify_options
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      end_message: Die Waschmaschine ist fertig und kann ausgeräumt werden.
      end_message_title: Waschmaschine
      include_custom_actions:
        - enable_end_custom_actions
      end_custom_actions:
        - action: mqtt.publish
          metadata: {}
          data:
            topic: awtrix_d97084/notify
            payload:
              "{\n    \"text\": \"Waschmaschine ist fertig\",\n    \"icon\":
              26673,\n    \"duration\": 30\n}"
- id: "1710945506264"
  alias: Spülmaschine fertig
  description: ""
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.spulmaschine_power
      start_appliance_power: 5
      start_time_delay: 2
      running_dead_zone: 30
      end_time_delay: 3
      end_notify_device:
        - f44a263f78c54a354b10f5f3032c858f
      include_end_notify: enable_end_notify_options
      end_message_title: Spülmaschine
      end_message: Die Spühlmaschine ist fertig und kann ausgeräumt werden.
      end_appliance_power: 1
- id: "1710945975530"
  alias: Flur - Motion Light
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.flur_bewegungssensoren
      light_switch:
        entity_id: light.flur_motion_lights
      time_delay: 1
      include_light_control:
        - use_brightness
        - use_transition
      include_bypass:
        - bypass_enabled_stop
      motion_bypass_lights_stop:
        - light.flur_rundbogen
      include_bypass_auto_off: []
      include_sun: sun_enabled
- id: "1710947178267"
  alias: Wintergarten - Auto Licht
  description: ""
  use_blueprint:
    path: Blackshome/sensor-light.yaml
    input:
      motion_trigger:
        - binary_sensor.wintergarten_tur
      light_switch:
        entity_id: light.wintergarten_spots
      time_delay: 2
      include_light_control:
        - use_brightness
        - use_colour_temperature
        - use_transition
      include_dynamic_lighting: enable_sun_elevation_colour_brightness
      include_sun: sun_enabled
      include_night_lights: night_lights_enabled
      night_lights:
        entity_id: light.wintergarten_spots
      night_time_delay: 0.5
      night_light_colour_temperature: 2000
      dynamic_lighting_max_colour_temp: 6000
      dynamic_lighting_min_colour_temp: 2000
      light_colour_temperature: 6000
      night_lights_conditions:
        - entity_state_enabled
      night_lights_entity_state:
        - input_boolean.nachtmodus
      include_night_light_control:
        - use_brightness
        - use_transition
        - use_colour_temperature
        - if_lights_are_on_adjust_when_crossing_over
      night_light_brightness: 10
      light_brightness: 100
      dynamic_lighting_min_brightness: 20
      sun_elevation: 4
      sun_elevation_rising: 4
- id: "1711962692217"
  alias: Heizplan Wohnzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.wohnzimmer_heizung
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_wohnzimmer
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_mode_outside_temperature_threshold: 19
      input_mode_outside_temperature: weather.friesoythe_altenoythe
- id: "1711963413844"
  alias: Heizplan Badezimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.badezimmer_heizung
      input_temperature_minimum_static: 20
      input_schedulers:
        - schedule.heizplan_badezimmer
      input_windows:
        - binary_sensor.badezimmer_fenster
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 20
- id: "1711964407061"
  alias: Heizplan Esszimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.esszimmer_heizung
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_esszimmer
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
      input_temperature_minimum_static: 18
- id: "1711964627626"
  alias: Heizplan Büro von Jan-Philipp
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.buro_von_jan_philipp_thermostat
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 21
      input_schedulers:
        - schedule.heizplan_buro_von_jan_philipp
      input_windows:
        - binary_sensor.buro_fenster
      input_force_max_temperature: input_boolean.heizung_zwangsabnahme
      input_presence_reaction_on_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_presence_reaction_off_time:
        hours: 0
        minutes: 0
        seconds: 30
      input_mode_outside_temperature: sensor.env_sensor_garten_temperature
      input_mode_outside_temperature_threshold: 19
- id: "1711984638952"
  alias: Homematic - Benachrichtigung bei Meldung
  description: ""
  triggers:
    - entity_id:
        - sensor.raspberrymatic_sv_alarmmeldungen
      above: 0
      id: Alarmmeldung
      trigger: numeric_state
  conditions:
    - condition: state
      entity_id: binary_sensor.raspberrymatic_sv_watchdog_low_voltage
      state: "off"
  actions:
    - metadata: {}
      data:
        title: Homematic IP
        message: Die Homematic Zentrale hat mindestens eine {{ trigger.id }}
      action: notify.mobile_app_jps_iphone
  mode: single
- id: "1711998607579"
  alias: Heizplan Schlafzimmer
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.schlafzimmer_heizung
      input_temperature_comfort_static: 20
      input_temperature_minimum_static: 18
      input_schedulers:
        - schedule.heizplan_schlafzimmer
      input_windows:
        - binary_sensor.schlafzimmer_fenster
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 16
- id: "1712498101308"
  alias: Heizplan Gäste-WC
  description: ""
  use_blueprint:
    path: heating_control_light.yaml
    input:
      input_trvs:
        - climate.gaste_wc
      input_temperature_minimum_static: 18
      input_temperature_comfort_static: 20
      input_schedulers:
        - schedule.heizplan_gaste_wc
      input_mode_outside_temperature: weather.friesoythe_altenoythe
      input_mode_outside_temperature_threshold: 18
- id: "1715113389116"
  alias: Sirene Flur bei Werkstatt-Alarm
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: triggered
      id: Ausgelöst
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to: disarmed
      id: Inaktiv
  condition: []
  action:
    - if:
        - condition: trigger
          id:
            - Ausgelöst
      then:
        - service: homematicip_local.turn_on_siren
          metadata: {}
          data:
            tone: FREQUENCY_HIGHON_OFF
            light: BLINKING_BOTH_REPEATING
            duration: "180"
          target:
            entity_id: siren.werkstatt_sirene
        - service: siren.turn_on
          metadata: {}
          data: {}
          target:
            entity_id:
              - siren.flur_rauchmelder
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
    - service: siren.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - siren.flur_rauchmelder
          - siren.werkstatt_sirene
  mode: restart
- id: "1715254515566"
  alias: Licht Werkstatt aus wenn Alarm scharf
  description: ""
  triggers:
    - entity_id:
        - alarm_control_panel.werkstatt
      to: armed_away
      trigger: state
  conditions: []
  actions:
    - target:
        area_id: 7d1f2a540c3b4010a9da17ec89127246
      data: {}
      action: light.turn_off
  mode: single
- id: "1715530652623"
  alias: Alarm Fernbedienung Niklas
  description: ""
  triggers:
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: arm_all_zones
      id: Arm
      trigger: device
    - domain: mqtt
      device_id: 151caa61306b943902ee90b931f487a1
      type: action
      subtype: disarm
      id: Disarm
      trigger: device
    - domain: homematicip_local
      device_id: 32c648802bc97f166b63b3d639505bb5
      event_type: homematic.keypress
      address: 002A5A49A6D7F1
      model: HmIP-WRCD
      interface_id: RaspberryMatic-HmIP-RF
      type: press_short
      subtype: 2
      trigger: device
      id: WRCD
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: trigger
              id:
                - Arm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_arm_away
        - conditions:
            - condition: trigger
              id:
                - Disarm
          sequence:
            - metadata: {}
              data: {}
              target:
                entity_id: alarm_control_panel.werkstatt
              action: alarm_control_panel.alarm_disarm
        - conditions:
            - condition: trigger
              id:
                - WRCD
          sequence:
            - if:
                - condition: state
                  entity_id: alarm_control_panel.werkstatt
                  state: disarmed
              then:
                - action: alarm_control_panel.alarm_arm_away
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
              else:
                - action: alarm_control_panel.alarm_disarm
                  metadata: {}
                  data: {}
                  target:
                    entity_id: alarm_control_panel.werkstatt
  mode: single
- id: "1715670501893"
  alias: WRCD Anzeige aktualisieren
  description: ""
  trigger:
    - platform: state
      entity_id:
        - alarm_control_panel.werkstatt
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "disarmed" }}'
              alias: Wenn entschärft
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=27,DDA=CENTER,DDS=Entsch{rft,DDID=2,DDC=true},{R=0,IN=1,ANS=1}"
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "armed_away" }}'
              alias: Wenn scharf
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=BLACK,DDTC=WHITE,DDI=29,DDA=CENTER,DDS=Scharf,DDID=2,DDC=true},{R=0,IN=1,ANS=2}"
  mode: single
- id: "1715689979910"
  alias: WRCD ändern bei Post
  description: ""
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.briefkasten
      to:
  condition: []
  action:
    - choose:
        - conditions:
            - alias: Wenn entschärft
              condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=0,DDA=CENTER,DDS= ,DDID=3,DDC=true}"
          alias: Wenn geleert
        - conditions:
            - alias: Wenn scharf
              condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - service: homematicip_local.set_device_value
              metadata: {}
              data:
                device_id: 32c648802bc97f166b63b3d639505bb5
                channel: 3
                parameter: COMBINED_PARAMETER
                value: "{DDBC=WHITE,DDTC=BLACK,DDI=8,DDA=CENTER,DDS=Post da,DDID=3,DDC=true}"
          alias: Wenn Post eingeworfen
  mode: single
- id: "1717344696585"
  alias: Morgen Routine starten wenn Wecker klingelt
  description: ""
  triggers:
    - type: occupied
      device_id: bf3edb1b869c3dd4a06a89203ce7f48d
      entity_id: 302f1ebf2aeb363cd7ec0b84abb8b3d7
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
    - condition: state
      entity_id: binary_sensor.ios_wecker_hat_geklingelt
      state: "on"
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: alarm_control_panel.haus
      action: alarm_control_panel.alarm_disarm
    - alias: Deko im Flur an wenn unter 5 Lux
      if:
        - condition: numeric_state
          entity_id: sensor.flur_bewegungssensor_illuminance
          below: 5
      then:
        - metadata: {}
          data:
            transition: 1
          target:
            entity_id:
              - light.esszimmer_deko
              - light.flur_deko
          action: light.turn_on
    - alias: Home Office oder Wochenende
      if:
        - condition: or
          conditions:
            - condition: state
              entity_id: calendar.home_office
              state: "on"
            - condition: state
              entity_id: binary_sensor.workday_sensor
              state: "off"
      then:
        - alias: Starte Radio "Antenne" mit 20% Lautstärke im Esszimmer
          sequence:
            - metadata: {}
              data:
                volume_level: 0.2
              target:
                entity_id: media_player.esszimmer
              action: media_player.volume_set
            - target:
                entity_id: media_player.esszimmer
              data:
                media_content_id: library://radio/5
                media_content_type: music
              metadata:
                title: Antenne Niedersachsen
                thumbnail: http://cdn-profiles.tunein.com/s116053/images/logoq.jpg?t=1
                media_class: music
                children_media_class:
                navigateIds:
                  - {}
                  - media_content_type: mass
                    media_content_id: radio
              action: media_player.play_media
  mode: single
- id: "1717436486609"
  alias: Garten Licht an wenn Wintergarten-Tür geöffnet wird
  description: ""
  triggers:
    - entity_id:
        - sensor.wintergarten_tur
      to: open
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.licht_aussen_benotigt
      state: "on"
    - condition: time
      before: 00:00:00
    - condition: state
      entity_id: light.terrassendeko
      state: "off"
  actions:
    - if:
        - condition: and
          conditions:
            - condition: time
              after: "22:00:00"
            - condition: template
              value_template: "{{ state_attr('sun.sun', 'elevation') <= -5 }}"
      then:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_gedimmt
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
      else:
        - repeat:
            count: 2
            sequence:
              - metadata: {}
                target:
                  entity_id: scene.garten_normal
                action: scene.turn_on
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 0
                  milliseconds: 500
    - metadata: {}
      data:
        transition: 1
        brightness_pct: 98
      target:
        entity_id: light.terrassenuberdachung
      action: light.turn_on
  mode: single
- id: "1717523560469"
  alias: War Zone Schilder an/aus wenn PS5 an/aus
  description: ""
  trigger:
    - platform: device
      type: changed_states
      device_id: 4ab17cf2a3e0f2e4ba4e62915fbf31e2
      entity_id: 3efdcab7444f3bc2916d121c1bdd2944
      domain: switch
  condition: []
  action:
    - if:
        - condition: template
          value_template: '{{ trigger.to_state.state == "on" }}'
      then:
        - service: light.turn_on
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
      else:
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.war_zone_schilder
  mode: single
- id: "1720007840442"
  alias: Schalter / Taster Küchen Licht
  description: ""
  triggers:
    - entity_id:
        - event.kuche_spots_button
      attribute: event_type
      to: click
      trigger: state
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "off"
      trigger: state
      from: "on"
    - entity_id:
        - binary_sensor.kuche_pendelleuchten_input_2
      to: "on"
      trigger: state
      from: "off"
  conditions: []
  actions:
    - metadata: {}
      data: {}
      target:
        entity_id: input_boolean.kuche_dauerlicht
      action: input_boolean.toggle
  mode: single
- id: "1721421746963"
  alias: Zeitplan Poolpumpe
  description: ""
  triggers:
    - entity_id:
        - schedule.poolpumpe
      from:
      trigger: state
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "on" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_on
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan ein
        - conditions:
            - condition: template
              value_template: '{{ trigger.to_state.state == "off" }}'
          sequence:
            - metadata: {}
              data: {}
              action: switch.turn_off
              target:
                entity_id: switch.poolpumpe
          alias: Zeitplan aus
  mode: single
- id: "1721996752772"
  alias: Terrassenbeleuchtung an wenn belegt
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      to: "on"
      from: "off"
  conditions:
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
  actions:
    - wait_template: "{{ is_state('binary_sensor.patio_person_occupancy', 'on')
        or is_state('sensor.wintergarten_tur', 'open') }}"
      continue_on_timeout: false
      timeout: "300"
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 600
    - metadata: {}
      target:
        entity_id: scene.garten_normal
      action: scene.turn_on
      data: {}
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.pool
  mode: single
- id: "1721997053272"
  alias: Bewegung im Badezimmer - Licht an
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      device_id: 65f20995fa347be09d39f11c35390b0f
      domain: vacuum
      entity_id: 12e99bfb81b9da0bedb05fb92da22a63
      type: is_docked
  actions:
    - type: turn_on
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
      brightness_pct: 100
  mode: single
- id: "1721999759431"
  alias: Strom Netzwerk wieder an wenn ausgeschaltet
  description: ""
  trigger:
    - platform: device
      type: turned_off
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  condition: []
  action:
    - type: turn_on
      device_id: aee44a60a2029bdc69037a86b2f49183
      entity_id: 816e05db24879c350895fdda3470b1c9
      domain: switch
  mode: single
- id: "1722950348006"
  alias: Benachrichtigung wenn freies Chlor unter Schwellenwert
  description: ""
  triggers:
    - type: value
      device_id: 81a4f563d8eff1e441ddc1a7dd5b5970
      entity_id: 8702ee0ee1b9e7291860b8bc566eb5eb
      domain: sensor
      below: 0.6
      trigger: device
  conditions:
    - condition: state
      entity_id: binary_sensor.pool_saison
      state: "on"
  actions:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message:
          "Freies Chlor ist unter 0.5 mg/L gefallen: {{ trigger.to_state.state
          }} mg/L"
        title: "Pool benötigt Chlor \U0001F9EA"
  mode: single
- id: "1723840918973"
  alias: Poolpumpe aus wenn Nachtmodus eingeschaltet
  description: ""
  triggers:
    - entity_id:
        - input_boolean.nachtmodus
      to: "on"
      trigger: state
  conditions: []
  actions:
    - type: turn_off
      device_id: 3ac3a4548f95bd3e79abe48b122922b1
      entity_id: a1f4d0c5c8c6e68ef5db310cc8f9a0a1
      domain: switch
  mode: single
- id: "1724840713807"
  alias: Spülmaschine ausschalten wenn Wasserleck erkannt
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - type: turn_off
      device_id: 6cf91b308666cc0743222ab2b7dd6912
      entity_id: 9820001ea6c48fcf6da1eb3546b976dc
      domain: switch
  mode: single
- id: "1725217516036"
  alias: Benachrichtigung bei Wasser unter der Spüle
  description: ""
  trigger:
    - type: moist
      platform: device
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
  condition: []
  action:
    - action: notify.mobile_app_jps_iphone
      metadata: {}
      data:
        message: "Wasser unter der Küchenspüle erkannt \U0001F6B0 "
        data:
          push:
            interruption-level: critical
  mode: single
- id: "1725964804058"
  alias: Werkstatt Licht an wenn Tür zum Haus offen
  description: ""
  triggers:
    - type: opened
      device_id: a29cf40915bae3cbcd9d31faeb0a2a84
      entity_id: 40185c18f73bd1091934ac8907a8c5fe
      domain: binary_sensor
      for:
        hours: 0
        minutes: 0
        seconds: 0
      trigger: device
    - type: opened
      device_id: f8d6bc9e87ba225c74c009941fe6ee50
      entity_id: e21d06474273c961b72b4b428eb579d1
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: alarm_control_panel.werkstatt
      state: disarmed
    - condition: not
      conditions:
        - condition: state
          entity_id: input_select.party_modus
          state: Werkstatt
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        entity_id: light.werkstatt_arbeitslicht
  mode: single
- id: "1728494082854"
  alias: RGB Licht blau wenn Wasser unter der Spüle erkannt
  description: ""
  triggers:
    - type: moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        rgb_color:
          - 32
          - 28
          - 253
        transition: 1
        brightness_pct: 100
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1728494194576"
  alias: RGB Licht mmWave Küche aus wenn trocken
  description: ""
  triggers:
    - type: not_moist
      device_id: 13f5c9f79b076adf73f2ff82e1e766b6
      entity_id: 8862bff6d1ae704a916af5e247a65c1e
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.kuche_mmwave_rgb_light
  mode: single
- id: "1729620955960"
  alias: Bewegung Büro JP -> Licht an wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - type: is_illuminance
      condition: device
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: 7d431243e4ee969aa2891ff159573fab
      domain: sensor
      below: 10
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - action: light.turn_on
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.buro_deko
  mode: single
- id: "1729621279257"
  alias: Deko ausschalten wenn über 18lx im Flur
  description: ""
  triggers:
    - trigger: numeric_state
      entity_id:
        - sensor.flur_bewegungssensor_illuminance
      for:
        hours: 0
        minutes: 1
        seconds: 0
      above: 18
  conditions: []
  actions:
    - action: light.turn_off
      metadata: {}
      data: {}
      target:
        entity_id:
          - light.flur_deko
          - light.esszimmer_deko
  mode: single
- id: "1729622165926"
  alias: Licht aus wenn JP zur Arbeit fährt
  description: ""
  triggers:
    - trigger: zone
      entity_id: device_tracker.jps_iphone
      zone: zone.licht_aus
      event: leave
  conditions:
    - condition: time
      after: 06:20:00
      before: 07:00:00
    - condition: state
      entity_id: calendar.home_office
      state: "off"
    - condition: state
      entity_id: light.schlafzimmer
      state: "off"
  actions:
    - action: light.turn_off
      metadata: {}
      data:
        transition: 1
      target:
        entity_id:
          - light.esszimmer_deko
          - light.flur_deko
        floor_id: aussen
  mode: single
- id: "1730927722098"
  alias: Z-Pumpe an wenn Badezimmer in Benutzung
  description: ""
  triggers:
    - type: motion
      device_id: c5fa9ff36864c41dda5267a78445aca2
      entity_id: b77b7d61aa7c4f5ab560af94f3993d48
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: device
      type: is_off
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: input_boolean.besuchermodus
          state: "on"
        - condition: state
          entity_id: input_boolean.urlaubsmodus
          state: "on"
  actions:
    - type: turn_on
      device_id: 5f9eb2492d0f6e3661a2bd6dd0e9450b
      entity_id: 5f267a4255dea4dbbf07f8502165d4d4
      domain: switch
  mode: single
- id: "1731234591784"
  alias: TTS Benachrichtigung bei Klingen an der Haustür
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.haustuer_besucher
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: input_boolean.besuchermodus
      state: "off"
  actions:
    - parallel:
        - action: assist_satellite.announce
          metadata: {}
          data:
            message: Es ist jemand an der Haustür.
          target:
            entity_id: assist_satellite.vpe_wohnzimmer_assist_satellit
        - action: camera.play_stream
          metadata: {}
          data:
            format: hls
            media_player: media_player.nest_esszimmer
          target:
            entity_id: camera.haustuer_flussig
          enabled: false
        - sequence:
            - action: media_player.volume_set
              metadata: {}
              data:
                volume_level: 0.4
              target:
                entity_id: media_player.kuche
            - action: tts.speak
              metadata: {}
              data:
                cache: true
                media_player_entity_id: media_player.kuche
                message: Es ist jemand an der Haustür.
              target:
                entity_id: tts.home_assistant_cloud
    - delay:
        hours: 0
        minutes: 0
        seconds: 30
    - action: media_player.turn_off
      metadata: {}
      data: {}
      target:
        entity_id: media_player.nest_esszimmer
      enabled: false
  mode: single
- id: "1732281339909"
  alias: Badezimmer Spots Bewegung ausschalten wenn Haupt ausgeschaltet
  description: ""
  triggers:
    - type: turned_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 25f88dcfeb05e99ac3eeb2fb379a141e
      domain: light
      trigger: device
  conditions: []
  actions:
    - type: turn_off
      device_id: fb56717140c7d2164939dc050522f62e
      entity_id: 4c4273d02dff0b0c6e44ff1c6d2994ce
      domain: light
  mode: single
- id: "1732441366449"
  alias: Nachttisch Niklas Button - Schlafzimmer Licht
  description: ""
  triggers:
    - domain: mqtt
      device_id: adc227c7abefee265ac11f6eb186331f
      type: action
      subtype: single
      trigger: device
  conditions: []
  actions:
    - action: light.toggle
      metadata: {}
      data:
        transition: 1
      target:
        entity_id: light.schlafzimmer
  mode: single
- id: "1732693297822"
  alias: AWTRIX 3D Print Status - Moonraker
  description: ""
  use_blueprint:
    path: blueforcer/flow_eXj8YokBAPpx.yaml
    input:
      awtrix: 155a92ebf46a23b31cb4c42ec11741ce
      3dprint_progress_sensor: sensor.mcprinter_progress
      3dprint_current_state_sensor: sensor.mcprinter_current_print_state
      push_icon: "1"
- id: "1732695321969"
  alias: AWTRIX DWD weather warnings ⛈️
  description: ""
  use_blueprint:
    path: blueforcer/flow_rM3xOBxvA8Lz.yaml
    input:
      awtrix:
        - 155a92ebf46a23b31cb4c42ec11741ce
      weather_warning_var: sensor.kreis_ammerland_aktuelle_warnstufe
- id: "1732702234238"
  alias: AWTRIX Außentemperatur
  description: ""
  triggers:
    - trigger: state
      entity_id:
        - sensor.env_sensor_garten_temperature
      to:
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: true
        payload:
          "{\n  \"text\": \"{{ states(\"sensor.env_sensor_garten_temperature\")
          }}°C\",\n  \"icon\": \"37141\"\n}"
        topic: awtrix_d97084/custom/outside_temp
  mode: single
- id: "1732865484154"
  alias: Awtrix an bei Bewegung im Büro wenn Home Office
  description: ""
  triggers:
    - type: occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
  conditions:
    - condition: state
      entity_id: calendar.home_office
      state: "on"
    - condition: state
      entity_id: binary_sensor.morgens
      state: "on"
  actions:
    - type: turn_on
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1733604600595"
  alias: Weihnachtsdeko im Dunkeln an
  description: Weihnachtsdeko an wenn unter 5 Lux und nach Totensonntag
  triggers:
    - trigger: state
      entity_id:
        - binary_sensor.licht_aussen_benotigt
      from: "off"
      to: "on"
  conditions:
    - condition: state
      entity_id: binary_sensor.nach_totensonntag
      state: "on"
    - condition: state
      entity_id: input_boolean.nachtmodus
      state: "off"
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.nachts
          state: "on"
        - condition: state
          entity_id: binary_sensor.abend
          state: "on"
      alias: Wenn Nachts oder Abends
  actions:
    - action: light.turn_on
      metadata: {}
      data: {}
      target:
        label_id:
          - weihnachtsdeko
  mode: single
- id: "1734373096261"
  alias: Awtrix aus wenn Feierabend
  description: ""
  triggers:
    - type: not_occupied
      device_id: cf92dfa80bafb7b3e67c65734d3bb449
      entity_id: a36524c61a04e5ff93fed279c0d8498f
      domain: binary_sensor
      trigger: device
      for:
        hours: 1
        minutes: 0
        seconds: 0
  conditions:
    - condition: time
      after: "16:00:00"
  actions:
    - type: turn_off
      device_id: 155a92ebf46a23b31cb4c42ec11741ce
      entity_id: 2b7c384001091a3eeefd5fb574c4e6ef
      domain: light
  mode: single
- id: "1734807559867"
  alias: VPE muten/entmuten
  description: ""
  triggers:
    - trigger: conversation
      command:
        - Stumm
        - Sei ruhig
    - trigger: time
      at: 00:00:00
      id: entmuten
  conditions: []
  actions:
    - if:
        - condition: trigger
          id:
            - entmuten
      then:
        - type: turn_off
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
      else:
        - type: turn_on
          device_id: e595368260b6c60dba073ccd11229d23
          entity_id: c1cc09f499304e71111516308bbd850d
          domain: switch
        - set_conversation_response: Okay
  mode: single
- id: "1735403844967"
  alias: Neue Automatisierung
  description: ""
  triggers:
    - type: occupied
      device_id: 3718bd66eaef2fed55b25c637ddd830b
      entity_id: b0dd77375e9f1ec6ae1cf3db1e3f5893
      domain: binary_sensor
      trigger: device
  conditions: []
  actions:
    - action: notify.fernseher_im_wohnzimmer
      data:
        title: Fahrzeug erkannt
        message: Fahrzeug in der Einfahrt erkannt
        data:
          video: rtsp://10.12.0.41:8554/driveway
          seconds: 60
  mode: single
- id: "1736338910312"
  alias: BSB-LAN Parameter Update auslösen
  description: ""
  triggers:
    - trigger: time_pattern
      minutes: /5
      variables:
        parameters: 8314,8730,8830,8310,8314,8950,8951,8003,8000,8005,8009,700,8740,710,8326
    - trigger: time_pattern
      minutes: /10
      variables:
        parameters: 8700,6800,6803,8331,712,720,721
  conditions: []
  actions:
    - action: mqtt.publish
      metadata: {}
      data:
        evaluate_payload: false
        qos: 0
        retain: false
        topic: BSB-LAN/poll
        payload: "{{ parameters }}"
  mode: queued
  max: 4
- id: "1736697970397"
  alias: Benachrichtigung und Frigate Event bei Klingeln an Haustür
  description: ""
  triggers:
    - entity_id:
        - binary_sensor.haustuer_besucher
      trigger: state
      from: "off"
      to: "on"
  conditions: []
  actions:
    - action: frigate.create_event
      metadata: {}
      data:
        label: Doorbell press
        duration: 30
        include_recording: true
      target:
        entity_id: camera.haustuer
      response_variable: frigate_event_result
    - alias: Set up variables for the actions
      variables:
        action_1: "{{ 'ACTION_1' ~ context.id }}"
        action_2: "{{ 'ACTION_2' ~ context.id }}"
        event_id: "{{ frigate_event_result['camera.haustuer'].event_id }}"
    - data:
        title: Jemand hat an der Tür geklingelt!
        message: "{{ as_timestamp(now()) | timestamp_custom('%d.%m %H:%M', true) }}"
        data:
          push:
            interruption-level: time-sensitive
          tag: frontdoor-ring-doorbell
          image: /api/frigate/notifications/{{ event_id }}/snapshot.jpg
          actions:
            - action: URI
              title: Dashboard
              uri: /lovelace/default_view
            - action: "{{ action_1 }}"
              title: action1
            - action: "{{ action_2 }}"
              title: action2
      action: notify.mobile_app_jps_iphone
    - alias: Wait for a response
      wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_1 }}"
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: "{{ action_2 }}"
          trigger: event
      timeout: "30"
      continue_on_timeout: true
    - alias: Perform the action
      choose:
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_1 }}"
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger.event.data.action == action_2 }}"
          sequence: []
- id: "1738332033247"
  alias: "\U0001F4EC Smart mailbox"
  description: ""
  use_blueprint:
    path: eroak/smart-mailbox.yaml
    input:
      motion_sensor: binary_sensor.briefkasten_vibration
      collection_confirming_entities:
        - binary_sensor.vordereingang_tur_contact
      mailbox_counter: counter.eingeworfene_briefe
      actions_in:
        - data:
            message: "Post war da und hat Post eingeworfen \U0001F4EC"
            title: "Briefkasten \U0001F4EB"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Post erhalten"
          action: notify.mobile_app_jps_iphone
      actions_out:
        - data:
            message: "Ich wurde bereits geleert \U0001F4ED"
            title: "Briefkasten \U0001F4EA"
            data:
              tag: briefkasten
          alias: "Benachrichtung: XXX iPhone - Briefkasten geleert"
          action: notify.mobile_app_jps_iphone
- id: "1739656224771"
  alias: gprof2dot
  description: ""
  triggers: []
  conditions: []
  actions: []
  mode: single
