294 lines
7.7 KiB
YAML
Executable File
294 lines
7.7 KiB
YAML
Executable File
- id: '1764278933071'
|
|
alias: 'Start Heating Living Room '
|
|
description: ''
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.0x54ef44100140a6a0_temperature
|
|
below: 18.5
|
|
conditions:
|
|
- condition: device
|
|
type: is_off
|
|
device_id: 076897fb77d93130a149555d2840fba9
|
|
entity_id: d7cc8f4b83bbbfa3000238face1fcc81
|
|
domain: switch
|
|
actions:
|
|
- type: turn_on
|
|
device_id: 076897fb77d93130a149555d2840fba9
|
|
entity_id: d7cc8f4b83bbbfa3000238face1fcc81
|
|
domain: switch
|
|
mode: single
|
|
- id: '1764279246529'
|
|
alias: Notify when Boiler not starting
|
|
description: ''
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.shellyplus1pm_345f452121a8_power
|
|
for:
|
|
hours: 0
|
|
minutes: 6
|
|
seconds: 15
|
|
above: 200
|
|
conditions:
|
|
- condition: device
|
|
type: is_on
|
|
device_id: 7f6eb02e6d4089ee609fc01f52641606
|
|
entity_id: 44bc95098b0249e636dea53a3a943045
|
|
domain: switch
|
|
actions:
|
|
- action: notify.mobile_app_brian_s_oneplus_9t
|
|
metadata: {}
|
|
data:
|
|
message: Boiler has stopped working
|
|
- action: notify.mobile_app_solveigs_oneplus
|
|
metadata: {}
|
|
data:
|
|
message: Boiler has stopped working
|
|
mode: single
|
|
- id: '1764280645105'
|
|
alias: Stop Heating Living Room
|
|
description: ''
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.0x54ef44100140a6a0_temperature
|
|
above: 19.5
|
|
conditions:
|
|
- condition: device
|
|
type: is_on
|
|
device_id: 076897fb77d93130a149555d2840fba9
|
|
entity_id: d7cc8f4b83bbbfa3000238face1fcc81
|
|
domain: switch
|
|
actions:
|
|
- type: turn_off
|
|
device_id: 076897fb77d93130a149555d2840fba9
|
|
entity_id: d7cc8f4b83bbbfa3000238face1fcc81
|
|
domain: switch
|
|
mode: single
|
|
- id: '1764351061738'
|
|
alias: Automatic Pantry Light
|
|
description: ''
|
|
triggers:
|
|
- type: occupied
|
|
device_id: c2fc163da91df4be8461c0c39ca390aa
|
|
entity_id: 06ef2a6feb3e955e5b963b897ddeb083
|
|
domain: binary_sensor
|
|
trigger: device
|
|
conditions:
|
|
- condition: device
|
|
type: is_off
|
|
device_id: c56f8f7d84afb6e990e52e859f37177b
|
|
entity_id: 1703a72f68b34a7ef76422543af68aa0
|
|
domain: switch
|
|
actions:
|
|
- type: turn_on
|
|
device_id: c56f8f7d84afb6e990e52e859f37177b
|
|
entity_id: 1703a72f68b34a7ef76422543af68aa0
|
|
domain: switch
|
|
- delay:
|
|
hours: 0
|
|
minutes: 2
|
|
seconds: 0
|
|
milliseconds: 0
|
|
- type: turn_off
|
|
device_id: c56f8f7d84afb6e990e52e859f37177b
|
|
entity_id: 1703a72f68b34a7ef76422543af68aa0
|
|
domain: switch
|
|
mode: single
|
|
- id: '1766766251998'
|
|
alias: 'Start Charging Charlie '
|
|
description: ''
|
|
triggers:
|
|
- trigger: time
|
|
at: 00:00:00
|
|
weekday:
|
|
- sun
|
|
conditions:
|
|
- condition: device
|
|
type: is_off
|
|
device_id: 058d238b5d8c63b38bc18870d0b6d6d1
|
|
entity_id: baa8a9d9624af8e4e446968d9494e54e
|
|
domain: switch
|
|
actions:
|
|
- type: turn_on
|
|
device_id: 058d238b5d8c63b38bc18870d0b6d6d1
|
|
entity_id: baa8a9d9624af8e4e446968d9494e54e
|
|
domain: switch
|
|
mode: single
|
|
- id: '1766766589349'
|
|
alias: 'Stop Charging Charlie '
|
|
description: ''
|
|
triggers:
|
|
- trigger: time
|
|
at: 00:00:00
|
|
weekday:
|
|
- mon
|
|
conditions:
|
|
- condition: device
|
|
type: is_on
|
|
device_id: 058d238b5d8c63b38bc18870d0b6d6d1
|
|
entity_id: baa8a9d9624af8e4e446968d9494e54e
|
|
domain: switch
|
|
actions:
|
|
- type: turn_off
|
|
device_id: 058d238b5d8c63b38bc18870d0b6d6d1
|
|
entity_id: baa8a9d9624af8e4e446968d9494e54e
|
|
domain: switch
|
|
mode: single
|
|
- id: '1766769308925'
|
|
alias: 'Start Heating Large Toilet '
|
|
description: ''
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.0x54ef44100140aacb_temperature
|
|
below: 18.5
|
|
conditions:
|
|
- condition: device
|
|
type: is_off
|
|
device_id: 4c4b4a59fa12662a8dd1a0fdea4ea0b7
|
|
entity_id: 9942e003a704392f67d147e1b4ddb263
|
|
domain: switch
|
|
actions:
|
|
- type: turn_on
|
|
device_id: 4c4b4a59fa12662a8dd1a0fdea4ea0b7
|
|
entity_id: 9942e003a704392f67d147e1b4ddb263
|
|
domain: switch
|
|
mode: single
|
|
- id: '1766769445588'
|
|
alias: Stop Heating Large Toilet
|
|
description: ''
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.0x54ef44100140aacb_temperature
|
|
above: 19.5
|
|
conditions:
|
|
- condition: device
|
|
type: is_on
|
|
device_id: 4c4b4a59fa12662a8dd1a0fdea4ea0b7
|
|
entity_id: 9942e003a704392f67d147e1b4ddb263
|
|
domain: switch
|
|
actions:
|
|
- type: turn_off
|
|
device_id: 4c4b4a59fa12662a8dd1a0fdea4ea0b7
|
|
entity_id: 9942e003a704392f67d147e1b4ddb263
|
|
domain: switch
|
|
mode: single
|
|
- id: '1767475898636'
|
|
alias: Notify when tumble dryer done
|
|
description: ''
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.shellyplus1pm_78ee4cc83a94_energy
|
|
for:
|
|
hours: 0
|
|
minutes: 5
|
|
seconds: 0
|
|
below: 5
|
|
conditions: []
|
|
actions: []
|
|
mode: single
|
|
- id: '1767476086900'
|
|
alias: Notify when washing machine is done
|
|
description: ''
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.shellyplus1pm_78ee4cc71ae4_energy
|
|
for:
|
|
hours: 0
|
|
minutes: 5
|
|
seconds: 0
|
|
below: 5
|
|
conditions: []
|
|
actions: []
|
|
mode: single
|
|
- id: '1769720108793'
|
|
alias: 'Start Heating Bedroom '
|
|
description: ''
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.0x54ef44100140a63c_device_temperature
|
|
below: 17
|
|
conditions:
|
|
- condition: device
|
|
type: is_off
|
|
device_id: 076897fb77d93130a149555d2840fba9
|
|
entity_id: d7cc8f4b83bbbfa3000238face1fcc81
|
|
domain: switch
|
|
actions:
|
|
- type: turn_on
|
|
device_id: 076897fb77d93130a149555d2840fba9
|
|
entity_id: d7cc8f4b83bbbfa3000238face1fcc81
|
|
domain: switch
|
|
mode: single
|
|
- id: '1769720179956'
|
|
alias: 'Stop Heating Bedroom '
|
|
description: ''
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.0x54ef44100140a63c_device_temperature
|
|
above: 18
|
|
conditions:
|
|
- condition: device
|
|
type: is_on
|
|
device_id: 076897fb77d93130a149555d2840fba9
|
|
entity_id: d7cc8f4b83bbbfa3000238face1fcc81
|
|
domain: switch
|
|
actions:
|
|
- type: turn_off
|
|
device_id: 076897fb77d93130a149555d2840fba9
|
|
entity_id: d7cc8f4b83bbbfa3000238face1fcc81
|
|
domain: switch
|
|
mode: single
|
|
- id: "large_toilet_fan_control"
|
|
alias: "Fan Control - Large Toilet"
|
|
description: "Controls fan based on recent occupancy and humidity baseline"
|
|
mode: restart
|
|
trigger:
|
|
# Trigger if humidity changes
|
|
- platform: state
|
|
entity_id: sensor.0x54ef44100140aacb_humidity
|
|
# Trigger if occupancy helper changes
|
|
- platform: state
|
|
entity_id: binary_sensor.large_toilet_recently_occupied
|
|
# Trigger if the baseline itself is adjusted
|
|
- platform: state
|
|
entity_id: sensor.large_toilet_humidity_baseline
|
|
action:
|
|
- choose:
|
|
# TURN ON LOGIC
|
|
- alias: "Turn fan on"
|
|
conditions:
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.large_toilet_recently_occupied
|
|
state: "on"
|
|
- condition: template
|
|
value_template: "{{ states('sensor.0x54ef44100140aacb_humidity') | float > states('sensor.large_toilet_humidity_baseline') | float }}"
|
|
sequence:
|
|
- service: fan.turn_on
|
|
target:
|
|
entity_id: fan.large_toilet_ventilator
|
|
|
|
# TURN OFF LOGIC
|
|
- alias: "Turn fan off"
|
|
conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.large_toilet_recently_occupied
|
|
state: "off"
|
|
- condition: template
|
|
value_template: "{{ states('sensor.0x54ef44100140aacb_humidity') | float <= states('sensor.large_toilet_humidity_baseline') | float }}"
|
|
sequence:
|
|
- service: fan.turn_off
|
|
target:
|
|
entity_id: fan.large_toilet_ventilator
|