- id: '1575130335468' alias: Fernbedienung Weihnachtslichter Oben description: '' trigger: - event_data: button_name: key_yellow host: esszimmerradio repeat_counter: 0 event_type: ir_command_received platform: event condition: [] action: - data: entity_id: switch.mobile_steckdose_schalter_2 service: switch.toggle mode: single - id: '1575202743482' alias: Wecker Licht an description: '' trigger: - platform: template value_template: '{% set alarm_time = as_timestamp(states(''sensor.martin_handy_alarm_sensor'')) %} {% set current_timestamp_minute = as_timestamp(strptime(states(''sensor.date_time''), "%Y-%m-%d, %H:%M")) %} {% set before_time_secs = 600 %} {% set trigger = states(''sensor.martin_handy_alarm_sensor'') and (alarm_time <= current_timestamp_minute + before_time_secs < alarm_time + 60) %} {{ trigger }}' condition: [] action: - data: brightness: 120 entity_id: - light.bett_martin - light.bett_rebecca - light.schlafzimmer_schrank transition: 600 xy_color: - 0.502 - 0.414 service: light.turn_on - id: '1589377976830' alias: Alarm Martin Handy description: '' trigger: - entity_id: binary_sensor.gang_bewegungsmelder_schlafzimmer, binary_sensor.gang_bewegungsmelder_ost, binary_sensor.gang_bewegungsmelder_mitte from: 'off' platform: state to: 'on' condition: [] action: - data: message: Bewegung im Gang title: Alarm service: notify.telegram_martin - data: message: Bewegung im Gang title: Alarm service: notify.mobile_app_martins_ipad - delay: '30' mode: single - id: '1598594894559' alias: Klingel Auf Handy description: '' trigger: - entity_id: switch.klingel_aussentur from: 'off' platform: state to: 'on' condition: [] action: - data: message: Es hat aussen geklingelt title: Klingel service: notify.telegram_martin - data: message: Es hat aussen geklingelt title: Klingel service: notify.ios_martins_ipad mode: single - id: '1606655282153' alias: Weihnachtslichter an morgens um 6 description: '' trigger: - platform: time at: 06:00 condition: [] action: - service: switch.turn_on data: {} entity_id: - switch.tasmota01 - switch.tasmota02 - switch.tasmota04 - switch.tasmota05 - switch.tasmota07 mode: single - id: '1607412098745' alias: Weihnachtslichter aus morgens description: '' trigger: - platform: sun event: sunrise offset: 00:15:00 condition: [] action: - service: switch.turn_off data: {} entity_id: - switch.tasmota01 - switch.tasmota02 - switch.tasmota04 - switch.tasmota05 - switch.tasmota07 mode: single - id: '1607412144113' alias: Weihnachtslichter An Abends description: '' trigger: - platform: sun event: sunset - platform: time at: '15:30:00' condition: [] action: - service: switch.turn_on data: {} entity_id: - switch.tasmota01 - switch.tasmota02 - switch.tasmota04 - switch.tasmota05 - switch.tasmota07 mode: single - id: '1607412210097' alias: Weihnachtslichter Aus Abends description: '' trigger: - platform: time at: '22:30' condition: [] action: - service: switch.turn_off data: {} entity_id: - switch.tasmota01 - switch.tasmota02 - switch.tasmota04 - switch.tasmota05 - switch.tasmota07 mode: single - id: '1612028092169' alias: Bewegungsmelder Schlafzimmer Nacht description: '' trigger: - platform: state entity_id: binary_sensor.arbeitszimmer_bewegungsmelder_bewegung from: 'off' to: 'on' condition: - condition: state entity_id: light.bett_rebecca state: 'off' - condition: state entity_id: light.bett_martin state: 'off' - condition: state entity_id: light.schlafzimmer_deckenlampe state: 'off' - condition: numeric_state entity_id: cover.schlafzimmer_rollo_gross attribute: current_position below: '20' action: - service: light.turn_on data: xy_color: - 0.502 - 0.414 brightness: 6 entity_id: light.bett_martin, light.bett_rebecca - delay: '1' - service: light.turn_off data: transition: 120 entity_id: light.bett_martin, light.bett_rebecca mode: single - id: '1626815190256' alias: Foen Timer description: '' trigger: - platform: event event_type: timer.finished condition: [] action: - service: switch.turn_off target: entity_id: switch.tasmota07 mode: single - id: '1632393568599' alias: Herd vorgeheizt -> iPad description: '' trigger: - platform: numeric_state entity_id: sensor.backofen_verbrauch below: '20' for: hours: 0 minutes: 0 seconds: 5 milliseconds: 0 condition: [] action: - service: notify.mobile_app_martins_ipad data: title: Herd vorgeheizt message: herd ist heiss :) mode: single - id: '1633435293611' alias: Gang Bogen Nachtlicht description: '' trigger: - platform: state entity_id: - binary_sensor.gang_bewegungsmelder_schlafzimmer - binary_sensor.gang_bewegungsmelder_wohnzimmer from: 'off' to: 'on' condition: - condition: template value_template: '{{ state_attr(''sun.sun'', ''elevation'') < 5 }}' action: - service: light.turn_on target: entity_id: light.gang_bogen data: brightness_pct: 50 xy_color: - 0.607 - 0.378 - delay: hours: 0 minutes: 2 seconds: 0 milliseconds: 0 - service: light.turn_off target: entity_id: light.gang_bogen data: transition: 5 mode: restart - id: '1634461079797' alias: 3D Drucker State Change description: '' trigger: - platform: state entity_id: binary_sensor.octoprint_printing condition: [] action: - service: notify.telegram_martin data: title: 3D Drucker message: 3D Drucker hat Zustand gewechselt mode: single - id: '1656971839915' alias: Rollos zu nachts description: '' trigger: - platform: time at: 04:00:00 condition: [] action: - service: cover.close_cover data: {} target: entity_id: - cover.schlafzimmer_rollo_klein - cover.schlafzimmer_rollo_gross mode: single - id: '1669014477577' alias: Weihnachtslichter oben 01 morgens an um 7 description: '' trigger: - platform: time at: 07:00:00 condition: [] action: - service: switch.turn_on data: {} target: entity_id: switch.tasmota06 mode: single - id: '1669014568292' alias: Weihnachtslichter oben 02 morgens aus um 9 description: '' trigger: - platform: time at: 09:00:00 condition: [] action: - service: switch.turn_off data: {} target: entity_id: switch.tasmota06 mode: single - id: '1669014612655' alias: Weihnachtslichter oben 03 abends an 16:30 description: '' trigger: - platform: time at: '16:30:00' condition: [] action: - service: switch.turn_on data: {} target: entity_id: switch.tasmota06 mode: single - id: '1669014682496' alias: Weihnachtslichter oben 04 abends aus 22:00 description: '' trigger: - platform: time at: '22:00:00' condition: [] action: - service: switch.turn_off data: {} target: entity_id: switch.tasmota06 mode: single