2026-07-10 01:09:48 +00:00
|
|
|
# ac_peak_setback — let the house drift during the utility peak window
|
|
|
|
|
#
|
|
|
|
|
# id / entity : ac_peak_setback -> automation.ac_peak_setback_to_82
|
|
|
|
|
# trigger : 14:00 local (America/New_York)
|
|
|
|
|
# purpose : On work days, set cool 82F to coast through the 14:00-19:00 peak.
|
|
|
|
|
#
|
|
|
|
|
# Graceful degradation (v2):
|
|
|
|
|
# * workday sensor unavailable/unknown -> fall back to a plain Mon-Fri check
|
|
|
|
|
# (a broken holiday sensor must not silently cancel the setback).
|
|
|
|
|
# The original used a blocking `condition` on the workday sensor, which would
|
|
|
|
|
# skip the run whenever the sensor was unavailable; that is the bug this fixes.
|
|
|
|
|
#
|
|
|
|
|
# v2 (2026-07-09): workday fallback added. See AUTOMATIONS.md.
|
2026-07-10 01:01:08 +00:00
|
|
|
id: ac_peak_setback
|
|
|
|
|
alias: AC - Peak setback to 82
|
2026-07-10 01:09:48 +00:00
|
|
|
description: >-
|
|
|
|
|
v2 (2026-07-09). At 2pm on work days, sets the thermostat to cool/82F to coast
|
|
|
|
|
through the 2-7pm peak. Falls back to Mon-Fri if the workday sensor fails.
|
|
|
|
|
Managed in git; see AUTOMATIONS.md.
|
|
|
|
|
mode: single
|
2026-07-10 01:01:08 +00:00
|
|
|
triggers:
|
2026-07-10 01:09:48 +00:00
|
|
|
- trigger: time
|
|
|
|
|
at: "14:00:00"
|
|
|
|
|
conditions: []
|
2026-07-10 01:01:08 +00:00
|
|
|
actions:
|
2026-07-10 01:09:48 +00:00
|
|
|
- variables:
|
|
|
|
|
is_workday: "{% set wd = states('binary_sensor.workday_sensor') %}{% if wd in ['on','off'] %}{{ wd == 'on' }}{% else %}{{ now().weekday() < 5 }}{% endif %}"
|
|
|
|
|
- if:
|
|
|
|
|
- condition: template
|
|
|
|
|
value_template: "{{ is_workday }}"
|
|
|
|
|
then:
|
|
|
|
|
- action: climate.set_hvac_mode
|
|
|
|
|
target:
|
|
|
|
|
entity_id: climate.t6_pro_z_wave_programmable_thermostat_with_smartstart
|
|
|
|
|
data:
|
|
|
|
|
hvac_mode: cool
|
|
|
|
|
- action: climate.set_temperature
|
|
|
|
|
target:
|
|
|
|
|
entity_id: climate.t6_pro_z_wave_programmable_thermostat_with_smartstart
|
|
|
|
|
data:
|
|
|
|
|
temperature: 82
|