So, I have the following automation and it is more or less doing what I want it to… But, I feel that the triggers could be stream lined. Particularly if I could combine above and belows into one trigger. I have tried and failed. I will post the entire automation first.
- id: kitchen ac master control
alias: kitchen ac master control
trigger:
# Value for cooling on people home
- platform: numeric_state
entity_id: sensor.acurite_porch_f
above: '79'
# Value for cooling no people home
- platform: numeric_state
entity_id: sensor.acurite_porch_f
above: '86'
# Value to switch to turn off
- platform: numeric_state
entity_id: sensor.acurite_porch_f
below: '70'
# Value to switch from cooling to fan only
- platform: numeric_state
entity_id: sensor.acurite_porch_f
below: '74'
# Value to switch from off to fan only
- platform: numeric_state
entity_id: sensor.acurite_porch_f
above: '73'
- platform: state
entity_id:
- group.family
to: "not_home"
for:
hours: 0
minutes: 60
seconds: 00
- platform: state
entity_id:
- group.family
to: "home"
for:
hours: 0
minutes: 10
seconds: 00
mode: single
action:
- choose:
# Someone home and warm out - turn on and set normal temp.
- conditions:
- condition: numeric_state
entity_id: sensor.acurite_porch_f
above: '79'
- condition: state
entity_id: group.family
state: "home"
sequence:
- service: climate.set_temperature
target:
entity_id: climate.12094627960958_climate
data:
hvac_mode: cool
temperature: '76'
# Someone home but not cool enough to turn off and warm enough to move air.
- conditions:
- condition: numeric_state
entity_id: sensor.acurite_porch_f
below: '74'
- condition: numeric_state
entity_id: sensor.acurite_porch_f
above: '70'
- condition: state
entity_id: group.family
state: "home"
sequence:
- service: climate.set_temperature
target:
entity_id: climate.12094627960958_climate
data:
hvac_mode: fan_only
temperature: '76'
# Cool out - turn off.
- conditions:
- condition: numeric_state
entity_id: sensor.acurite_porch_f
below: '70'
sequence:
- service: climate.turn_off
entity_id: climate.12094627960958_climate
# Cool out - turn fan on.
- conditions:
- condition: numeric_state
entity_id: sensor.acurite_porch_f
above: '73'
- condition: state
entity_id: group.family
state: "home"
- condition: state
entity_id: climate.12094627960958_climate
state: "off"
sequence:
- service: climate.set_temperature
target:
entity_id: climate.12094627960958_climate
data:
hvac_mode: fan_only
temperature: '76'
# Nobody home and hot out - turn on and bump temp up.
- conditions:
- condition: numeric_state
entity_id: sensor.acurite_porch_f
above: '86'
- condition: state
entity_id: group.family
state: "not_home"
sequence:
- service: climate.set_temperature
target:
entity_id: climate.12094627960958_climate
data:
hvac_mode: cool
temperature: '80'
# Not hot and nobody home - turn off.
- conditions:
- condition: state
entity_id: group.family
state: "not_home"
sequence:
- service: climate.turn_off
entity_id: climate.12094627960958_climate
Now, onto my question. If I could combine the following triggers:
# Value for cooling on people home
- platform: numeric_state
entity_id: sensor.acurite_porch_f
above: '79'
# Value to switch from cooling to fan only
- platform: numeric_state
entity_id: sensor.acurite_porch_f
below: '74'
This pairing would remove lines and make sense, but I cannot seem to get above: and below: working in one trigger group. Of course, these would need to be “or’ed”. When I try something like this:
# Value for cooling on people home
- platform: numeric_state
entity_id: sensor.acurite_porch_f
above: '79'
below: '74'
I get a very useless error when I attempt to reload automations. Now, I realize that the error is in part my fault becuase I use and load individual automation and other files.
Any help would be great.
Thanks Matt