197 lines
4.3 KiB
YAML
197 lines
4.3 KiB
YAML
- alias: Bed - alles uit
|
|
description: ''
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- light.mini_smart_wi_fi_plug_2
|
|
from: null
|
|
to: 'on'
|
|
for:
|
|
hours: 0
|
|
minutes: 5
|
|
seconds: 0
|
|
conditions:
|
|
- condition: state
|
|
entity_id: person.kim
|
|
state: home
|
|
actions:
|
|
- action: light.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- light.aqara_smart_wall_switch
|
|
- light.aqara_smart_wall_switch_light_1
|
|
- light.aqara_smart_wall_switch_light_2
|
|
- light.mini_smart_wi_fi_plug
|
|
- action: media_player.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- media_player.lg_webos_tv_oled55c9pla
|
|
- media_player.huiskamerchromecast
|
|
- action: media_player.media_stop
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: media_player.huiskamer
|
|
- action: notify.mobile_app_sm_s921b
|
|
metadata: {}
|
|
data:
|
|
message: ❤️😴 slaap lekker
|
|
mode: single
|
|
- alias: Na 10 minuten altijd ganglicht uit
|
|
description: ''
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.ganglicht_aan
|
|
to: 'on'
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
conditions: []
|
|
actions:
|
|
- action: light.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: light.aqara_smart_wall_switch
|
|
mode: single
|
|
- alias: Reset bedtijd automation at 10am
|
|
description: ''
|
|
triggers:
|
|
- trigger: time
|
|
at: '10:00:00'
|
|
conditions: []
|
|
actions:
|
|
- action: input_boolean.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.bedtijd_automation_status
|
|
mode: single
|
|
- alias: Slapen
|
|
description: ''
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.sm_s921b_is_charging
|
|
from: null
|
|
to: 'on'
|
|
conditions:
|
|
- condition: state
|
|
entity_id: light.mini_smart_wi_fi_plug_2
|
|
state: 'on'
|
|
actions:
|
|
- action: light.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: light.mini_smart_wi_fi_plug_2
|
|
- action: input_boolean.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.bedtijd_automation_status
|
|
mode: single
|
|
- alias: Sunset
|
|
description: ''
|
|
triggers:
|
|
- trigger: sun
|
|
event: sunset
|
|
offset: -00:45:00
|
|
conditions: []
|
|
actions:
|
|
- if:
|
|
- condition: state
|
|
entity_id: person.kim
|
|
state: home
|
|
then:
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- light.aqara_smart_wall_switch_light_1
|
|
- light.mini_smart_wi_fi_plug
|
|
else:
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: light.mini_smart_wi_fi_plug
|
|
mode: single
|
|
- alias: 'Wc '
|
|
description: ''
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.pir_sensor_occupancy
|
|
from: null
|
|
to: null
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.pir_sensor_occupancy
|
|
state: 'on'
|
|
sequence:
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
rgb_color:
|
|
- 255
|
|
- 255
|
|
- 0
|
|
target:
|
|
entity_id: light.smart_rgbtw_bulb
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.pir_sensor_occupancy
|
|
state: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 2
|
|
seconds: 0
|
|
sequence:
|
|
- action: light.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: light.smart_rgbtw_bulb
|
|
mode: single
|
|
- alias: Wifi connected
|
|
description: ''
|
|
triggers:
|
|
- entity_id: sensor.androidphone_wi_fi_connection
|
|
trigger: state
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: template
|
|
value_template: '{{ ''name of wifi network at home'' in states(''sensor.androidphone_wi_fi_connection'')
|
|
}}'
|
|
sequence:
|
|
- data:
|
|
topic: location/person_wifi
|
|
payload: home
|
|
retain: true
|
|
action: mqtt.publish
|
|
default:
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
milliseconds: 0
|
|
- condition: template
|
|
value_template: '{{ ''name of wifi network at home'' not in states(''sensor.androidphone_wi_fi_connection'')
|
|
}}'
|
|
- data:
|
|
topic: location/person_wifi
|
|
payload: not_home
|
|
retain: true
|
|
action: mqtt.publish
|