Reading MQTT messages from an other raspberry PI

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

Moderator: leecollings

Post Reply
baltusf
Posts: 9
Joined: Monday 29 February 2016 16:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Reading MQTT messages from an other raspberry PI

Post by baltusf »

Hi,

On a raspeberry pi have i installed mosquitto. On that Pi i have PictureFrame running, which is displaying photos on a monitor. On an other raspberry pi i have home assistant and i have ther also installed the MQTT integration. I connect it to my PictureFrame with 192.168.178.x and 1883. In Homeassistant i can now control everything.
So i was looking for the same on my domoticz raspberry pi. I insatlled there also mosquitto, the server is running. I installed also the client (sudo apt-get install mosquitto-clients )
In domoticz in devices i add the "MQTT Client Gateway with Lan interface" . I add the remote address 192.168.178.x and 1883 nd by publish topic i select None, becuase i don't have to send anything. Until now, 60 minutes later, i don't see any control that i have in Home Assistant. What i'm doing wrong?

Kind regards,
Fred
mgugu
Posts: 220
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Reading MQTT messages from an other raspberry PI

Post by mgugu »

You cannot do that directly. Domoticz needs a specific syntax to enter MQTT messages in it.
You should read the wiki https://www.domoticz.com/wiki/MQTT.
One solution would be to use Nodered to make the conversion from Framepicure to Domoticz and write specific script to exploit messages
User avatar
waltervl
Posts: 5903
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Reading MQTT messages from an other raspberry PI

Post by waltervl »

And you only need 1 MQTT broker (mosquito) in your network. Tell Domoticz to listen to the mosquito install on your HA system.
If your MQTT devices send HA Autodiscover type of info you can enable Autodiscover also on Domoticz MQTT Lan gateway but currently only in beta (but seems to be fairly stable now).
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest