[90] MQTT Support
Moderators: leecollings, remb0
-
- Posts: 4
- Joined: Wednesday 07 May 2014 9:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [90] MQTT Support
Hello.
maxtrash I tried changing the PI from 127.0.0.1 to its actual IP 192.168.??.??
It worked!!! I don't know why, but it works.
Thanks!!
maxtrash I tried changing the PI from 127.0.0.1 to its actual IP 192.168.??.??
It worked!!! I don't know why, but it works.
Thanks!!
-
- Posts: 3
- Joined: Thursday 19 September 2013 10:23
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [90] MQTT Support
Hi Andreas,andreas.aahlin wrote: These errors are because there are no node.js script listening.
Start the server.js script and where will hopefully not be any errors any more.
That was my thinking too. Just can't get my head round it.
Tried lots of things but can't get the different bits to play together.
Individually they all test successfully.
When installing Node do I need to manually update system files like etc/rc.local?
Regards
--------------------------------------------------------------------------------------
Multiple RPI mod B running ...
Domoticz (RFXtrx433, various RC sockets, lights, switches, PIR, sensors)
Intranet (Internal web site to TV, Mosquitto, XBMC, NAS
--------------------------------------------------------------------------------------
Multiple RPI mod B running ...
Domoticz (RFXtrx433, various RC sockets, lights, switches, PIR, sensors)
Intranet (Internal web site to TV, Mosquitto, XBMC, NAS
- gizmocuz
- Posts: 2352
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: [90] MQTT Support
nobody can write native support for this in domoticz ? (c++)
Quality outlives Quantity!
- bjornhallberg
- Posts: 7
- Joined: Thursday 29 May 2014 7:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta?
- Location: Sweden
- Contact:
Re: [90] MQTT Support
+1 for native MQTT support ...
Been trying to get the node.js stuff to work, but where can I find script_device_mqtt.lua?
Been trying to get the node.js stuff to work, but where can I find script_device_mqtt.lua?
Last edited by bjornhallberg on Saturday 16 August 2014 13:39, edited 1 time in total.
-
- Posts: 3
- Joined: Sunday 01 June 2014 22:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [90] MQTT Support
Linkt to MQTT device driver for Domoticz amd lua script is empty. Where I can find this scripts?
Re: [90] MQTT Support
I kinda lost interest in MQTT for the time being since there's not enough devices in Domoticz to handle all the information coming from MQTT. E.g. a thermostat and/or multi-state device would be very helpful.
Anyway, I'll try and see if I can find some time this week to go over MQTT stuff this week.
Anyway, I'll try and see if I can find some time this week to go over MQTT stuff this week.
-
- Posts: 2
- Joined: Wednesday 27 August 2014 18:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [90] MQTT Support
I'm new to Domoticz but I'll write a native binding to mqtt if someone can point me in the right direction on how to add new devicetypes - C++ and MQTT is no problem but I have not looked into the Domoticz source yet..
We will also need some mapping on a generic schema suitable for homeautomation that will be used in MQTT. Any suggestions?
I realize currently Domoticz supports a small set of device types - is it a big issue to add more?
/svante
We will also need some mapping on a generic schema suitable for homeautomation that will be used in MQTT. Any suggestions?
I realize currently Domoticz supports a small set of device types - is it a big issue to add more?
/svante
Re: [90] MQTT Support
That's very nice! I agree we need to decide on a schema for the messages and we definately need more devices.saka wrote:I'm new to Domoticz but I'll write a native binding to mqtt if someone can point me in the right direction on how to add new devicetypes - C++ and MQTT is no problem but I have not looked into the Domoticz source yet..
We will also need some mapping on a generic schema suitable for homeautomation that will be used in MQTT. Any suggestions?
I realize currently Domoticz supports a small set of device types - is it a big issue to add more?
/svante
I wrote some stuff in this post: http://www.domoticz.com/forum/viewtopic ... t=40#p8155. What's your opinion on this?
-
- Posts: 2
- Joined: Wednesday 27 August 2014 18:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [90] MQTT Support
I totally agree - but even if we can't support more devices types than today it would allow me use domoticz as a "complex device" - personally I plan to use http://nodered.org/ for scripting anyway.(1) Devices, devices, devices. The more (generic) devices (Multi-state, text etc.) the better. MQTT could connect a vast amount of different devices and we would like to see them and interact with them in the GUI. Even without MQTT this is the main thing for many users I guess (e.g. by using the LUA-scripting, JSON or whatever)
And let's not to forget: it would be nice to have a list of all devicetypes/sub devices and what they need (svalue, nvalue, etc.).
I we provide a good schema (for home automation) and fill it with content even if it is partial then there is a motivation for adding support.
I want to integrate mobile updates - like something built on http://www.awareframework.com/ - but my thinking is that does not need to exist in the same schema. (since I will do the scripting externally anyway)
Sure, there are such libraries: http://mosquitto.org/ has an excellent pub/sub clients (BSD license). The real work would be the schema and the integration with domoticz existing devices.(3b) a native interface with MQTT-brokers would also be nice. Like 3a, but instead of http/json it would be tcpip with MQTT-flavour (I'm sure libraries exist)
What is the correct way of getting updates of existing devices and how do I define new devices (from MQTT objects)?
Re: [90] MQTT Support
I was also experimenting with nodered. Very nice. Please find some stuff I was working on 6 months ago. Frankly, I do have a hard time remembering what I was doing exactly though at the time.
maybe I'll find some time to pick it up again next weekend
maybe I'll find some time to pick it up again next weekend
- Attachments
-
- domoticz.zip
- node red stuff
- (5.24 KiB) Downloaded 210 times
-
- Posts: 5
- Joined: Monday 22 September 2014 13:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [90] MQTT Support
Being new to Domoticz I quite like the product, but I feel the MQTT integration is lacking to say the least. It is possible to use a MQTT LUA library, I did this on the VERA, but even that is not ideal. Ideally there should be MQTT support in the product itself, as stated before, there are great C++ libs available.
What I would like to see:
For switches etc, being able to select MQTT next to the already available choices like X10 etc. This should send out a JSON message over MQTT in a predefined queue that I should be able to set per device
MQTT upport on par with the API support. Being able to update the status of devices (for example on a Domoticz/inform/xxx queue), and set the status of devices via another queue (Domoticz/do/xxx), so I can both nform Domoticz that the status of a device has changed. xxx could be the device idx, messages always in a predefined JSON format.
As I just started to look at Domoticz, I'm not sure how easy it would be te implement this, I haven't had a look at the code yet. Did anybody already have a look at adding this kind of selection to devices? I have no idea if it is all in the code, or in some config setting.
Av.
What I would like to see:
For switches etc, being able to select MQTT next to the already available choices like X10 etc. This should send out a JSON message over MQTT in a predefined queue that I should be able to set per device
MQTT upport on par with the API support. Being able to update the status of devices (for example on a Domoticz/inform/xxx queue), and set the status of devices via another queue (Domoticz/do/xxx), so I can both nform Domoticz that the status of a device has changed. xxx could be the device idx, messages always in a predefined JSON format.
As I just started to look at Domoticz, I'm not sure how easy it would be te implement this, I haven't had a look at the code yet. Did anybody already have a look at adding this kind of selection to devices? I have no idea if it is all in the code, or in some config setting.
Av.
- gizmocuz
- Posts: 2352
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: [90] MQTT Support
please build a native support classAverell wrote:Being new to Domoticz I quite like the product, but I feel the MQTT integration is lacking to say the least. It is possible to use a MQTT LUA library, I did this on the VERA, but even that is not ideal. Ideally there should be MQTT support in the product itself, as stated before, there are great C++ libs available.
What I would like to see:
For switches etc, being able to select MQTT next to the already available choices like X10 etc. This should send out a JSON message over MQTT in a predefined queue that I should be able to set per device
MQTT upport on par with the API support. Being able to update the status of devices (for example on a Domoticz/inform/xxx queue), and set the status of devices via another queue (Domoticz/do/xxx), so I can both nform Domoticz that the status of a device has changed. xxx could be the device idx, messages always in a predefined JSON format.
As I just started to look at Domoticz, I'm not sure how easy it would be te implement this, I haven't had a look at the code yet. Did anybody already have a look at adding this kind of selection to devices? I have no idea if it is all in the code, or in some config setting.
Av.
Quality outlives Quantity!
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [90] MQTT Support
Hello,maxtrash wrote:I kinda lost interest in MQTT for the time being since there's not enough devices in Domoticz to handle all the information coming from MQTT. E.g. a thermostat and/or multi-state device would be very helpful.
Anyway, I'll try and see if I can find some time this week to go over MQTT stuff this week.
looking at your mqtt code, I guess I could transform my imperihome gateway to mqtt easily because I have interfaced there quite a similar thing with many domoticz devices. The REST structure looks the same somehow...
please tell me if someone is interrested...
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: [90] MQTT Support
I'am !!!
From Bordeaux, France
From Bordeaux, France
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 57
- Joined: Sunday 04 January 2015 21:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Finland
- Contact:
Re: [90] MQTT Support
+1 to native MQTT integration.
Thanks to Domoticz wiki and this great thread I managed to get Domoticz + MQTT working! It wasn't easy but I learnt a lot during the quest...
My system consists at the moment a couple of Arduino based sensor units (temp & hum + temp only) and a third Arduino which is working as a MQTT gateway.
Sensor data is delivered via 433MHz RF links to MQTT gateway Arduino which passes the information to MQTT server running on a Raspberry Pi via ethernet.
I plan to add door switches (Home Easy 305) to my setup as well once I get those...
I can share my code if someone is interested.
Thanks to Domoticz wiki and this great thread I managed to get Domoticz + MQTT working! It wasn't easy but I learnt a lot during the quest...
My system consists at the moment a couple of Arduino based sensor units (temp & hum + temp only) and a third Arduino which is working as a MQTT gateway.
Sensor data is delivered via 433MHz RF links to MQTT gateway Arduino which passes the information to MQTT server running on a Raspberry Pi via ethernet.
I plan to add door switches (Home Easy 305) to my setup as well once I get those...
I can share my code if someone is interested.
-
- Posts: 57
- Joined: Sunday 04 January 2015 21:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Finland
- Contact:
Re: [90] MQTT Support
Have you noticed when adding new temperature sensor via MQTT to the Domoticz using "JSON, did/dunit/dtype/dsubtype" -approach ID of the the sensor is quite self-explanatory like "/actions/domoticz/GarageTemp".
But when adding temperature + humidity sensor via same approach then name is always "unknown?" I haven't figured out yet how to get ID right like "/actions/domoticz/GarageTempHum". Any ideas what might be wrong?
One can use URL below to test if same issues is visible for others as well (replace YOURDOMOTICZIPADDRESS with the IP address of your Domoticz server):
http://YOURDOMOTICZIPADDRESS:8080/json. ... =25.4;52;0
I noticed strange behaviour with current temp + hum sensor which ID is "unknown?" with the Wunderground virtual sensors...
But when adding temperature + humidity sensor via same approach then name is always "unknown?" I haven't figured out yet how to get ID right like "/actions/domoticz/GarageTempHum". Any ideas what might be wrong?
One can use URL below to test if same issues is visible for others as well (replace YOURDOMOTICZIPADDRESS with the IP address of your Domoticz server):
http://YOURDOMOTICZIPADDRESS:8080/json. ... =25.4;52;0
I noticed strange behaviour with current temp + hum sensor which ID is "unknown?" with the Wunderground virtual sensors...
Re: [90] MQTT Support
I thought I had replied here but apparently not. Anyway: I've also noticed that Domoticz is not really consistent here. I think this is something Gizmocuz will have to fix
-
- Posts: 57
- Joined: Sunday 04 January 2015 21:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Finland
- Contact:
Re: [90] MQTT Support
I posted this issue about week ago to the Bugs/Problems category (Link to the post) but no answers yet.
I was wondering should I file a bug report about this one?
I was wondering should I file a bug report about this one?
Re: [90] MQTT Support
Yes, I think that might help. And you can link to the message from there.
-
- Posts: 26
- Joined: Thursday 31 October 2013 23:58
- Target OS: Linux
- Domoticz version: Trunk
- Contact:
Re: [90] MQTT Support
Morning all,
I got a little tired of rummaging through the forum for copies of the various .js files, so I've bundled it all together into a pull request for the original https://github.com/sschimmel/DomoticzMQTT/ repository. It would be great if people commented on it, and also if interested parties could agree or disagree with the license that sschimmel has picked
https://github.com/sschimmel/DomoticzMQTT/pull/2
Cheers
Me
I got a little tired of rummaging through the forum for copies of the various .js files, so I've bundled it all together into a pull request for the original https://github.com/sschimmel/DomoticzMQTT/ repository. It would be great if people commented on it, and also if interested parties could agree or disagree with the license that sschimmel has picked
https://github.com/sschimmel/DomoticzMQTT/pull/2
Cheers
Me
1 x HP DL380 & KVM
1 x RPI
1 x RFXtrx433 V78
11 x LWRF Switches
1 x LIFX
2 x Echo Dots
6 x Byron PIRs
2 x Nexa PIRs
2 x Kodi
2 x ESP8266 MQTT
1 x GPIO/MQTT PIR
1 x GPIO(PWM)/MQTT LEDs
1 x GPIO(SPI)/MQTT LPD6803 LEDs
Lots of Node-Red glue
1 x RPI
1 x RFXtrx433 V78
11 x LWRF Switches
1 x LIFX
2 x Echo Dots
6 x Byron PIRs
2 x Nexa PIRs
2 x Kodi
2 x ESP8266 MQTT
1 x GPIO/MQTT PIR
1 x GPIO(PWM)/MQTT LEDs
1 x GPIO(SPI)/MQTT LPD6803 LEDs
Lots of Node-Red glue
Who is online
Users browsing this forum: No registered users and 0 guests