Files
hassos_config/automations.yaml

1371 lines
36 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: Blackshome/sensor-light.yaml
input:
motion_trigger:
- binary_sensor.beweging_hal_motion_detection
light_switch:
area_id: hal
time_delay: 10
include_light_control: dont_use_brightness
include_bypass: bypass_enabled_stop
include_ambient: ambient_enabled
ambient_light_sensor: sensor.beweging_hal_illuminance
ambient_light_options: ambient_light_option_enabled
include_time: time_enabled
after_time: 00:07:00
before_time: 00:19:30
- id: '1655843572859'
alias: Keuken - beweging sensor
description: ''
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
motion_trigger:
- binary_sensor.beweging_keuken_sensor_state_motion_2
time_delay: 10
include_light_control:
- use_brightness
- use_transition
light_brightness: 50
include_bypass: bypass_enabled
include_ambient: ambient_disabled
include_sun: sun_disabled
sun_elevation: -1
include_night_lights: night_lights_enabled
night_lights:
device_id: 1281186f8b90c2b00053decdf33a6d72
night_time_delay: 5.5
include_night_light_control:
- use_night_brightness
- use_brightness
- use_transition
night_light_brightness: 14
night_lights_after_time: '20:30:30'
night_lights_before_time: '23:00:00'
light_switch:
entity_id: light.lamp_aanrecht
motion_bypass: binary_sensor.contact_achterdeur_contact
night_lights_conditions:
- time_enabled
night_lights_entity_state: []
include_time: time_enabled
after_time: 00:07:00
before_time: 00:20:30
include_device_tracker: zone_enabled
- 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: power_off
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:
transition: 13
target:
entity_id:
- scene.woonkamer_sfeer_verlichting_aan
- type: turn_off
device_id: 3d18e796f75575f85a7289ecc8f5847c
entity_id: 7c6e8f4df48141fbf793f6950c5cca44
domain: light
mode: single
- id: '1660333123289'
alias: Badkamer - beweging
description: 'turn on badkamer lamp als het donker is
'
use_blueprint:
path: Blackshome/sensor-light47.yaml
input:
motion_trigger:
- binary_sensor.beweging_badkamer_occupancy
light_switch:
entity_id: light.lamp_badkamer
include_light_control:
- use_brightness
- use_transition
light_transition_off: 3
light_transition_on: 1
after_time: 00:07:15
light_brightness: 46
time_delay: 8
before_time: 00:20:30
include_night_lights: night_lights_enabled
night_lights:
entity_id: light.lamp_badkamer
include_night_light_control:
- use_brightness
- use_transition
night_time_delay: 3
night_light_brightness: 8
night_lights_conditions:
- time_enabled
night_lights_entity_state: []
night_lights_after_time: 00:20:30
night_lights_before_time: 00:22:30
- id: '1660496062014'
alias: 'Hal - Beweging toilet '
description: ''
use_blueprint:
path: freakshock88/motion_illuminance_activated_entity.yaml
input:
no_motion_wait: input_number.beweging_toilet_timer
target_off_entity: light.lamp_wc_beneden_light
motion_sensor: binary_sensor.beweging_toilet_occupancy
target_entity: scene.wc_aan
- id: '1660507765057'
alias: woonkamer - alles uit - sfeer schakelaar
description: ''
trigger:
- platform: state
entity_id:
- light.lamp_sfeer2
from: 'on'
to: 'off'
condition:
- condition: time
after: '21:30:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
before: 04:00:00
action:
- service: scene.turn_on
target:
entity_id: scene.woonkamer_ochtend_scene
metadata: {}
- type: turn_off
device_id: 6652a530d4f2c349be36ea58904e613f
entity_id: switch.display_woonkamer_browsee_screen
domain: switch
- service: scene.turn_on
target:
entity_id: scene.kerst_uit
data: {}
- delay:
hours: 0
minutes: 0
seconds: 20
milliseconds: 0
- service: scene.turn_on
data:
transition: 19
target:
entity_id: scene.tuin_nacht
- type: turn_off
device_id: 1281186f8b90c2b00053decdf33a6d72
entity_id: light.lamp_aanrecht
domain: light
mode: single
- id: '1661238732633'
alias: Tuin - alles uit in de ochtend
description: ''
trigger:
- platform: sun
event: sunrise
offset: 00:30:00
condition: []
action:
- service: script.tuin_alles_uit
mode: single
- id: '1661803600011'
alias: Woonkamer - Beweging
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.beweging_woon_eetm
from: 'off'
to: 'on'
condition:
- condition: or
conditions:
- condition: time
after: sensor.sun_next_setting
before: '22:00:00'
weekday:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
alias: After Sunset
- condition: device
type: is_off
device_id: 497536ba6a270af14bbc9594502c79f9
entity_id: 5f3f158ec2ef6a1d76bd3729c55fa181
domain: light
action:
- service: scene.turn_on
target:
entity_id: scene.woonkamer_sfeer_verlichting_aan
metadata: {}
mode: single
- id: '1670606586705'
alias: Woonkamer - lamp sfeer/ bank sync
description: ''
trigger:
- platform: state
entity_id:
- light.lamp_sfeer2
from: 'off'
to: 'on'
id: Lamp gaat aan
- platform: state
entity_id:
- light.lamp_sfeer2
from: 'on'
to: 'off'
id: Lamp gaat uit
- platform: state
entity_id:
- light.lamp_bank_light
attribute: brightness
id: Helderheid
condition:
- condition: device
device_id: e114f1eb7daa22b88511d015df1f12f7
domain: select
entity_id: select.harmony_hub_activities
type: selected_option
option: power_off
action:
- choose:
- conditions:
- condition: trigger
id:
- Lamp gaat aan
sequence:
- type: turn_on
device_id: 3d18e796f75575f85a7289ecc8f5847c
entity_id: 7c6e8f4df48141fbf793f6950c5cca44
domain: light
brightness_pct: 30
- type: turn_on
device_id: 84d66e5b8bf8a78c3a1bf8fe0dcccf7d
entity_id: 10d3e1053f8475aa6370bef50d1540bf
domain: light
brightness_pct: 30
- conditions:
- condition: trigger
id:
- Lamp gaat uit
sequence:
- type: turn_off
device_id: 3d18e796f75575f85a7289ecc8f5847c
entity_id: 7c6e8f4df48141fbf793f6950c5cca44
domain: light
- type: turn_off
device_id: 84d66e5b8bf8a78c3a1bf8fe0dcccf7d
entity_id: 10d3e1053f8475aa6370bef50d1540bf
domain: light
mode: single
- id: '1673030409002'
alias: Hal - voordeur deurbel [BP]
description: ''
use_blueprint:
path: AngellusMortis/notification_ring_event.yaml
input:
doorbell_sensor:
- binary_sensor.voordeur_doorbell
cooldown: 29
notify_target_app: notify.notify
- id: '1674677403574'
alias: Keuken - Lamp S2 association Aanrecht
description: ''
trigger:
- platform: device
type: changed_states
device_id: 902cb3baf4ede5a269e89018c1ebd1cd
entity_id: light.lamp_keuken_2
domain: light
condition: []
action:
- type: toggle
device_id: 1281186f8b90c2b00053decdf33a6d72
entity_id: light.lamp_aanrecht
domain: light
mode: single
- id: '1675520145446'
alias: Zolder - knoppen bureau willem (BP)
description: ''
use_blueprint:
path: Bekkie/robb-smart-8-switch-ROBB-ROB_200-007-0.yaml
input:
remote: 7ed6c466f25f5b6aa59d9975cefc9e53
on_button_1_short:
- service: scene.turn_on
data: {}
target:
entity_id: scene.werken_op_zolder
off_button_1_short:
- service: scene.turn_on
data: {}
target:
entity_id: scene.klaar_met_werken_op_zolder
on_button_2_short:
- device_id: 53a4e48d13f3f94e7ca1ffe0557ac135
domain: climate
entity_id: climate.airco_4
type: set_hvac_mode
hvac_mode: heat_cool
off_button_2_short:
- device_id: 53a4e48d13f3f94e7ca1ffe0557ac135
domain: climate
entity_id: climate.airco_4
type: set_hvac_mode
hvac_mode: 'off'
- id: '1675628615548'
alias: Woonkamer - grover gaat smorgens poetsen
description: ''
trigger:
- platform: time
at: 06:30:00
condition:
- condition: or
conditions:
- condition: template
value_template: '{{ (as_timestamp(now()) - as_timestamp(states.sensor.roborock_vacuum_s5e_last_clean_end.last_updated)
)/3600 > 8}}'
enabled: false
- condition: and
conditions:
- condition: template
value_template: " - condition: template\n value_template: >-\n {{
(as_timestamp(now()) -\n as_timestamp(states.sensor.roborock_vacuum_s5e_last_clean_end.last_updated)\n
\ )/3600 > 1}}"
enabled: false
enabled: false
action:
- service: vacuum.set_fan_speed
data:
fan_speed: Low
target:
device_id: b99930765798a4796ca3ebb87e84299e
- device_id: b99930765798a4796ca3ebb87e84299e
domain: vacuum
entity_id: vacuum.roborock_vacuum_s5e
type: clean
mode: single
- id: '1676053221891'
alias: Tuin - verlichting sunset
description: ''
trigger:
- platform: sun
event: sunset
offset: 0
condition: []
action:
- service: script.tuin_alles_aan
data: {}
mode: single
- id: '1677177131483'
alias: hass - lowbatt meliding sensors naar iphone willem
description: ''
use_blueprint:
path: gmlupatelli/low_battery_notification.yaml
input:
time: '19:40:00'
actions:
- service: notify.mobile_app_iphone_van_willem
data:
message: sensor batteries are low {{sensors}}
- id: '1677526576561'
alias: slaapkamer i&w - knoppen bed willem (knop 2)
description: ''
trigger:
- platform: device
domain: mqtt
device_id: c66db9a5754b9b4da704d9ef7035a5ff
type: action
subtype: single_right
discovery_id: 0x00158d0002ec3873 action_single_right
id: right click
- platform: device
domain: mqtt
device_id: c66db9a5754b9b4da704d9ef7035a5ff
type: action
subtype: double_right
discovery_id: 0x00158d0002ec3873 action_double_right
id: right double
- platform: device
domain: mqtt
device_id: c66db9a5754b9b4da704d9ef7035a5ff
type: action
subtype: hold_right
discovery_id: 0x00158d0002ec3873 action_hold_right
id: right long
- platform: device
domain: mqtt
device_id: c66db9a5754b9b4da704d9ef7035a5ff
type: action
subtype: single_left
discovery_id: 0x00158d0002ec3873 action_single_left
id: Left click
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- right click
sequence:
- if:
- condition: device
type: is_off
device_id: c3a69f2946313f5a7dd59d0be8dd4453
entity_id: 4d270b69ca1549ce0b98ede27c73aade
domain: light
then:
- type: turn_on
device_id: c3a69f2946313f5a7dd59d0be8dd4453
entity_id: 4d270b69ca1549ce0b98ede27c73aade
domain: light
brightness_pct: 20
else:
- type: turn_off
device_id: c3a69f2946313f5a7dd59d0be8dd4453
entity_id: 4d270b69ca1549ce0b98ede27c73aade
domain: light
- conditions:
- condition: trigger
id:
- right double
sequence:
- if:
- condition: device
type: is_off
device_id: c3a69f2946313f5a7dd59d0be8dd4453
entity_id: 4d270b69ca1549ce0b98ede27c73aade
domain: light
then:
- type: turn_on
device_id: c3a69f2946313f5a7dd59d0be8dd4453
entity_id: 4d270b69ca1549ce0b98ede27c73aade
domain: light
brightness_pct: 100
else:
- type: turn_off
device_id: c3a69f2946313f5a7dd59d0be8dd4453
entity_id: 4d270b69ca1549ce0b98ede27c73aade
domain: light
mode: single
- id: '1678901438847'
alias: slaapkamer Luuk - knop verwarming uit
description: ''
trigger:
- platform: device
domain: mqtt
device_id: b302a6fc59c6e18c53e40eba7ef192b7
type: click
subtype: single
discovery_id: 0x00158d0008ad9560 click_single
condition: []
action:
- service: climate.set_temperature
data:
temperature: 16
target:
entity_id: climate.kamer_luuk
mode: single
- id: '1678902018862'
alias: slaapkamer luuk - longpress verwarming aan
description: ''
trigger:
- platform: device
domain: mqtt
device_id: b302a6fc59c6e18c53e40eba7ef192b7
type: action
subtype: hold
discovery_id: 0x00158d0008ad9560 action_hold
condition: []
action:
- service: climate.set_preset_mode
data:
preset_mode: None
target:
entity_id: climate.kamer_luuk
- service: climate.set_temperature
data:
temperature: 18.5
target:
entity_id: climate.kamer_luuk
mode: single
- id: '1679849595183'
alias: woonkamer - alles uit als het licht is
description: ''
trigger:
- platform: sun
event: sunrise
offset: '1:00:00'
condition: []
action:
- service: scene.turn_on
target:
entity_id: scene.beneden_alles_uit
metadata: {}
- service: light.turn_off
data: {}
target:
entity_id: light.lamp_bed_willem
mode: single
- id: '1683566553338'
alias: awtrix_sensor_power_app
description: ''
use_blueprint:
path: smarthomejunkie/awtrix_create_sensor_app.yaml
input:
awtrix_displays:
- 658104c6c966f75ddf9c747816e4a8f4
toggle_helper: input_boolean.awtrix_power_sensor_toggle
my_sensor: sensor.dsmr_reading_electricity_currently_delivered
my_icon: '21256'
show_rainbow: false
switch_to_app: false
- id: '1683882275516'
alias: awtrix_sensor_pm2.5
description: ''
use_blueprint:
path: smarthomejunkie/awtrix_create_sensor_app.yaml
input:
awtrix_displays:
- 658104c6c966f75ddf9c747816e4a8f4
toggle_helper: input_boolean.awtrix_power_sensor_toggle
my_icon: '2718'
push_icon: '1'
my_sensor: sensor.esp32_s2_aqs_ikea_particulate_matter_25m_concentration
- id: '1683882676954'
alias: awtrix_stock_batt_toggle
description: ''
use_blueprint:
path: smarthomejunkie/awtrix_toggle_stock_app.yaml
input:
stock_app: Battery
awtrix_displays:
- 658104c6c966f75ddf9c747816e4a8f4
toggle_helper: input_boolean.awtrix_stock_batt_toggle
- id: '1685739271048'
alias: Woonkamer - display aan
description: ''
trigger:
- type: occupied
platform: device
device_id: 27369285b08c8900777ac3583ae8058d
entity_id: e7b249bd9662466cb3992ed760842997
domain: binary_sensor
id: Motion on
- type: not_occupied
platform: device
device_id: 27369285b08c8900777ac3583ae8058d
entity_id: e7b249bd9662466cb3992ed760842997
domain: binary_sensor
id: Motion off
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Motion on
- condition: state
entity_id: switch.display_woonkamer_browsee_screen
state: 'off'
sequence:
- type: turn_on
device_id: 6652a530d4f2c349be36ea58904e613f
entity_id: 8ea088343901b662ed2ad97c14043b34
domain: switch
- if:
- condition: state
entity_id: sensor.display_woonkamer_current_page
attribute: full_url
state: http://192.168.2.181:8123/tuya-panel/0
then:
- stop: ''
else:
- device_id: 6652a530d4f2c349be36ea58904e613f
domain: button
entity_id: ef0133d776a0015c7b4209a9c19c3b14
type: press
- conditions:
- condition: trigger
id:
- Motion off
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.display_woonkamer_browsee_screen
mode: single
- id: '1686848917898'
alias: Tuin - automatisch water op timer
description: ''
trigger:
- platform: device
type: turned_on
device_id: e1fd7471fc9fcde9a19ec7175a486dd9
entity_id: switch.valve
domain: switch
condition: []
action:
- service: notify.mobile_app_iphone_van_willem
data:
message: Water timer gestart
- service: script.tuin_water_op_timer
data: {}
mode: single
- id: '1688631089095'
alias: Keuken - Oven notificatie (als iemand thuis is)
description: ''
trigger:
- platform: state
entity_id:
- sensor.oven_operation_state
to:
from: Run
condition: []
action:
- if:
- condition: device
device_id: 7943b25b6e99489c3e0357017e823116
domain: device_tracker
entity_id: device_tracker.iphone_van_willem
type: is_home
- condition: not
conditions:
- condition: state
entity_id: sensor.ble_iphone_willem
state: keuken
then:
- service: notify.mobile_app_iphone_van_willem
data:
message: De oven is klaar
title: Oven
- if:
- condition: device
device_id: 1888dfa80ca38679556432ff10ab08c3
domain: device_tracker
entity_id: device_tracker.iphone_van_ilse
type: is_home
- condition: not
conditions:
- condition: state
entity_id: sensor.ble_garmin_ilse
state: keuken
then:
- service: notify.mobile_app_iphone_van_ilse
data:
message: De oven is klaar
title: Oven
mode: single
- id: '1688722609177'
alias: Hass- daily backup
description: ''
trigger:
- platform: time
at: '23:00:00'
condition: []
action:
- service: hassio.backup_full
data:
compressed: true
name: Daily full backup
mode: single
- id: '1688995539213'
alias: Zolder - wasmachine notificatie
description: ''
trigger:
- platform: state
entity_id:
- sensor.wasmachine_status
for:
hours: 0
minutes: 0
seconds: 15
attribute: Raw value
to: '7'
condition: []
action:
- if:
- condition: device
device_id: 7943b25b6e99489c3e0357017e823116
domain: device_tracker
entity_id: device_tracker.iphone_van_willem
type: is_home
then:
- service: notify.mobile_app_iphone_van_willem
data:
message: De wasmachine is klaar {{ states('sensor.wasmachine_status') }}
title: Wasmachine
- if:
- condition: device
device_id: 1888dfa80ca38679556432ff10ab08c3
domain: device_tracker
entity_id: device_tracker.iphone_van_ilse
type: is_home
then:
- service: notify.mobile_app_iphone_van_ilse
data:
message: De wasmachine is klaar
title: wasmachine
enabled: false
mode: single
- id: '1689934123616'
alias: Garage - beweging
description: ''
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
motion_trigger:
- binary_sensor.beweging_overloop_occupancy
include_bypass: []
include_ambient: ambient_enabled
include_sun: sun_disabled
light_switch:
entity_id: switch.lamp_tuin_en_garage_l2
- id: '1691953933835'
alias: Slaapkamer I&W - knoppen bed willen [BP]
description: ''
use_blueprint:
path: Drafted/aqara-buttons-all-in-one-zigbee2mqtt.yaml
input:
action_sensor: sensor.knoppen_bed_willem_action
single_left_action:
- service: light.toggle
data:
color_temp: 153
brightness_pct: 20
target:
entity_id: light.hvac_ir_rgb_slaapkamer_neopixel_light
single_right_action:
- service: light.toggle
data:
transition: 2
color_temp: 500
brightness_pct: 12
target:
entity_id: light.lamp_bed_willem
double_left_action:
- service: light.toggle
data:
color_temp: 153
brightness_pct: 100
target:
entity_id: light.hvac_ir_rgb_slaapkamer_neopixel_light
- id: '1692176696957'
alias: Woonkamer - Update Map Extractor camera - dash
description: ''
use_blueprint:
path: PiotrMachowski/update_map_extractor.yaml
input:
vacuum: vacuum.roborock_s5_max
camera: camera.xiaomi_cloud_map_extractor
mode_to_handle: default_when_docked
browser_mod_path: /woonkamer-dashboard/grover
- id: '1693231308249'
alias: Tuin - speelhuisje contact WLED verloren
description: ''
trigger:
- platform: state
entity_id:
- sensor.ledstrip_huisje_ip
from:
to: unavailable
for:
hours: 0
minutes: 10
seconds: 0
condition: []
action:
- if:
- condition: numeric_state
entity_id: counter.errorcount_speelhuisje_wled
below: 5
then:
- service: switch.turn_off
data: {}
target:
entity_id: switch.lamp_speelhuisje_2
- delay:
hours: 0
minutes: 0
seconds: 7
milliseconds: 0
- service: switch.turn_on
data: {}
target:
entity_id: switch.lamp_speelhuisje_2
- service: counter.increment
data: {}
target:
entity_id: counter.errorcount_speelhuisje_wled
- service: notify.mobile_app_iphone_van_willem
data:
message: wled speelhuisje gereset
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- service: automation.trigger
data:
skip_condition: false
target:
entity_id: automation.tuin_speelhuisje_contact_wled_verloren
else:
- service: notify.mobile_app_iphone_van_willem
data:
message: wled speelhuisje offline
- service: counter.reset
data: {}
target:
entity_id: counter.errorcount_speelhuisje_wled
mode: queued
max: 10
- id: '1693233150315'
alias: zolder - display aan-uit
description: ''
trigger:
- type: occupied
platform: device
device_id: 421c336927a0f77029b0fed34d671b2f
entity_id: 7e54ba83e86dbf44c5cba0029e9d887f
domain: binary_sensor
id: Motion on
- type: not_occupied
platform: device
device_id: 421c336927a0f77029b0fed34d671b2f
entity_id: 7e54ba83e86dbf44c5cba0029e9d887f
domain: binary_sensor
id: Motion off
for:
hours: 0
minutes: 5
seconds: 0
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Motion on
- condition: state
entity_id: switch.display_zolder_screen
state: 'off'
sequence:
- type: turn_on
device_id: e8cd1bef3832c97b4d86060d961f5161
entity_id: d5951cf569e8687ed04ec90cccae7e3e
domain: switch
- conditions:
- condition: trigger
id:
- Motion off
sequence:
- service: switch.turn_off
data: {}
target:
entity_id: switch.display_zolder_screen
mode: single
- id: '1694106579376'
alias: Overloop - gordijn
description: ''
trigger:
- platform: time
at: '19:15:00'
id: Avond
- platform: time
at: 08:00:00
id: Ochtend
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Avond
sequence:
- device_id: cc0db2acf0bb2018d46ad2ffd2f89df1
domain: cover
entity_id: 50a2b15de13d2e3f2d7e26c302ccd3ff
type: close
- conditions:
- condition: trigger
id:
- Ochtend
sequence:
- choose:
- conditions:
- condition: state
entity_id: sensor.iphone_van_willem_battery_state
state: not charging
- condition: state
entity_id: sensor.iphone_van_ilse_battery_state
state: not charging
sequence:
- device_id: cc0db2acf0bb2018d46ad2ffd2f89df1
domain: cover
entity_id: 50a2b15de13d2e3f2d7e26c302ccd3ff
type: open
mode: single
- id: '1694164626646'
alias: esphome - plantsensor OTA mode
description: ''
trigger:
- platform: state
entity_id:
- input_boolean.esphome_plantsensor_ota
to: 'on'
from:
id: OTA mode ON
- platform: state
entity_id:
- input_boolean.esphome_plantsensor_ota
to: 'off'
from:
id: OTA mode OFF
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- OTA mode ON
sequence:
- service: mqtt.publish
data:
topic: esphomeOTA/plant
payload: 'ON'
retain: false
- conditions:
- condition: trigger
id:
- OTA mode OFF
sequence:
- service: mqtt.publish
data:
topic: esphomeOTA/plant
retain: true
payload: PASS
mode: single
- id: '1694165252916'
alias: esphome - mailbox OTA
description: ''
trigger:
- platform: state
entity_id:
- input_boolean.esphome_mailbox_ota
to: 'on'
from:
id: OTA mode ON
- platform: state
entity_id:
- input_boolean.esphome_mailbox_ota
to: 'off'
from:
id: OTA mode OFF
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- OTA mode ON
sequence:
- service: mqtt.publish
data:
payload: 'ON'
retain: false
topic: esphomeOTA/mailbox
- conditions:
- condition: trigger
id:
- OTA mode OFF
sequence:
- service: mqtt.publish
data:
topic: esphomeOTA/mailbox
payload: 'OFF'
retain: true
mode: single
- id: '1694291616550'
alias: Slaapkamer - airco uit na 30min
description: ''
trigger:
- platform: device
type: turned_off
device_id: 8e94a930de2ce2b7b817fd4c170db303
entity_id: 72a31f7297d662dc207906fe69c363f2
domain: remote
condition: []
action:
- choose:
- conditions:
- condition: device
device_id: bef3c23b914774df516fe3c845614ac4
domain: climate
entity_id: 746b0157892ce233c7c5b698b4590407
type: is_hvac_mode
hvac_mode: cool
sequence:
- delay:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
- service: climate.set_hvac_mode
data:
hvac_mode: 'off'
target:
device_id: bef3c23b914774df516fe3c845614ac4
mode: single
- id: '1695061260712'
alias: Awtrix - weather
description: ''
use_blueprint:
path: smarthomejunkie/awtrix_weather_app.yaml
input:
awtrix_displays:
- 658104c6c966f75ddf9c747816e4a8f4
toggle_helper: input_boolean.awtrix_weather_app_toggle
my_sensor: weather.forecast_home
show_windspeed: false
show_humidity: false
- id: '1695061493153'
alias: awtrix_rain_app
description: ''
use_blueprint:
path: smarthomejunkie/awtrix_rain_forecast.yaml
input:
awtrix_displays:
- 658104c6c966f75ddf9c747816e4a8f4
toggle_helper: input_boolean.awtrix_rain_app_toggle
my_sensor: weather.forecast_home
my_text: het blijft droog
switch_to_app: true
- id: '1695061873005'
alias: awtrix_moodlight_app
description: ''
use_blueprint:
path: smarthomejunkie/awtrix_moodlight.yaml
input:
awtrix_displays:
- 658104c6c966f75ddf9c747816e4a8f4
toggle_helper: input_boolean.awtrix_moodlight_toggle
brightness: 57
moodlight_color:
- 141
- 134
- 0
moodlight_kelvin: 2358
- id: '1698444876761'
alias: 'Badkamer - vloer volgt radiator '
description: ''
trigger:
- platform: state
entity_id:
- climate.badkamer
attribute: temperature
condition: []
action:
- service: climate.set_temperature
data:
temperature: '{{state_attr(''climate.badkamer'',''status'').setpoint_status.target_heat_temperature}}
'
target:
device_id: f2c8a19181504e3272eca879011d229e
mode: single
- id: '1698778051950'
alias: haloween - deurbel ring
description: ''
trigger:
- type: occupied
platform: device
device_id: 7c1ced4c0307f87bc9a1b16401d6c4cd
entity_id: 3089242bc08db2a80c6514b77a22924d
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 3
condition: []
action:
- service: script.halloween_play_witches
data: {}
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: script.haloween
data: {}
mode: single
- id: '1698778147875'
alias: haloween - deurbel beweging - heks
description: ''
trigger:
- type: motion
platform: device
device_id: 7c1ced4c0307f87bc9a1b16401d6c4cd
entity_id: 67974fc0dec97abcc1d421cff8f3f899
domain: binary_sensor
condition:
- condition: time
after: '16:00:00'
before: '22:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
action:
- service: script.haloween
data: {}
- service: script.halloween_play_witches
data: {}
- repeat:
sequence:
- service: script.haloween
data: {}
until:
- type: is_no_motion
condition: device
device_id: 7c1ced4c0307f87bc9a1b16401d6c4cd
entity_id: 67974fc0dec97abcc1d421cff8f3f899
domain: binary_sensor
- service: light.turn_on
data:
color_temp: 500
brightness_pct: 35
target:
entity_id: light.tuin_lamp_voortuin_pad_rechts
mode: single
- id: '1701172785385'
alias: ha backup - git
description: ''
trigger:
- platform: time_pattern
hours: '23'
minutes: '23'
seconds: '23'
condition: []
action:
- service: hassio.addon_stdin
data:
addon: a0d7b954_ssh
input: /config/config_backup.sh
mode: single
- id: '1701204274791'
alias: slaapkamer tim - knoppen (2)
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 85799733aa5b0fcebd56bc35541afd1a
type: action
subtype: arrow_left_click
discovery_id: 0x003c84fffe32c0c0 action_arrow_left_click
id: arrow_left_click
- platform: device
domain: mqtt
device_id: 85799733aa5b0fcebd56bc35541afd1a
type: action
subtype: arrow_right_click
discovery_id: 0x003c84fffe32c0c0 action_arrow_right_click
id: arrow_right_click
- platform: device
domain: mqtt
device_id: 85799733aa5b0fcebd56bc35541afd1a
type: action
subtype: 'off'
discovery_id: 0x003c84fffe32c0c0 action_off
id: off_action
- platform: device
domain: mqtt
device_id: 85799733aa5b0fcebd56bc35541afd1a
type: action
subtype: 'on'
discovery_id: 0x003c84fffe32c0c0 action_on
id: on_action
- platform: device
domain: mqtt
device_id: 85799733aa5b0fcebd56bc35541afd1a
type: action
subtype: brightness_move_up
discovery_id: 0x003c84fffe32c0c0 action_brightness_move_up
id: brightness_move_up
- platform: device
domain: mqtt
device_id: 85799733aa5b0fcebd56bc35541afd1a
type: action
subtype: brightness_move_down
discovery_id: 0x003c84fffe32c0c0 action_brightness_move_down
id: brightness_move_down
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: arrow_right_click
sequence:
- service: light.turn_on
target:
entity_id: light.rgb_slaapkamer_tim
data:
color_temp: '{% if state_attr("light.rgb_slaapkamer_tim","color_temp") is
none %} 454 {% elif state_attr("light.rgb_slaapkamer_tim","color_temp")|int
> 350 %} 333 {% elif state_attr("light.rgb_slaapkamer_tim","color_temp")|int
> 332 %} 285 {% elif state_attr("light.rgb_slaapkamer_tim","color_temp")|int
> 284 %} 244 {% else %} 370 {% endif %}
'
- conditions:
- condition: trigger
id: off_action
sequence:
- type: turn_off
device_id: f8152ddb8405d3417a0141746a3c3ce0
entity_id: 5419855a4d17f478a45d515e8f9d87d9
domain: light
- conditions:
- condition: trigger
id: arrow_left_click
sequence:
- service: light.turn_on
data:
rgb_color:
- '{{ (range(0, 255)|random) }}'
- '{{ (range(0, 255)|random) }}'
- '{{ (range(0, 255)|random) }}'
target:
entity_id: light.rgb_slaapkamer_tim
- conditions:
- condition: trigger
id: on_action
sequence:
- type: turn_on
device_id: f8152ddb8405d3417a0141746a3c3ce0
entity_id: 5419855a4d17f478a45d515e8f9d87d9
domain: light
brightness_pct: 25
- conditions:
- condition: trigger
id: brightness_move_up
sequence:
- service: light.turn_on
target:
entity_id: light.rgb_slaapkamer_tim
data:
brightness: '{% if state_attr("light.rgb_slaapkamer_tim","brightness") is
none %} 8 {% elif state_attr("light.rgb_slaapkamer_tim","brightness")|int
< 9 %} 16 {% elif state_attr("light.rgb_slaapkamer_tim","brightness")|int
< 17 %} 32 {% elif state_attr("light.rgb_slaapkamer_tim","brightness")|int
< 33 %} 64 {% elif state_attr("light.rgb_slaapkamer_tim","brightness")|int
< 65 %} 128 {% elif state_attr("light.rgb_slaapkamer_tim","brightness")|int
< 129 %} 160 {% elif state_attr("light.rgb_slaapkamer_tim","brightness")|int
< 161 %} 192 {% elif state_attr("light.rgb_slaapkamer_tim","brightness")|int
< 193 %} 224 {% elif state_attr("light.rgb_slaapkamer_tim","brightness")|int
< 225 %} 255 {% else %} 10 {% endif %}
'
- conditions:
- condition: trigger
id: brightness_move_down
sequence:
- service: light.turn_on
target:
entity_id: light.rgb_slaapkamer_tim
data:
brightness: '{% if state_attr("light.rgb_slaapkamer_tim_light","brightness")
is none %} 32 {% elif state_attr("light.rgb_slaapkamer_tim_light","brightness")|int
> 254 %} 224 {% elif state_attr("light.rgb_slaapkamer_tim_light","brightness")|int
> 223 %} 192 {% elif state_attr("light.rgb_slaapkamer_tim_light","brightness")|int
> 191 %} 160 {% elif state_attr("light.rgb_slaapkamer_tim_light","brightness")|int
> 159 %} 128 {% elif state_attr("light.rgb_slaapkamer_tim_light","brightness")|int
> 127 %} 64 {% elif state_attr("light.rgb_slaapkamer_tim_light","brightness")|int
> 63 %} 32 {% elif state_attr("light.rgb_slaapkamer_tim_light","brightness")|int
> 31 %} 16 {% elif state_attr("light.rgb_slaapkamer_tim_light","brightness")|int
> 15 %} 8 {% else %} 128 {% endif %}
'
mode: single
- id: '1701930524468'
alias: kerst aan
description: ''
trigger:
- platform: time
at: 07:00:00
condition: []
action:
- service: scene.turn_on
data: {}
target:
entity_id: scene.kerst_aan
mode: single