Climate template support
Posted: Tuesday 22 August 2023 18:21
I am trying to add a climate device to MQTT Autodiscovery, but the following two (config) templates simply does not work.
At least i got these errors from Domoticz log:
Here are an example payload for the above:
Code: Select all
"temperature_state_template": "{{ value_json.thermostats[0].target_t.value}}"
"current_temperature_template": "{{ value_json.thermostats[0].tmp.value }}"
Code: Select all
Climate device unhandled temperature_state_template
Climate device unhandled current_temperature_template
Code: Select all
{
"thermostats": [
{
"pos": -1,
"target_t": {
"enabled": true,
"value": 24.0,
"units": "C"
},
"tmp": {
"value": 17.4,
"units": "C",
"is_valid": true
},
"schedule": false,
"schedule_profile": 2,
"boost_minutes": 0
}
]
}