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