- id: '1575130335468' alias: FernbedienungWeihnachtslichterOben 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 - 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: AlarmMartinHandy 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.ios_martins_ipad