MQTT + Domoticz
Posted: Friday 08 July 2016 11:08
Hi guys,
I am brand new to this stuff, so bear with me. I recently pruchased an Arduino Uno, along with a DHT22 temp+hum sensor and some RF24 radios.
They send the data to a Raspberry Pi (based on a Raspian Image file) with Domoticz. I have been following the instructions from http://homeautomationforgeeks.com/project/
I have manged to both send and receive the data, and the Raspberry Pi "Hareceiver" tells me :
Temperature received from node 1: 22.500000
Client mosqpub/617-raspberrypi sending CONNECT
Client mosqpub/617-raspberrypi received CONNACK
Client mosqpub/617-raspberrypi sending PUBLISH (d0, q0, r0, m1, 'home/temperature', ... (9 bytes))
Client mosqpub/617-raspberrypi sending DISCONNECT
On the Domoticz server I tried setting up a "MQTT Client Gateway with LAN interface" device, with IP set to the same as my Raspberry Pi, and port set to 1883 (not certain that this is the correct port). The Domoticz log windows says:
2016-07-08 09:54:37.381 MQTT: Connecting to 192.168.1.248:1883
2016-07-08 09:54:37.485 MQTT: connected to: 192.168.1.248:1883
2016-07-08 09:54:37.586 MQTT: Subscribed
As far as I can tell it seems that Domoticz is subscribing to the MQTT stream. However, how do I proceed from here? How do I add the temp-hum device on the server? What is missing? Do I need to add the node ID, if so.. how?
I am brand new to this stuff, so bear with me. I recently pruchased an Arduino Uno, along with a DHT22 temp+hum sensor and some RF24 radios.
They send the data to a Raspberry Pi (based on a Raspian Image file) with Domoticz. I have been following the instructions from http://homeautomationforgeeks.com/project/
I have manged to both send and receive the data, and the Raspberry Pi "Hareceiver" tells me :
Temperature received from node 1: 22.500000
Client mosqpub/617-raspberrypi sending CONNECT
Client mosqpub/617-raspberrypi received CONNACK
Client mosqpub/617-raspberrypi sending PUBLISH (d0, q0, r0, m1, 'home/temperature', ... (9 bytes))
Client mosqpub/617-raspberrypi sending DISCONNECT
On the Domoticz server I tried setting up a "MQTT Client Gateway with LAN interface" device, with IP set to the same as my Raspberry Pi, and port set to 1883 (not certain that this is the correct port). The Domoticz log windows says:
2016-07-08 09:54:37.381 MQTT: Connecting to 192.168.1.248:1883
2016-07-08 09:54:37.485 MQTT: connected to: 192.168.1.248:1883
2016-07-08 09:54:37.586 MQTT: Subscribed
As far as I can tell it seems that Domoticz is subscribing to the MQTT stream. However, how do I proceed from here? How do I add the temp-hum device on the server? What is missing? Do I need to add the node ID, if so.. how?