Page 1 of 1

Climate discovery with temperature_command_template

Posted: Tuesday 05 December 2023 20:07
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).