I’m wondering if someone can help me out. I’m running a Domoticz instance to gather data from NIBE heatpump API (https://www.domoticz.com/forum/viewtopic.php?t=13640) and would of course like to move some of this data into HA… I’ve setup Domoticz to send MQTT messages as value updates and they look like this:
domoticz/out
{
“Battery” : 255,
“RSSI” : 12,
“dtype” : “Temp”,
“id” : “82019”,
“idx” : 19,
“name” : “F1255 Return Temp.”,
“nvalue” : 0,
“stype” : “LaCrosse TX3”,
“svalue1” : “45.3”,
“unit” : 1
}
What I’m failing to do is to write some value-template to extract this. Since all messages are received in the same topic I’m thinking that I should like filter a sensor for this on the id 82019 and store the svalue 45.3.
I’ve gotten this far:
- platform: mqtt
name: “Kitchen temp”
state_topic: “domoticz/out”
unit_of_measurement: “C”
value_template: ‘{{ value_json.svalue1 }}’
But any solution for filtering on the id fails miserably… Anyone that could give me some pointers?
/Johan