AutomationDataset/matthijsbuisman/matthijsbuisman_automations...

588 lines
14 KiB
YAML

- alias: Alles uit wanneer we van huis gaan
description: ''
triggers:
- entity_id:
- zone.home
to: '0'
trigger: state
conditions: []
actions:
- data: {}
target:
entity_id: light.all_lights
action: light.turn_off
- data: {}
target:
device_id:
- bf95a24944350c43f307e08e4b4ed465
- 12c27fd464189ea8a982c7f6717bc78f
- 2fd804bee45e4ee55a7edc637f347eba
action: media_player.media_stop
mode: single
- alias: Brood uit koelkast reminder
description: ''
trigger:
- platform: time
at: 06:22:00
condition: []
action:
- service: tts.google_translate_say
metadata: {}
data:
cache: false
entity_id: media_player.sonos_keuken
message: Don't forget to take your sandwiches out of the fridge
mode: single
- alias: KNMI weercode
description: Geeft melding wanneer weercode veranderd naar geel, oranje of rood
triggers:
- entity_id:
- sensor.knmi_weercode
to:
- geel
- oranje
- rood
trigger: state
conditions:
- condition: or
conditions:
- condition: state
entity_id: person.matthijs
state: home
- condition: state
entity_id: person.fleur
state: home
actions:
- data:
with_group: true
entity_id: media_player.sonos_keuken
action: sonos.snapshot
- metadata: {}
data:
volume_level: 0.4
target:
device_id: 12c27fd464189ea8a982c7f6717bc78f
action: media_player.volume_set
- metadata: {}
data:
volume_level: 0.4
target:
device_id: bf95a24944350c43f307e08e4b4ed465
action: media_player.volume_set
- action: media_player.volume_set
metadata: {}
data:
volume_level: 0.4
target:
device_id: 2fd804bee45e4ee55a7edc637f347eba
- metadata: {}
data:
group_members:
- media_player.sonos_keuken
- media_player.sonos_woonkamer
- media_player.sonos_symfonisk
target:
area_id:
- keuken
- woonkamer
action: media_player.join
- data:
cache: false
entity_id: media_player.sonos_keuken
message: Let op. Code {{ states('sensor.knmi_weercode') }} van kracht!
language: nl
action: tts.google_translate_say
- data:
with_group: true
entity_id: media_player.sonos_keuken
action: sonos.restore
mode: single
- alias: Lampen woonkamer aan/uit
description: ''
triggers:
- event: sunset
offset: '- 00:20:00'
id: Zon gaat onder
trigger: sun
- entity_id:
- zone.home
from: '0'
id: Thuiskomen
trigger: state
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- Zon gaat onder
- condition: numeric_state
entity_id: zone.home
above: 0
sequence:
- target:
device_id:
- 999ffc9b7c11eaa884b98454bdb9b248
- 76e044d807f549f31c91d9a37ee294eb
- 4253b06aa7efdb084156487f007089d2
data: {}
action: light.turn_on
- conditions:
- condition: trigger
id:
- Thuiskomen
- condition: state
entity_id: sun.sun
state: below_horizon
for:
hours: 0
minutes: 0
seconds: 0
- condition: time
before: '23:00:00'
sequence:
- target:
device_id:
- 999ffc9b7c11eaa884b98454bdb9b248
- 76e044d807f549f31c91d9a37ee294eb
- 4253b06aa7efdb084156487f007089d2
data: {}
action: light.turn_on
mode: single
- alias: Motion-light slaapkamer
description: ''
trigger:
- type: motion
platform: device
device_id: dca3ebd4a90695a608ea9a5402cbb7bc
entity_id: d8a65a72adc94a411df97899b9521188
domain: binary_sensor
id: Motion detected
- type: no_motion
platform: device
device_id: dca3ebd4a90695a608ea9a5402cbb7bc
entity_id: d8a65a72adc94a411df97899b9521188
domain: binary_sensor
id: Motion stopped
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Motion detected
- condition: sun
after: sunset
- condition: time
before: '21:30:00'
sequence:
- type: turn_on
device_id: 76e044d807f549f31c91d9a37ee294eb
entity_id: e4dca38dab7334701b9493a7eef150db
domain: switch
- conditions:
- condition: trigger
id:
- Motion stopped
sequence:
- type: turn_off
device_id: 76e044d807f549f31c91d9a37ee294eb
entity_id: e4dca38dab7334701b9493a7eef150db
domain: switch
- conditions:
- condition: trigger
id:
- Motion detected
- condition: time
after: '21:30:00'
before: '22:00:00'
sequence:
- type: turn_on
device_id: 999ffc9b7c11eaa884b98454bdb9b248
entity_id: a356bc64b65e1b4a0a64195f798dde03
domain: switch
mode: single
- alias: Motion Toilet
description: ''
trigger:
- type: motion
platform: device
device_id: 1ea2a8c8c9fdd268dc17096b18c8e2ac
entity_id: 270d1ce26ddf06b2ec5d3af611eefaf7
domain: binary_sensor
id: Detected motion
- type: no_motion
platform: device
device_id: 1ea2a8c8c9fdd268dc17096b18c8e2ac
entity_id: 270d1ce26ddf06b2ec5d3af611eefaf7
domain: binary_sensor
id: Motion stopped
for:
hours: 0
minutes: 1
seconds: 20
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Detected motion
- condition: time
after: 07:00:00
before: 00:00:00
weekday:
- mon
- tue
- wed
- thu
- fri
sequence:
- type: turn_on
device_id: 797f2c83cc6345b05e59703ce900b0e4
entity_id: 783d053b964fdd8e0231e17d186ebac3
domain: light
brightness_pct: 70
- conditions:
- condition: trigger
id:
- Motion stopped
sequence:
- service: light.turn_off
data: {}
target:
device_id: 797f2c83cc6345b05e59703ce900b0e4
- conditions:
- condition: trigger
id:
- Detected motion
- condition: time
after: 08:30:00
before: 01:00:00
weekday:
- sat
- sun
sequence:
- type: turn_on
device_id: 797f2c83cc6345b05e59703ce900b0e4
entity_id: 783d053b964fdd8e0231e17d186ebac3
domain: light
brightness_pct: 70
mode: single
- alias: Motion-lights hal
description: Gebaseerd op zonsop- en ondergang
trigger:
- type: motion
platform: device
device_id: 58a50495c62ed34059897cd651530945
entity_id: 7e6e6c77e127394e7217afbf203238b6
domain: binary_sensor
id: Motion detected
- type: no_motion
platform: device
device_id: 58a50495c62ed34059897cd651530945
entity_id: 7e6e6c77e127394e7217afbf203238b6
domain: binary_sensor
id: Motion stopped
for:
hours: 0
minutes: 1
seconds: 20
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Motion detected
- condition: and
conditions:
- condition: time
after: '16:00:00'
before: '23:00:00'
- condition: sun
after: sunset
after_offset: -00:20:00
sequence:
- service: light.turn_on
data: {}
target:
entity_id: light.lampen_hal
- conditions:
- condition: trigger
id:
- Motion stopped
sequence:
- service: light.turn_off
target:
entity_id: light.lampen_hal
data: {}
- conditions:
- condition: trigger
id:
- Motion detected
- condition: state
entity_id: sun.sun
state: below_horizon
- condition: and
conditions:
- condition: time
after: 06:25:00
weekday:
- mon
- tue
- wed
- thu
- fri
before: 09:00:00
sequence:
- type: turn_on
device_id: fd6a27ea1a27a24bffbc0db0a1889659
entity_id: 49de623ef58c7bfe7a5111c226d128a7
domain: light
brightness_pct: 5
- conditions:
- condition: trigger
id:
- Motion detected
- condition: time
after: '23:00:00'
before: 01:30:00
weekday:
- fri
- sat
- sun
sequence:
- type: turn_on
device_id: fd6a27ea1a27a24bffbc0db0a1889659
entity_id: 49de623ef58c7bfe7a5111c226d128a7
domain: light
brightness_pct: 5
- conditions:
- condition: trigger
id:
- Motion detected
- condition: numeric_state
entity_id: sensor.motion_hal_licht
below: 9
- condition: time
after: '10:00:00'
before: '19:00:00'
sequence:
- service: light.turn_on
target:
entity_id: light.lampen_hal
data: {}
mode: single
- alias: Planten (mi flora)
description: ''
triggers:
- trigger: numeric_state
entity_id:
- sensor.plant_sensor_strelizia_moisture
below: 18
id: Water geven strelitzia
- trigger: numeric_state
entity_id:
- sensor.plant_sensor_calathea_moisture
below: 18
id: Water geven Calathea
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- Water geven strelitzia
sequence:
- action: notify.mobile_app_samsung_van_matthijs
metadata: {}
data:
message: De strelizia heeft water nodig.
title: Planten
- action: notify.mobile_app_telefoon_van_fleur
metadata: {}
data:
message: De strelizia heeft wat water nodig.
title: Planten
- conditions:
- condition: trigger
id:
- Water geven Calathea
sequence:
- action: notify.mobile_app_samsung_van_matthijs
metadata: {}
data:
title: Planten
message: De calathea heeft water nodig.
- action: notify.mobile_app_telefoon_van_fleur
metadata: {}
data:
title: Planten
message: De Calathea heeft water nodig.
- conditions:
- condition: trigger
id:
- Water geven strelitzia
- condition: numeric_state
entity_id: zone.home
above: 0
sequence:
- action: sonos.snapshot
metadata: {}
data:
with_group: true
entity_id: media_player.sonos_keuken
- action: media_player.join
metadata: {}
data: {}
target:
area_id:
- keuken
- woonkamer
- action: tts.google_translate_say
metadata: {}
data:
cache: false
entity_id: media_player.sonos_keuken
message: De Strelitzia heeft water nodig.
language: nl
- action: sonos.restore
metadata: {}
data:
with_group: true
entity_id: media_player.sonos_keuken
- conditions:
- condition: trigger
id:
- Water geven Calathea
- condition: numeric_state
entity_id: zone.home
above: 0
sequence:
- action: sonos.snapshot
metadata: {}
data:
with_group: true
entity_id: media_player.sonos_keuken
- action: media_player.join
metadata: {}
data: {}
target:
area_id:
- keuken
- woonkamer
- action: tts.google_translate_say
metadata: {}
data:
cache: false
entity_id: media_player.sonos_keuken
message: De Calathea heeft water nodig.
language: nl
- action: sonos.restore
metadata: {}
data:
with_group: true
entity_id: media_player.sonos_keuken
mode: single
- alias: Reistijd naar huis Fleur
description: ''
trigger:
- platform: zone
entity_id: person.fleur
zone: zone.werk_fleur
event: leave
condition:
- condition: time
after: '16:00:00'
weekday:
- mon
- tue
- wed
- thu
action:
- service: homeassistant.update_entity
data: {}
target:
entity_id: automation.verlaten_van_werk
- service: notify.mobile_app_sm_g998b
data:
message: Ze is rond {{now().strftime("%H:%M")}} vertrokken en ongeveer over
{{states('sensor.waze_reistijd_werk_fleur')}} minuten thuis.
mode: single
- alias: Reset boolean weer info
description: ''
trigger:
- platform: time
at: 06:00:00
condition: []
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.weer_info_ochtend
data: {}
mode: single
- alias: Vakantie modus
description: D.m.v. input_boolean
trigger:
- platform: state
entity_id:
- input_boolean.vakantiemodus
to: 'on'
alias: Op vakantie
id: Op vakantie
- platform: state
entity_id:
- input_boolean.vakantiemodus
to: 'off'
alias: Terug van vakantie
id: Terug van vakantie
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Op vakantie
sequence:
- service: switch.turn_off
target:
area_id:
- woonkamer
- slaapkamer
data: {}
- service: media_player.media_stop
target:
device_id:
- bf95a24944350c43f307e08e4b4ed465
- 12c27fd464189ea8a982c7f6717bc78f
data: {}
- service: light.turn_off
target:
area_id:
- hal
- slaapkamer
- woonkamer
data: {}
mode: single
- alias: Verjaardagen
description: ''
mode: single
triggers:
- entity_id: calendar.anniversaries
event: start
offset: 0:0:0
trigger: calendar
conditions: []
actions:
- action: notify.mobile_app_samsung_van_matthijs
metadata: {}
data:
title: Verjaardag
message: Vandaag is {{ trigger.calendar_event.summary }} jarig!
- action: notify.mobile_app_telefoon_van_fleur
metadata: {}
data:
title: Verjaardag
message: Vandaag is {{ trigger.calendar_event.summary }} jarig!