MQTT HVAC Thermostat Zigbee2MQTT

Last week I received my Eurotronic Zigbee Radiator Thermostat and it is working with Zigbee2MQTT quite well.

Only I need some to get the device fully integrated in Home Assistant.
The problem is with setting the temperature I need to send the temperature not only to the /set topic but also with a payload “current_heating_setpoint”

So not only set the value to temperature_command_topic: “zigbee2mqtt/bathroom/switch/0003/thermostat/set” It should also contain a payload “current_heating_setpoint: (temperature)”

Any thoughts on this how to integrate it?

Till so far I got this:

  - platform: mqtt
    name: Radiator
    entity_namespace: badkamer
    current_temperature_topic: "zigbee2mqtt/bathroom/switch/0003/thermostat"
    # temperature_command_template: '{{ value_json.current_heating_setpoint }}' 
    temperature_command_topic: "zigbee2mqtt/bathroom/switch/0003/thermostat/set"
    temperature_state_topic: "zigbee2mqtt/bathroom/switch/0003/thermostat"
    temperature_state_template: '{{ value_json.current_heating_setpoint }}' 
    current_temperature_template: '{{ value_json.local_temperature }}'
    json_attributes_topic: "zigbee2mqtt/bathroom/switch/0003/thermostat"
    min_temp: 5
    max_temp: 30
    temp_step: 0.5

(writing here since this I found this first when searching for the answer for the same problem)
Answer can be found from here

2 Likes