Hi. I’m running into some logic problems with an automation I have. It might be logic in my head that’s not working, but maybe it’s actually how I configured it in HA.
How it should work:
If one of the study TRVs detect that the current temperature is lower than the target temperature, then it should set the temperature of the living room to 19. But this should only happen if the living room is not currently asking for heat (Ie if the current temperature is equal to or higher than the target temperature).
Problem is that it seems if the target and current temperature of the living room are close it’s not enough to trigger the setting. Any thoughts?
alias: Study Ask Heat
description: ""
trigger:
- platform: numeric_state
entity_id: climate.lumi_lumi_airrtc_agl001_thermostat
value_template: "{{ state.attributes.current_temperature - state.attributes.temperature }}"
below: 0
- platform: numeric_state
entity_id: climate.lumi_lumi_airrtc_agl001_thermostat_2
value_template: "{{ state.attributes.current_temperature - state.attributes.temperature }}"
below: 0
condition:
- condition: numeric_state
entity_id: climate.incomfort_1
value_template: "{{ state.attributes.temperature - state.attributes.current_temperature }}"
above: 0
enabled: true
- condition: not
conditions:
- condition: numeric_state
entity_id: climate.incomfort_1
value_template: >-
{{ state.attributes.current_temperature - state.attributes.temperature
}}
below: 0
enabled: true
action:
- device_id: 90ed87e3fcc7dbd52e4ad12748189c45
domain: mobile_app
type: notify
message: Living Room 19
- service: climate.set_temperature
data:
temperature: 19
target:
entity_id: climate.incomfort_1
mode: single