MQTT between Domoticz and Home Assistant
Posted: Sunday 28 October 2018 13:16
I'm looking to get Domoticz and Home Assistant playing nicely together.
I figure I could use MQTT for this as a common protocol, and I now have Domoticz working on with MQTT and using this to control my Sonoffs.
However, Domoticz and HAss use different formats for MQTT messages.
HAss uses formats like:
(with a different topic tree structure for each device)
Whereas Domoticz has a very flat structure using domotic/in and domoticz/out as the topics, with all the device info passed in the payload, like:
Has anyone done this already and how did you go about it? (Or is there another way to go about integrating the two?)
I'm wondering if I can use Node RED to translate between the two - has anyone done this and does anyone have and flows they could share?
Thanks
I figure I could use MQTT for this as a common protocol, and I now have Domoticz working on with MQTT and using this to control my Sonoffs.
However, Domoticz and HAss use different formats for MQTT messages.
HAss uses formats like:
Code: Select all
"topic": "home-assistant/light/1/command",
"payload": "on"
Whereas Domoticz has a very flat structure using domotic/in and domoticz/out as the topics, with all the device info passed in the payload, like:
Code: Select all
{
"idx" : 5,
"name" : "Internal Temperature",
"id" : "00080A",
"unit" : 1
"dtype" : "Temp",
"stype" : "TFA 30.3133",
"nvalue" : 0,
"svalue1" : "41.2",
"Battery" : 100,
"RSSI" : 12,
}
I'm wondering if I can use Node RED to translate between the two - has anyone done this and does anyone have and flows they could share?
Thanks