201 lines
4.6 KiB
YAML
201 lines
4.6 KiB
YAML
- 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.mobile_app_martins_ipad
|
|
- delay: '30'
|
|
mode: single
|
|
- id: '1598594894559'
|
|
alias: KlingelAufHandy
|
|
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: _WeihnachtslichterAnUm6
|
|
description: ''
|
|
trigger:
|
|
- platform: time
|
|
at: 06:00
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_on
|
|
data: {}
|
|
entity_id:
|
|
- switch.tasmota01
|
|
- switch.tasmota02
|
|
- switch.tasmota03
|
|
mode: single
|
|
- id: '1607412098745'
|
|
alias: _WeihnachtslichterAusMorgens
|
|
description: ''
|
|
trigger:
|
|
- platform: sun
|
|
event: sunrise
|
|
offset: 00:15:00
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_off
|
|
data: {}
|
|
entity_id:
|
|
- switch.tasmota01
|
|
- switch.tasmota02
|
|
- switch.tasmota03
|
|
- switch.mobile_steckdose_schalter_1
|
|
- switch.mobile_steckdose_schalter_2
|
|
mode: single
|
|
- id: '1607412144113'
|
|
alias: _Weihnachtslichter An Abends
|
|
description: ''
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_on
|
|
data: {}
|
|
entity_id:
|
|
- switch.tasmota01
|
|
- switch.tasmota02
|
|
- switch.tasmota03
|
|
- switch.mobile_steckdose_schalter_1
|
|
- switch.mobile_steckdose_schalter_2
|
|
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.tasmota03
|
|
- switch.mobile_steckdose_schalter_1
|
|
- switch.mobile_steckdose_schalter_2
|
|
mode: single
|
|
- id: '1612028092169'
|
|
alias: 0_BewegungsmelderSchlafzimmerNacht
|
|
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
|