Hi everyone, i am trying to smartize my HVAC and i would like to start as first the heat pump in the room with the lowest (or better, the most distant from the goal temperature) temperature first, how can i?
I have 5 temperature sensors in 5 rooms, how can i “cycle” that to start with the lowest one?
Thanks
You can use the standard min/max sensor to get a minimum temperature of the collected sensors.
You then act on that by comparing with a set value.
https://www.home-assistant.io/integrations/min_max/
PS: if all have the same set value I suppose
Oh okay, i did not notice it exposed the name of the sensor in the attributes.
But how can i associate it to an automation?
In C, for example, i would do something like: if attributes = sensor.temperature_room1 then turn on room1, else if...
etc, how can i in HomeAssistant?
does the set temperature be the same for all rooms OR has each room it’s own set temperature?
set temperature being the one used for the compare to the actual temperature.
to compare values you can use an automation with a numeric-state trigger and a value_template in which you compare the values of set and actual temperature.
https://www.home-assistant.io/docs/automation/trigger/#numeric-state-trigger
This would continue the automation with an action if the temperature difference is greater than 1 and triggered by the conservatory_temperature change.
platform: numeric_state
entity_id: sensor.climate_conservatory_temperature
above: 1
value_template: >-
{{ ( states( 'sensor.climate_conservatory_temperature' ) | float(0)) - (
states( 'sensor.utility_sensor_temperature' ) | float(0) ) }}
This was the solution i went for in the end, thanks for the hint still
- choose:
# Temp min = room 1
- conditions:
- "{{ state_attr('sensor.temperatura_minima_daikin', 'min_entity_id') == 'sensor.temperatura_pt' }}"
# Temperatura soggiorno < 19°C
- condition: numeric_state
entity_id: sensor.temperatura_pt
below: '19'
# PDC non già accesa
- condition: state
entity_id: climate.daikin_soggiorno
state: 'off'
sequence:
- service: script.turn_on
target:
entity_id: script.accensione_pdc_soggiorno
# Temp min = room 2
- conditions:
- "{{ state_attr('sensor.temperatura_minima_daikin', 'min_entity_id') == 'sensor.temperatura_camera_2' }}"
# Temperatura camera < 18.5°C
- condition: numeric_state
entity_id: sensor.temperatura_camera_2
below: '18.5'
# PDC non già accesa
- condition: state
entity_id: climate.daikin_camera_2
state: 'off'
sequence:
- service: script.turn_on
target:
entity_id: script.accensione_pdc_camera_2
# Temp min = room 3
- conditions:
- "{{ state_attr('sensor.temperatura_minima_daikin', 'min_entity_id') == 'sensor.temperatura_camera_3' }}"
# Temperatura camera < 18.5°C
- condition: numeric_state
entity_id: sensor.temperatura_camera_3
below: '18.5'
# PDC non già accesa
- condition: state
entity_id: climate.daikin_camera_3
state: 'off'
sequence:
- service: script.turn_on
target:
entity_id: script.accensione_pdc_camera_3
# Temp minima = camera 4
- conditions:
- "{{ state_attr('sensor.temperatura_minima_daikin', 'min_entity_id') == 'sensor.temperatura_camera_4' }}"
# Temperatura camera < 18.5°C
- condition: numeric_state
entity_id: sensor.temperatura_camera_4
below: '18.5'
# PDC non già accesa
- condition: state
entity_id: climate.daikin_camera_4
state: 'off'
sequence:
- service: script.turn_on
target:
entity_id: script.accensione_pdc_camera_4
# Temp minima = camera 5
- conditions:
- "{{ state_attr('sensor.temperatura_minima_daikin', 'min_entity_id') == 'sensor.temperatura_camera_5' }}"
# Temperatura camera < 18.5°C
- condition: numeric_state
entity_id: sensor.temperatura_camera_5
below: '18.5'
# PDC non già accesa
- condition: state
entity_id: climate.daikin_camera_5
state: 'off'
sequence:
- service: script.turn_on
target:
entity_id: script.accensione_pdc_camera_5
‘sensor.temperatura_minima_daikin’ is a min sensor that exposes the HVAC sensor with the lowest temperature between the 5
I still would like to do the same but with a max sensor between the only HVAC on, in that case i would be able to gradually shut down the HVAC that are on to reduce power consumption without sacrifying comfort, but i can’t find a way to do it