mbarth
September 29, 2020, 2:42pm
1
I have a simple automation (see below) that changes the HVAC mode to ‘heat’ when the thermostat’s temperature dips below 73° and the existing mode is set to ‘cool’. This morning, my house temperature hit 72° and the automation did not fire. If I manually execute the automation, it works fine.
Note: The YAML was created via the built in interface
- id: '1601243782394'
alias: 'Thermostat: Switch to Heat'
description: ''
trigger:
- type: value
platform: device
device_id: 1e5b5eac010611ebb43a31b3f43484fb
entity_id: sensor.honeywell_th6320zw2003_t6_pro_series_thermostat_temperature
domain: sensor
below: 73
condition:
- condition: device
device_id: 1e5b5eac010611ebb43a31b3f43484fb
domain: climate
entity_id: climate.honeywell_th6320zw2003_t6_pro_series_thermostat_mode
type: is_hvac_mode
hvac_mode: cool
action:
- device_id: 1e5b5eac010611ebb43a31b3f43484fb
domain: climate
entity_id: climate.honeywell_th6320zw2003_t6_pro_series_thermostat_mode
type: set_hvac_mode
hvac_mode: heat
mode: single
Any help would be greatly appreciated.
Thanks,
Mike
mbarth
September 29, 2020, 4:57pm
2
It appears the following condition is preventing it from running:
- condition: device
device_id: 1e5b5eac010611ebb43a31b3f43484fb
domain: climate
entity_id: climate.honeywell_th6320zw2003_t6_pro_series_thermostat_mode
type: is_hvac_mode
hvac_mode: cool
When I removed it, it started to work. Has anyone else had this happen? I can view the hvac_mode state just fine in the Developer Tools.
mbarth
September 29, 2020, 5:02pm
3
I decided to pool based on a time interval, and am now using the following logic:
- id: '1601243782394'
alias: 'Thermostat: Switch to Heat'
description: ''
trigger:
- platform: time_pattern
minutes: /5
condition:
- type: is_value
condition: device
device_id: 1e5b5eac010611ebb43a31b3f43484fb
entity_id: sensor.honeywell_th6320zw2003_t6_pro_series_thermostat_temperature
domain: sensor
below: 73
action:
- device_id: 1e5b5eac010611ebb43a31b3f43484fb
domain: climate
entity_id: climate.honeywell_th6320zw2003_t6_pro_series_thermostat_mode
type: set_hvac_mode
hvac_mode: heat
mode: single
I figured having this check every 5 minutes wouldn’t be overkill, and result in less calls to my thermostat. Speaking of, if the mode is already set to ‘heat’, would Home Assistant even send the mode change to my thermostat?