MQTT between Domoticz and Home Assistant

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
doh
Posts: 82
Joined: Monday 01 December 2014 13:28
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: London, UK
Contact:

MQTT between Domoticz and Home Assistant

Post 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
curious
Posts: 132
Joined: Saturday 02 April 2016 19:38
Target OS: -
Domoticz version:
Contact:

Re: MQTT between Domoticz and Home Assistant

Post 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 ;)
bmhvanbenthum
Posts: 7
Joined: Saturday 04 November 2017 16:15
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: MQTT between Domoticz and Home Assistant

Post by bmhvanbenthum »

The answers to your questions are decribed here:

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

Who is online

Users browsing this forum: No registered users and 1 guest