Hi,
I’m using the MQTT hub device for thermostat function(s), receiving info from the MQTT thermostat works fine but when trying to send (config) the target temperature the following message pops-up:
I reduced the output value to a fixed number for simplicity:
{
"measure_temperature": {
"capability": "measure_temperature",
"stateTopic": "thermostat1/status/number:201",
"setTopic": "",
"valueTemplate": "$.value",
"outputTemplate": "",
"displayName": "temperature"
},
"target_temperature": {
"capability": "target_temperature",
"stateTopic": "thermostat1/status/number:202",
"setTopic": "thermostat1/rpc",
"valueTemplate": "$.value",
"outputTemplate": "21.2",
"displayName": "temperature"
},
"measure_humidity": {
"capability": "measure_humidity",
"stateTopic": "thermostat1/status/number:200",
"setTopic": "",
"valueTemplate": "$.value",
"outputTemplate": "",
"displayName": "Humidity"
},
"onoff": {
"capability": "onoff",
"stateTopic": "thermostat1/status/boolean:202",
"setTopic": "",
"valueTemplate": "$.value",
"outputTemplate": "",
"displayName": ""
}
}
Am I doing something wrong here?
I would like to end in a JSON string send, how should I approach to get the value replaced by the template value?
{ "method":"number.set","params":{"value": 20.2, "id":202, "source":"homey"} }
