What should I do to have my central heater to turn on when my TRV’s are asking to heat up?
Is there a blueprint for this kind of job or should I create a configuration or automation for this?
Now I have into my configuration.yaml file a section where the TRV in the kitchen have to use the thermostat template and the heater is a switch. Same which I use for a temperature sensor and ther it works but if I add the climate.radiator and I put the requested temperature higher the heater does not turn on.
This is not an easy question to answer. You’ve not provided much information about your current setup.
In terms of Blueprints, have a look at what’s available to see if any meet your needs?
Also, not sure why you’re editing your configuration.yaml file directly, the majority of Integrations are configured using the GUI. Don’t over complicate things that don’t need to be as it’ll cause you a lot of pain later on down the road.
This is my setup for the climate control
climate:
- platform: awesome_thermostat
name: Woonkamer
heater: light.cv_sturing
target_sensor: sensor.thermostaat_woonkamer_temperature
eco_temp: 18
away_temp: 15
boost_temp: 22
comfort_temp: 19.5
sleep_temp: 16
- platform: awesome_thermostat
name: Radiator Keuken
heater: light.cv_sturing
target_sensor: climate.radiator_keuken
eco_temp: 18
away_temp: 15
boost_temp: 22
comfort_temp: 19.5
sleep_temp: 16
You can see I use in both thermostats the same output switch and the one for Woonkamer works but with the TRV config Radiator Keuken it doesn’t work.
Is it maybe because there is a difference between target sensor and target climate?
What make and model are the TRV’s? How are they Integrated into HA? I’m still confused as to why you’ve added them manually to your configuration.yaml file.
Why are you using light entities as heaters? Surly that isn’t correct.
What kind of entities does the TRV have.
Show us the device page. Settings → Devices and services → [Integration] → TRV
Some TRV’s have switch entities, these can be used if they exist
These are the TRV’s
https://nl.aliexpress.com/item/1005007522722309.html?spm=a2g0o.order_list.order_list_main.63.21ef79d2bEefev&gatewayAdapt=glo2nld
I have added them into Z2MQTT and I will show you below the device list.
Why I have added them into the config file is because I thought I had to add them as climate into a thermostat platform but they have their own climate entity too and some other entities which I’ll show below.
Below the list of Z2MQTT status of the TRV and how could I give simple list of all the entities of the TRV?
{
"battery_low": false,
"boost_timeset_countdown": 0,
"child_lock": "UNLOCK",
"comfort_temperature": 21,
"current_heating_setpoint": 22,
"eco_temperature": 17,
"error_status": 0,
"frost_protection": "OFF",
"heating_stop": "OFF",
"holiday_start_stop": "2021/01/01 01:01 | 2021/01/01 01:01",
"holiday_temperature": 16,
"linkquality": 160,
"local_temperature": 16.9,
"local_temperature_calibration": 0,
"online": "ON",
"open_window": "OFF",
"open_window_temperature": 12,
"preset": "manual",
"schedule_friday": "06:00/17 12:00/21 14:00/17 17:00/21 24:00/17",
"schedule_monday": "06:00/17 12:00/21 14:00/17 17:00/21 24:00/17",
"schedule_saturday": "06:00/17 12:00/21 14:00/17 17:00/21 24:00/17",
"schedule_sunday": "06:00/17 12:00/21 14:00/17 17:00/21 24:00/17",
"schedule_thursday": "06:00/17 12:00/21 14:00/17 17:00/21 24:00/17",
"schedule_tuesday": "06:00/17 12:00/21 14:00/17 17:00/21 24:00/17",
"schedule_wednesday": "06:00/17 12:00/21 14:00/17 17:00/21 24:00/17",
"system_mode": "heat",
"working_day": "mon_sun"
}
hvac_modes:
- "off"
- heat
min_temp: 5
max_temp: 30
target_temp_step: 0.5
preset_modes:
- none
- auto
- manual
- holiday
current_temperature: 16.9
temperature: 22
preset_mode: manual
battery_low: false
boost_timeset_countdown: 0
child_lock: UNLOCK
comfort_temperature: 21
current_heating_setpoint: 22
eco_temperature: 17
error_status: 0
frost_protection: "OFF"
heating_stop: "OFF"
holiday_start_stop: 2021/01/01 01:01 | 2021/01/01 01:01
holiday_temperature: 16
linkquality: 160
local_temperature: 16.9
local_temperature_calibration: 0
online: "ON"
open_window: "OFF"
open_window_temperature: 12
preset: manual
schedule_friday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_monday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_saturday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_sunday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_thursday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_tuesday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_wednesday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
system_mode: heat
update:
installed_version: -1
latest_version: -1
state: null
update_available: null
working_day: mon_sun
friendly_name: Radiator Keuken
supported_features: 401
That’s good enough.
It seems the best option is probably a template trigger on attribute hvac_mode.
{{ state_attr('climate.TRV1', 'hvac_mode') == 'heating' or state_attr('climate.TRV2', 'hvac_mode') == 'heating' }}
This should trigger when one or more is in heating mode.
Or you make this a template binary sensor and that way it should be on or off and you can trigger the automation on any state change of the sensor and just use the {{ trigger.to_state }} to turn on or off boiler.
The
?
is probably not a valid character so don’t use it. You could probably name it TRV group or something. That would make sense.
The reason why the entities have the light. in front is because these are Tuya zigbee switches and they are automatically recognized as light switches, even if I bought relay switches they are recognized as a light switch, is it possible to change this somewhere? Would be better because some of them are not lights like the ones I use for the heater, circulation pumps, garage door, etc. but maybe there’s another topic for this?
The only thing that I can think of is “switch as x” I believe it’s called.
It will make a switch and hide the light.
If I add this in my template editor for testing it says false
{{ state_attr(‘climate.radiator_keuken’, ‘hvac_mode’) == ‘heating’ or state_attr(‘climate.radiator_badkamer_boven’, ‘hvac_mode’) == ‘heating’ }}
Yes…
Sorry…
it should be hvac_action
not hvac_mode
Sorry, still giving me “false”
hvac_modes is given “off” or heat in the TRV status output
It works fine for me.
hvac_modes are just what is possible, you should use the hvac_action
Or does your climate entity not have hvac_action?
How can I check this? Is there somwhere a list of possible entities for this TRV?
hvac_modes:
- "off"
- heat
min_temp: 5
max_temp: 30
target_temp_step: 0.5
preset_modes:
- none
- auto
- manual
- holiday
current_temperature: 16.9
temperature: 22
preset_mode: manual
battery_low: false
boost_timeset_countdown: 0
child_lock: UNLOCK
comfort_temperature: 21
current_heating_setpoint: 22
eco_temperature: 17
error_status: 0
frost_protection: "OFF"
heating_stop: "OFF"
holiday_start_stop: 2021/01/01 01:01 | 2021/01/01 01:01
holiday_temperature: 16
linkquality: 160
local_temperature: 16.9
local_temperature_calibration: 0
online: "ON"
open_window: "OFF"
open_window_temperature: 12
preset: manual
schedule_friday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_monday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_saturday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_sunday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_thursday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_tuesday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_wednesday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
system_mode: heat
update:
installed_version: -1
latest_version: -1
state: null
update_available: null
working_day: mon_sun
friendly_name: Radiator Keuken
supported_features: 401
I suppose you can look at the entity in developer tools
hvac_modes: off, heat
min_temp: 5
max_temp: 30
target_temp_step: 0.5
preset_modes: none, auto, manual, holiday
current_temperature: 17.7
temperature: 20
preset_mode: manual
battery_low: false
boost_timeset_countdown: 0
child_lock: UNLOCK
comfort_temperature: 21
current_heating_setpoint: 20
eco_temperature: 17
error_status: 0
frost_protection: OFF
heating_stop: OFF
holiday_start_stop: 2021/01/01 01:01 | 2021/01/01 01:01
holiday_temperature: 16
linkquality: 160
local_temperature: 17.7
local_temperature_calibration: -0.1
online: ON
open_window: OFF
open_window_temperature: 12
preset: manual
schedule_friday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_monday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_saturday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_sunday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_thursday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_tuesday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
schedule_wednesday: 06:00/17 12:00/21 14:00/17 17:00/21 24:00/17
system_mode: heat
update:
installed_version: -1
latest_version: -1
state: null
update_available: null
working_day: mon_sun
friendly_name: Radiator Keuken
supported_features: 401
You need to figure out if any of these attributes change when it’s in heating/off or idle mode
The ‘local_temperature’ changes, that works like a temperature sensor I guess but this entity I cannot find back in devices to use as sensor for a thermostat card or is it maybe possible to get that into a template or kind of?
And then there is also such temperature number which is asked to compare with the local temperature
I didn’t mean a number that changes.
Some attribute that says if the heating is on or off