Page 1 of 1

Reading MQTT messages from an other raspberry PI

Posted: Tuesday 23 November 2021 15:42
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

Re: Reading MQTT messages from an other raspberry PI

Posted: Tuesday 23 November 2021 17:43
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

Re: Reading MQTT messages from an other raspberry PI

Posted: Tuesday 23 November 2021 19:40
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).