How do you connect remote MySensors (MQTT)?

Moderator: leecollings

Post Reply
ikke
Posts: 3
Joined: Sunday 16 October 2016 9:42
Target OS: Linux
Domoticz version:
Contact:

How do you connect remote MySensors (MQTT)?

Post 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
ikke
Posts: 3
Joined: Sunday 16 October 2016 9:42
Target OS: Linux
Domoticz version:
Contact:

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

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest