Climate discovery with temperature_command_template

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
TurboX
Posts: 40
Joined: Wednesday 07 September 2022 9:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Climate discovery with temperature_command_template

Post by TurboX »

Hello,

I try to create a climate device using MQTT Auto Discovery.
I have a issue using the "temperature_command_template". Indeed I need so publish on a topic using as example "temperature_command_template":"{{ 'S710='+ (value| string) }}".

When I set a new temperture with the climate device under domoticz it publish :

Code: Select all

 {
  "'S710='+ (value| string)": 19.5
}
instead of what is expected :

Code: Select all

S710=19.5
This temperature command template comes from Home Assistant, perhaps the problem is my python code which publish the wrong payload:

Code: Select all

{
  "temperature_command_topic": "BSB-LAN",
  "temperature_command_template": "'S710='+ (value| string)",
  "temperature_state_topic": "BSB-LAN/710",
  "json_attributes_topic": "BSB-LAN",
  "min_temp": 17,
  "max_temp": 25,
  "device": {
    "identifiers": [
      "Consigne_confort"
    ],
    "manufacturer": "Atlantic",
    "model": "Alfea AI",
    "name": "Consigne_confort",
    "sw_version": "1.00"
  },
  "name": "Consigne_confort_climate",
  "unique_id": "Consigne_confort_climate_0"
}
Or this template is not implemented into domoticz?

I spent hours on this issue, anu help will be appreciated.
I use Domoticz 2023.2 15697 (docker).
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest