Page 1 of 1

How do you connect remote MySensors (MQTT)?

Posted: Sunday 16 October 2016 9:55
by ikke
Hi,

I wanted to try Domoticz for controller. I have RasPi with MySensors 2.0 gateway. I have configured it to send sensor traffic using MQTT to the box running Mosquitto and Domoticz. I can follow the sensor data in domoticz/in channel using mosquitto_sub. However domoticz sees nothing, even that it connects to server. I've tried to press the listen to new devices for five minutes -button in config. Nothing gets picked up by domoticz.


$ mosquitto_sub -t domoticz/in/#
23.0
40

What am I doing wrong? I posted this also in MySensors forum:
https://forum.mysensors.org/topic/5095/ ... e-domoticz

BR,
ikke

Sent from my SHIELD Tablet K1 using Tapatalk

Re: How do you connect remote MySensors (MQTT)?

Posted: Sunday 16 October 2016 11:12
by ikke
I don't quite get MQTT instructions on Domoticz. There is lot of json on all descriptions, is that required also in MQTT? So does it not receive plain values in MQTT, does it need to be jsonised at some point?

This is what MySensors is sending:

Code: Select all

mysGateway: TSF:MSG:READ,8-8-0,s=1,c=1,t=0,pt=7,l=5,sg=0:23.3
mysGateway: Sending message on topic: domoticz/in/8/1/1/0/0
mysGateway: TSF:MSG:READ,8-8-0,s=2,c=1,t=1,pt=2,l=2,sg=0:43
mysGateway: Sending message on topic: domoticz/in/8/2/1/0/1