Add holiday and kids' automation scripts, including notifications and schedules
- Introduced holiday automations for Christmas and Halloween, including turning decorations on/off and playing music. - Added day camp announcements and reminders for kids, including preparation and departure notifications. - Created specific automation scripts for Declan and Jordyn, focusing on medication reminders and school preparations. - Implemented daily schedules for kids during summer, with structured activities and announcements. - Added blueprints for litter notifications and tank moisture interlocks to enhance home automation. - Established a family schedule package to manage school dates and events effectively.
This commit is contained in:
@@ -2,83 +2,74 @@
|
||||
|
||||
- id: ac_controls_matter_plugs
|
||||
alias: AC controls Matter plugs
|
||||
description: Turn the four Tapo Matter plugs on while the Ecobee is actively cooling, and off when cooling stops.
|
||||
description: Reconcile each plug with current cooling activity after HVAC changes, startup, reload and plug recovery. Keep existing plug states if climate status is unknown.
|
||||
mode: restart
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id: climate.meat_heater
|
||||
attribute: hvac_action
|
||||
to: cooling
|
||||
id: ac_on
|
||||
to: null
|
||||
- trigger: state
|
||||
entity_id: climate.meat_heater
|
||||
attribute: hvac_action
|
||||
from: cooling
|
||||
id: ac_off
|
||||
to: null
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- switch.smart_wi_fi_plug
|
||||
- switch.smart_wi_fi_plug_2
|
||||
- switch.smart_wi_fi_plug_3
|
||||
- switch.smart_wi_fi_plug_4
|
||||
to: null
|
||||
- trigger: homeassistant
|
||||
event: start
|
||||
- trigger: event
|
||||
event_type: automation_reloaded
|
||||
conditions: []
|
||||
actions:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: ac_on
|
||||
- condition: template
|
||||
value_template: >-
|
||||
{{ has_value('climate.meat_heater')
|
||||
and (is_state('climate.meat_heater', 'off')
|
||||
or state_attr('climate.meat_heater', 'hvac_action')
|
||||
not in [none, 'unknown', 'unavailable', '']) }}
|
||||
- variables:
|
||||
desired_state: "{{ 'on' if is_state_attr('climate.meat_heater', 'hvac_action', 'cooling') and not is_state('climate.meat_heater', 'off') else 'off' }}"
|
||||
- repeat:
|
||||
for_each:
|
||||
- switch.smart_wi_fi_plug
|
||||
- switch.smart_wi_fi_plug_2
|
||||
- switch.smart_wi_fi_plug_3
|
||||
- switch.smart_wi_fi_plug_4
|
||||
sequence:
|
||||
- action: switch.turn_on
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id:
|
||||
- switch.smart_wi_fi_plug
|
||||
- switch.smart_wi_fi_plug_2
|
||||
- switch.smart_wi_fi_plug_3
|
||||
- switch.smart_wi_fi_plug_4
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: ac_off
|
||||
sequence:
|
||||
- action: switch.turn_off
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id:
|
||||
- switch.smart_wi_fi_plug
|
||||
- switch.smart_wi_fi_plug_2
|
||||
- switch.smart_wi_fi_plug_3
|
||||
- switch.smart_wi_fi_plug_4
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: "{{ has_value(repeat.item) and not is_state(repeat.item, desired_state) }}"
|
||||
then:
|
||||
- action: "{{ 'switch.turn_on' if desired_state == 'on' else 'switch.turn_off' }}"
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: "{{ repeat.item }}"
|
||||
|
||||
- id: dehumidifier_tank_full_shutoff
|
||||
alias: Dehumidifier Tank Full - Shut Off Parents Window Fan
|
||||
description: When the dehumidifier tank level sensor detects water, turn off the Parents Window Fan outlet and send an alerts-channel notification.
|
||||
mode: single
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id: binary_sensor.water_leak_sensor_moisture
|
||||
to: 'on'
|
||||
conditions: []
|
||||
actions:
|
||||
- action: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.parents_window_fan
|
||||
- action: notify.notify_events_alerts
|
||||
data:
|
||||
|
||||
description: Keep the outlet off while wet and report whether shutdown was confirmed.
|
||||
use_blueprint:
|
||||
path: local/tank_full_interlock.yaml
|
||||
input:
|
||||
moisture_sensor: binary_sensor.water_leak_sensor_moisture
|
||||
outlet: switch.parents_window_fan
|
||||
title: Dehumidifier tank is full
|
||||
message: Dehumidifier tank is full — Dehumidifer outlet has been turned off.
|
||||
equipment_name: Dehumidifier
|
||||
|
||||
- id: ac_tank_full_shutoff
|
||||
alias: AC Tank Full - Shut Off Office AC Power
|
||||
description: When the AC Tank Sensor detects water, turn off the Office AC Power outlet and send an alerts-channel notification.
|
||||
mode: single
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id: binary_sensor.ac_tank_sensor_moisture
|
||||
to: 'on'
|
||||
conditions: []
|
||||
actions:
|
||||
- action: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.studio_plug_2
|
||||
- action: notify.notify_events_alerts
|
||||
data:
|
||||
description: Keep the outlet off while wet and report whether shutdown was confirmed.
|
||||
use_blueprint:
|
||||
path: local/tank_full_interlock.yaml
|
||||
input:
|
||||
moisture_sensor: binary_sensor.ac_tank_sensor_moisture
|
||||
outlet: switch.studio_plug_2
|
||||
title: AC tank is full
|
||||
message: AC Tank Sensor detected water — Office AC Power outlet has been turned off.
|
||||
equipment_name: Office AC
|
||||
|
||||
- id: dehumidifier_tank_sensor_low_battery
|
||||
alias: Dehumidifier Tank Sensor Low Battery
|
||||
@@ -90,7 +81,7 @@
|
||||
below: 10.1
|
||||
conditions: []
|
||||
actions:
|
||||
- action: notify.notify_events_alerts
|
||||
- action: script.notify_events_alerts
|
||||
data:
|
||||
title: Dehumidifier tank sensor battery low
|
||||
message: Dehumidifier tank level sensor battery is at {{ states('sensor.water_leak_sensor_battery') }}%. Replace soon.
|
||||
@@ -105,7 +96,7 @@
|
||||
below: 10.1
|
||||
conditions: []
|
||||
actions:
|
||||
- action: notify.notify_events_alerts
|
||||
- action: script.notify_events_alerts
|
||||
data:
|
||||
title: AC tank sensor battery low
|
||||
message: AC Tank Sensor battery is at {{ states('sensor.ac_tank_sensor_battery') }}%. Replace soon.
|
||||
|
||||
Reference in New Issue
Block a user