Re: [90] MQTT Support
Posted: Thursday 22 January 2015 21:06
Bug report submitted. The bug report can be found from here.maxtrash wrote:Yes, I think that might help. And you can link to the message from there.
Bug report submitted. The bug report can be found from here.maxtrash wrote:Yes, I think that might help. And you can link to the message from there.
MQTT-SN uses a gateway in-between MQTT-SN devices and the MQTT broker, and afaik it only describes the way it communicaties with that broker, not how the content is structured. Since there already gateways that can run on a Pi (https://github.com/ty4tw/MQTT-SN) i wouldn't put much effort in that.pepijn wrote:Hi Rob,
MQTT describes the MQTT-SN standard (SN stands for Sensor Network) which is aimed for non IP based networks like zwave.
gizmocuz wrote:Finally i think i have build a native mqtt client in domoticz
Who can PM me a broker to connect to ?
Is there a standard for home automation messages?
I know how to setup a broker and work with it, but the mechanism to push messages is the problem.pepijn wrote:Hi Rob,
Broker:
For testing you could use MQTT Dashboard (broker.mqttdashboard.com:1883 / http://www.mqttdashboard.com) or test.mosquitto.org to setup your local broker, mosquitto will be a good choice.
Protocol:
MQTT describes the MQTT-SN standard (SN stands for Sensor Network) which is aimed for non IP based networks like zwave.
The most flexible way (and maybee te most complicated one) is to create some kind of mechanism to map mqtt topics to domoticz devices.
Code: Select all
json {
sender_id: domoticz (for incoming it does not mather)
node_id: 1
child_id: 1
type: temp+hum+baro
value: 21.5;69;1018.3
}
json {
sender_id: your client
node_id: 2
child_id: 1
type: light
value: on/off
}
json {
sender_id: your client
node_id: 2
child_id: 1
type: dimmer
value: 73
}
json {
sender_id: your client
node_id: 3
child_id: 1
type: temp
value: 21.3
}
Uhh ... Some codinggizmocuz wrote:If someone wants to finish the MQTT class, please do so
Yes you are almost there, we just need to wait until someone finish the codetommysharp wrote:Greetings guys, I'm just delving into this and trying to get Domoticz to "talk" to the mosquitto MQTT server.
So far I think I'm almost there....