Page 1 of 1

MQTT between Domoticz and Home Assistant

Posted: Sunday 28 October 2018 13:16
by doh
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:

Code: Select all

"topic": "home-assistant/light/1/command",
"payload": "on"
(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:

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,
}
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

Re: MQTT between Domoticz and Home Assistant

Posted: Sunday 28 October 2018 13:45
by curious
For switches and lights I use a rest-command in Hass.
Now I installed a mqtt broker on my Synology Nas and add mqtt to my hardware in Domoticz.
Because I did not find a method to use the "Domoticz sensor values" in Hass (yet)

So i am going to follow this topic ;)

Re: MQTT between Domoticz and Home Assistant

Posted: Saturday 03 November 2018 22:15
by bmhvanbenthum
The answers to your questions are decribed here:

https://community.home-assistant.io/t/h ... cz/8375/24