Files
hassos_config/automations.yaml
2022-12-20 21:26:47 +01:00

634 lines
17 KiB
YAML

- id: '1655024113701'
alias: Hass - Restore Samba Backup sensor on startup
description: ''
trigger:
- platform: homeassistant
event: start
condition: []
action:
- service: hassio.addon_stdin
data:
addon: 15d21743_samba_backup
input: restore-sensor
mode: single
- id: '1655024363563'
alias: Hass - Samba Backup trigger manual backup
description: ''
trigger:
- platform: event
event_type: Samb_Backup_Trigger
id: samba_backup_trigger
context:
user_id:
- 584550695306466397829aca3a031534
condition: []
action:
- service: hassio.addon_stdin
data:
addon: 15d21743_samba_backup
input: trigger
mode: single
- id: '1655799303486'
alias: Hal - beweging sensor
description: ''
use_blueprint:
path: freakshock88/motion_illuminance_activated_entity.yaml
input:
motion_sensor: binary_sensor.beweging_hal_motion_detection
target_entity: scene.hal_aan
illuminance_sensor: sensor.hal_beweging_2_illuminance
illuminance_cutoff: input_number.hal_luminance_threshold
target_off_entity: switch.hal_lamp_hal_switch
no_motion_wait: input_number.hal_beweging_timer
time_limit_after: input_datetime.hal_beweging_active
time_limit_before: input_datetime.hal_beweging_inactive
- id: '1655843572859'
alias: Keuken - beweging sensor
description: ''
use_blueprint:
path: freakshock88/motion_illuminance_activated_entity.yaml
input:
motion_sensor: binary_sensor.beweging_keuken_motion_detection
target_entity: scene.keuken_verlichting_aan_beweging
no_motion_wait: input_number.keuken_timer_off
target_off_entity: light.lamp_aanrecht_keuken
time_limit_after: input_datetime.keuken_beweging_active
time_limit_before: input_datetime.keuken_beweging_inactive
- id: '1659077789477'
alias: Badkamer - beweging sensor nacht
description: 'turn on badkamer lamp als het donker is
'
use_blueprint:
path: freakshock88/motion_illuminance_activated_entity.yaml
input:
motion_sensor: binary_sensor.beweging_badkamer_occupancy
target_entity: scene.badkamer_nacht_scene
no_motion_wait: input_number.badkamer_beweging_timer
time_limit_after: input_datetime.badkamer_beweging_active_nacht
time_limit_before: input_datetime.badkamer_beweging_inactive_nacht
target_off_entity: light.badkamer_babdkamer_lamp_dimmer_1
- id: '1659297303556'
alias: Woonkamer - tv kijken Sfeer auto aan
description: ''
trigger:
- platform: device
device_id: e114f1eb7daa22b88511d015df1f12f7
domain: select
entity_id: select.harmony_hub_activities
type: current_option_changed
from: PowerOff
to: Apple TV kijken 2
for:
hours: 0
minutes: 0
seconds: 5
condition:
- condition: time
after: '18:00:00'
before: '23:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
action:
- service: scene.turn_on
data: {}
target:
entity_id: scene.avond_stand
mode: single
- id: '1660333123289'
alias: Badkamer - beweging sensor ochtend
description: 'turn on badkamer lamp als het donker is
'
use_blueprint:
path: freakshock88/motion_illuminance_activated_entity.yaml
input:
motion_sensor: binary_sensor.beweging_badkamer_occupancy
target_entity: scene.badkamer_lamp_ochtend
no_motion_wait: input_number.badkamer_timer_ochtend
time_limit_after: input_datetime.badkamer_beweging_active_ochtend
time_limit_before: input_datetime.badkamer_beweging_inactive_ochtend
target_off_entity: light.badkamer_lamp_dimmer_1
- id: '1660496062014'
alias: 'Hal - Beweging toilet '
description: ''
use_blueprint:
path: freakshock88/motion_illuminance_activated_entity.yaml
input:
motion_sensor: binary_sensor.beweging_toilet_occupancy
target_entity: light.lamp_toilet
illuminance_sensor: sensor.beweging_toilet_illuminance_lux
no_motion_wait: input_number.beweging_toilet_timer
target_off_entity: light.lamp_toilet
illuminance_cutoff: input_number.beweging_toilet_helderheid
- id: '1660502406213'
alias: Tuin - Lights On At Sunset
description: ''
use_blueprint:
path: CyanAutomation/lights_on_at_sunset.yaml
input:
target_light:
area_id: tuin
target_brightness: 65
- id: '1660507765057'
alias: woonkamer - alles uit
description: ''
trigger:
- platform: device
type: turned_off
device_id: 800c3462cb0da0ee95bfcf8c5154278c
entity_id: light.lamp_sfeer_dimmer_1
domain: light
condition:
- condition: time
after: '22:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
action:
- service: scene.turn_on
target:
entity_id: scene.beneden_alles_uit
metadata: {}
mode: single
- id: '1660508989788'
alias: Slaapkamer - bedlamp aan lage helderheid
description: ''
trigger:
- platform: device
domain: mqtt
device_id: adc076a39e1a0df058ab1423acca5dde
type: action
subtype: single_right
discovery_id: 0x00158d0002ec3873 action_single_right
condition:
- condition: device
type: is_off
device_id: d6fde94fb152332d9abf7e59c93fb32c
entity_id: light.lamp_bed_slaapkamer
domain: light
action:
- type: turn_on
device_id: d6fde94fb152332d9abf7e59c93fb32c
entity_id: light.lamp_bed_slaapkamer
domain: light
brightness_pct: 10
mode: single
- id: '1661103772228'
alias: zolder knoppen werken (2) aan
description: ''
trigger:
- platform: device
domain: mqtt
device_id: a7bc75c4ece60567f111d2ec6dfd1fe8
type: action
subtype: on_2
discovery_id: 0xbc33acfffe6f8eca action_on_2
condition: []
action:
- service: scene.turn_on
target:
entity_id: scene.werken_op_zolder
metadata: {}
mode: single
- id: '1661103922881'
alias: zolder knoppen werken (2) uit
description: ''
trigger:
- platform: device
domain: mqtt
device_id: a7bc75c4ece60567f111d2ec6dfd1fe8
type: action
subtype: off_2
discovery_id: 0xbc33acfffe6f8eca action_off_2
condition: []
action:
- service: scene.turn_on
target:
entity_id: scene.klaar_met_werken_op_zolder
metadata: {}
mode: single
- id: '1661107342293'
alias: Zolder - Wasdroger cycle
description: ''
use_blueprint:
path: leofabri/appliance-status-monitor.yaml
input:
appliance_socket: switch.zolder_wasdroger_switch
appliance_power_sensor: sensor.zolder_wasdroger_electric_w_value
appliance_starting_power_threshold: 100
appliance_finishing_power_threshold: 5
appliance_state_machine: input_select.wasdroger_state_machine
appliance_job_cycle: input_boolean.wasdroger_job_cycle
delayed_job_completion_timer: timer.wasdroger_delayed_job_completion_timer
automation_self_trigger: input_boolean.wasdroger_automation_self_trigger
delayed_job_completion_duration: 8
actions_new_job_cycle_begins: []
actions_job_cycle_ends:
- service: media_player.play_media
target:
entity_id: media_player.inrit_speaker
data:
media_content_id: media-source://tts/cloud?message=Hey%2C+ik+denk+dat+de+wasdroger+klaar+is&language=nl-NL&gender=female
media_content_type: provider
metadata:
title: Hey, ik denk dat de wasdroger klaar is
thumbnail: https://brands.home-assistant.io/_/cloud/logo.png
media_class: app
children_media_class:
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://tts
- media_content_type: provider
media_content_id: media-source://tts/cloud?message=Hey%2C+ik+denk+dat+de+wasdroger+klaar+is&language=nl-NL&gender=female
- id: '1661238732633'
alias: Tuin - verlichting uit ochtend
description: ''
trigger:
- platform: sun
event: sunrise
offset: 00:30:00
condition: []
action:
- service: scene.turn_on
target:
entity_id: scene.tuin_uit
metadata: {}
mode: single
- id: '1661711305212'
alias: Tuin - waterklep fix
description: ''
trigger:
- type: opened
platform: device
device_id: 172891d014f4ffcaefd3e0310574ed3a
entity_id: binary_sensor.waterklep_contact_contact
domain: binary_sensor
condition:
- condition: device
type: is_on
device_id: 14791754a4e8dd8e44b075ab2b932296
entity_id: switch.waterklep
domain: switch
for:
hours: 0
minutes: 0
seconds: 4
action:
- type: turn_on
device_id: 14791754a4e8dd8e44b075ab2b932296
entity_id: switch.waterklep
domain: switch
mode: restart
- id: '1661802357554'
alias: Tuin - Knop verlichting aan
description: ''
trigger:
- platform: device
domain: mqtt
device_id: c976ab1909dcc67895eccdce5708b0dc
type: action
subtype: on_4
discovery_id: 0x60a423fffe28320f action_on_4
condition: []
action:
- service: scene.turn_on
data: {}
target:
entity_id: scene.tuin_avond
mode: single
- id: '1661802390986'
alias: Tuin - Knop tuin verlichting uit
description: ''
trigger:
- platform: device
domain: mqtt
device_id: c976ab1909dcc67895eccdce5708b0dc
type: action
subtype: off_4
discovery_id: 0x60a423fffe28320f action_off_4
condition: []
action:
- service: scene.turn_on
data:
transition: 11
target:
entity_id: scene.tuin_uit
mode: single
- id: '1661802536602'
alias: Woonkamer - Knop screen open
description: ''
trigger:
- platform: device
domain: mqtt
device_id: c976ab1909dcc67895eccdce5708b0dc
type: action
subtype: off_2
discovery_id: 0x60a423fffe28320f action_off_2
condition: []
action:
- device_id: a811912be259da54b0aa6a3779e0b3f3
domain: cover
entity_id: cover.nodeid_31_position
type: set_position
position: 100
mode: single
- id: '1661802562810'
alias: Woonkamer - Knop screen dicht
description: ''
trigger:
- platform: device
domain: mqtt
device_id: c976ab1909dcc67895eccdce5708b0dc
type: action
subtype: on_2
discovery_id: 0x60a423fffe28320f action_on_2
condition:
- type: is_not_open
condition: device
device_id: 3a24020f2cc036b7a7ff1658e0dbd7d6
entity_id: binary_sensor.raam_eetkamer_contact
domain: binary_sensor
action:
- device_id: a811912be259da54b0aa6a3779e0b3f3
domain: cover
entity_id: cover.nodeid_31_position
type: set_position
position: 0
mode: single
- id: '1661802788925'
alias: Woonkamer - Knop screen Zon laag
description: ''
trigger:
- platform: device
domain: mqtt
device_id: c976ab1909dcc67895eccdce5708b0dc
type: action
subtype: brightness_stop_2
discovery_id: 0x60a423fffe28320f action_brightness_stop_2
condition: []
action:
- device_id: a811912be259da54b0aa6a3779e0b3f3
domain: cover
entity_id: cover.nodeid_31_position
type: set_position
position: 39
mode: single
- id: '1661803600011'
alias: Woonkamer - ochtend
description: ''
trigger:
- platform: time
at: 00:07:30
condition: []
action:
- service: scene.turn_on
target:
entity_id: scene.woonkamer_ochtend_scene
metadata: {}
mode: single
- id: '1662235717886'
alias: Woonkamer - CO2 melding
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.woonkamer_co2
for:
hours: 0
minutes: 5
seconds: 0
attribute: state_class
above: '1000'
condition: []
action:
- service: notify.mobile_app_iphone
data:
message: Co2 in de woonkamer te hoog, nu ventileren
title: Let op!
- service: notify.mobile_app_iphone_van_ilse
data:
message: Co2 in de woonkamer te hoog, nu ventileren
title: Let op!
mode: single
- id: '1662613235716'
alias: Slaapkamer - toggle rgb lamp
description: ''
trigger:
- platform: device
domain: mqtt
device_id: adc076a39e1a0df058ab1423acca5dde
type: action
subtype: single_left
discovery_id: 0x00158d0002ec3873 action_single_left
condition: []
action:
- if:
- condition: device
type: is_off
device_id: 486c39036f87bee0fb2ed8521eb89559
entity_id: light.lamp_rgb_slaapkamer
domain: light
then:
- service: scene.turn_on
target:
entity_id: scene.slaapkamer_rgb_wit
metadata: {}
enabled: false
- service: scene.turn_on
target:
entity_id: scene.slaapkamer_dim_wit
metadata: {}
else:
- type: turn_off
device_id: 486c39036f87bee0fb2ed8521eb89559
entity_id: light.lamp_rgb_slaapkamer
domain: light
mode: single
- id: '1665381406928'
alias: Keuken - Aanrecht S2 - keuken lamp
description: ''
trigger:
- platform: device
type: changed_states
device_id: d6af5907c10dd749aec17d4881e37f8c
entity_id: light.lamp_aanrecht_keuken_dimmer_2
domain: light
condition: []
action:
- type: toggle
device_id: 321e6c4fe63648395bb10ad472d79ebf
entity_id: light.lamp_keuken_dimmer_1
domain: light
mode: single
- id: '1666338442880'
alias: Tuin - melding poort
description: ''
trigger:
- type: opened
platform: device
device_id: 692b4399bddfc992385e65ea0fcf8af6
entity_id: binary_sensor.deurcontact_poort_contact
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 3
condition: []
action:
- service: notify.mobile_app_iphone_van_ilse
data:
message: sensor van de poort getriggerd (poort open)
- service: notify.mobile_app_iphone_van_willem
data:
message: sensor van de poort getriggerd (poort open)
mode: single
- id: '1666506600186'
alias: Slaapkamer - bed lamp feller
description: ''
trigger:
- platform: device
domain: mqtt
device_id: adc076a39e1a0df058ab1423acca5dde
type: action
subtype: hold_right
discovery_id: 0x00158d0002ec3873 action_hold_right
condition: []
action:
- device_id: d6fde94fb152332d9abf7e59c93fb32c
domain: light
entity_id: light.lamp_bed_slaapkamer
type: brightness_increase
mode: single
- id: '1666506798460'
alias: Slaapkamer - bedlamp uit (R single click)
description: ''
trigger:
- platform: device
domain: mqtt
device_id: adc076a39e1a0df058ab1423acca5dde
type: action
subtype: single_right
discovery_id: 0x00158d0002ec3873 action_single_right
condition:
- condition: device
type: is_on
device_id: d6fde94fb152332d9abf7e59c93fb32c
entity_id: light.lamp_bed_slaapkamer
domain: light
action:
- type: turn_off
device_id: d6fde94fb152332d9abf7e59c93fb32c
entity_id: light.lamp_bed_slaapkamer
domain: light
mode: single
- id: '1666506915317'
alias: Slaapkamer bedlamp max
description: ''
trigger:
- platform: device
domain: mqtt
device_id: adc076a39e1a0df058ab1423acca5dde
type: action
subtype: double_right
discovery_id: 0x00158d0002ec3873 action_double_right
condition:
- condition: device
type: is_on
device_id: d6fde94fb152332d9abf7e59c93fb32c
entity_id: light.lamp_bed_slaapkamer
domain: light
action:
- type: turn_on
device_id: d6fde94fb152332d9abf7e59c93fb32c
entity_id: light.lamp_bed_slaapkamer
domain: light
brightness_pct: 90
mode: single
- id: '1670606586705'
alias: schakers lamp bank
description: ''
trigger:
- platform: device
type: changed_states
device_id: 0366da9bdbe101d7da225ade40b958e6
entity_id: light.lamp_woonkamer_2
domain: light
condition: []
action:
- type: toggle
device_id: f9dbed5d9d5ff3cfbfd777f7ddd3fe3b
entity_id: light.lamp_bank
domain: light
mode: single
- id: '1671052282402'
alias: slaapkamer bedlamp fel
description: ''
trigger:
- platform: device
domain: mqtt
device_id: adc076a39e1a0df058ab1423acca5dde
type: action
subtype: double_right
discovery_id: 0x00158d0002ec3873 action_double_right
condition:
- condition: device
type: is_on
device_id: d6fde94fb152332d9abf7e59c93fb32c
entity_id: light.lamp_bed_slaapkamer
domain: light
action:
- type: turn_on
device_id: d6fde94fb152332d9abf7e59c93fb32c
entity_id: light.lamp_bed_slaapkamer
domain: light
brightness_pct: 85
mode: single
- id: '1671375517880'
alias: Woonkamer - knoppen 4(on) (tuin aan)
description: ''
trigger:
- platform: device
domain: mqtt
device_id: c976ab1909dcc67895eccdce5708b0dc
type: action
subtype: on_4
discovery_id: 0x60a423fffe28320f action_on_4
condition: []
action:
- service: scene.turn_on
data:
transition: 10
target:
entity_id: scene.tuin_avond
mode: single
- id: '1671375563261'
alias: woonkamer - knoppen 4-off (tuin uit)
description: ''
trigger:
- platform: device
domain: mqtt
device_id: c976ab1909dcc67895eccdce5708b0dc
type: action
subtype: off_4
discovery_id: 0x60a423fffe28320f action_off_4
condition: []
action:
- service: scene.turn_on
data:
transition: 10
target:
entity_id: scene.tuin_uit
mode: single