MQTT Gateway Plugin

Posted on
Sun Nov 05, 2017 9:03 am
BonfireVA offline
Posts: 62
Joined: Sep 17, 2017

Re: MQTT Gateway Plugin

Sorry, I was tied up with sports stuff for the kids. Downloading now!

- Eric

Posted on
Sun Nov 05, 2017 9:09 am
BonfireVA offline
Posts: 62
Joined: Sep 17, 2017

Re: MQTT Gateway Plugin

FlyingDiver wrote:
BonfireVA wrote:
That would be great!
Basically a device type that can support a float or even a string value from the MQTT topic would be extremely useful and a way to tell Indigo what it is (ie temp, humidity, ambient light etc). If you are able to make some progress on adding support I could certainly help test.

-Eric


Try https://github.com/FlyingDiver/Indigo-M ... /0.1.1.zip


Works perfect, thanks!!!

-Eric

Posted on
Sun Nov 05, 2017 9:30 am
BonfireVA offline
Posts: 62
Joined: Sep 17, 2017

Re: MQTT Gateway Plugin

BonfireVA wrote:
FlyingDiver wrote:
BonfireVA wrote:
That would be great!
Basically a device type that can support a float or even a string value from the MQTT topic would be extremely useful and a way to tell Indigo what it is (ie temp, humidity, ambient light etc). If you are able to make some progress on adding support I could certainly help test.

-Eric


Try https://github.com/FlyingDiver/Indigo-M ... /0.1.1.zip


Works perfect, thanks!!!

-Eric


Ok, so now that FlyingDiver updated his Masquerade plugin I can create a device and set its value to the contents of the MQTT message, perfect! Now, is there a way to tell Indigo to treat this device like a specific type of sensor (ie temp, humidity, LUX etc)?

-Eric

-Eric

Posted on
Sun Nov 05, 2017 9:34 am
FlyingDiver offline
User avatar
Posts: 7211
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MQTT Gateway Plugin

BonfireVA wrote:
Ok, so now that FlyingDiver updated his Masquerade plugin I can create a device and set its value to the contents of the MQTT message, perfect! Now, is there a way to tell Indigo to treat this device like a specific type of sensor (ie temp, humidity, LUX etc)?


I can probably make it a choice when you create the Masquerade device, if I can figure out what the specific attributes of the device you want. I'll look into it now that I know the basic functionality works.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Nov 05, 2017 10:22 am
BonfireVA offline
Posts: 62
Joined: Sep 17, 2017

Re: MQTT Gateway Plugin

For my purposes right now I am just trying to define temp, humidity, ambient light and motion device types. I also think door/window sensors types would also be useful assuming Indigo has them. I have never installed a zwave door sensor so I'm not sure how they show up in Indigo. Just as an FYI, here is the link to the video I am using as a guide for my sensor nodes https://www.youtube.com/watch?v=jpjfVc-9IrQ&t=822s

-Eric

Posted on
Sun Nov 05, 2017 11:06 am
FlyingDiver offline
User avatar
Posts: 7211
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MQTT Gateway Plugin

BonfireVA wrote:
For my purposes right now I am just trying to define temp, humidity, ambient light and motion device types. I also think door/window sensors types would also be useful assuming Indigo has them. I have never installed a zwave door sensor so I'm not sure how they show up in Indigo. Just as an FYI, here is the link to the video I am using as a guide for my sensor nodes https://www.youtube.com/watch?v=jpjfVc-9IrQ&t=822s

-Eric


The problem is that Indigo doesn't have "native" types for most of those. Indigo's native types include relay, dimmer, thermostat, sensor, speedcontrol (fan). Temp, humidity, ambient light are all going to be generic sensors that return a value (usually float). Motion and door/window sensors are just on/off sensors.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Nov 05, 2017 11:40 am
BonfireVA offline
Posts: 62
Joined: Sep 17, 2017

Re: MQTT Gateway Plugin

FlyingDiver wrote:
BonfireVA wrote:
For my purposes right now I am just trying to define temp, humidity, ambient light and motion device types. I also think door/window sensors types would also be useful assuming Indigo has them. I have never installed a zwave door sensor so I'm not sure how they show up in Indigo. Just as an FYI, here is the link to the video I am using as a guide for my sensor nodes https://www.youtube.com/watch?v=jpjfVc-9IrQ&t=822s

-Eric


The problem is that Indigo doesn't have "native" types for most of those. Indigo's native types include relay, dimmer, thermostat, sensor, speedcontrol (fan). Temp, humidity, ambient light are all going to be generic sensors that return a value (usually float). Motion and door/window sensors are just on/off sensors.


Does the "sensor" device type have option for further definition, like sub categories? For example, the motion, temp, humidity, and LUX components on my Aeotech multi sensors show up in indigo as the correct types, with their data formatted properly and an appropriate icon assigned (i.e. humidity sensor is reported as a % and humidity icon is displayed in the GUI). But the "tamper sensor" component of the multi sensor just shows up as an on/off sensor with no special icon. It looks like there is some sort of support in Indigo for temp, humidity, and motion sensors specifically, but maybe that isn't part of the generic sensor device type, but maybe its part of the unique support for these commercially available multi sensor devices??

-Eric

Posted on
Sun Nov 05, 2017 11:47 am
FlyingDiver offline
User avatar
Posts: 7211
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MQTT Gateway Plugin

Actually, I can set the sensor icon and format the value.

I'll work on that when I'm done with my project for the day, which is reconfiguring my AV rack before the installers show up tomorrow to install the glass door....

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Nov 16, 2017 1:42 am
MortenB offline
Posts: 44
Joined: Jan 24, 2015
Location: Fredrikstad - Norway

Re: MQTT Gateway Plugin

Ok...

Trying to get the hang of this MQTT stuff :twisted:
I have a MQTT broker set up running on a ubuntu server and it is working fine.
When I try to configure an item in Indigo I get the following error:
Code: Select all
16. nov. 2017, 08:36:07
   mqttGateway Debug               validating configUi
   mqttGateway Error               Error in plugin execution UiValidate:

Traceback (most recent call last):
  File "plugin.py", line 368, in validateDeviceConfigUi
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
OSError: [Errno 2] No such file or directory

I'm running Indigo 7 by the way.

Mac Mini with Indigo 6 - Testing Indigo 7
18 Qubino dimmers
6 Fibaro dimmers (v2)
13 Fibaro Smoke Sensors
13 HeatIt floor thermostats
Also running Node Red and OpenHab2

Posted on
Fri Nov 17, 2017 12:39 pm
BonfireVA offline
Posts: 62
Joined: Sep 17, 2017

Re: MQTT Gateway Plugin

FlyingDiver wrote:
Actually, I can set the sensor icon and format the value.

I'll work on that when I'm done with my project for the day, which is reconfiguring my AV rack before the installers show up tomorrow to install the glass door....


How did the AV rack turn out?

I have a sensor node finally all working and sending MQTT messages to indigo for temp, humidity, motion, and ambient light (4 unique MQTT topics). I had to do some "copy and paste" reverse engineering to figure out home to modify the code I started with as it aggregated all the values and sent one JSON formatted MQTT message (original programer was using Home Assistant with a JSON parsing plugin, that I have no idea how to replicate in Indigo....). I was able to create masquerade devices for all four and can see the values update appropriately in Indigo.

Let me know when you have a chance to add the formatting options for the devices and I will test it out.

Thanks!

-Eric

Posted on
Sun Nov 19, 2017 10:26 am
FlyingDiver offline
User avatar
Posts: 7211
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MQTT Gateway Plugin

BonfireVA wrote:
Let me know when you have a chance to add the formatting options for the devices and I will test it out.

Thanks!

-Eric


Try https://github.com/FlyingDiver/Indigo-M ... /tag/0.1.2

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Nov 19, 2017 2:58 pm
BonfireVA offline
Posts: 62
Joined: Sep 17, 2017

Re: MQTT Gateway Plugin

FlyingDiver wrote:
BonfireVA wrote:
Let me know when you have a chance to add the formatting options for the devices and I will test it out.

Thanks!

-Eric


Try https://github.com/FlyingDiver/Indigo-M ... /tag/0.1.2[/quot

The temp and humidity look perfect! There isn't a special icon for the ambient light sensor, but the measurement unit should be "LUX" instead of %. Could you also add a "motion sensor" option with correct icon?

I attached screen grabs of how these components show up with my Aeotec multi sensor and the masquerade sensors for reference.

-Eric
Attachments
aeontec.tiff
aeontec.tiff (28.24 KiB) Viewed 7101 times
masqurade.tiff
masqurade.tiff (29.49 KiB) Viewed 7101 times

Posted on
Sun Nov 19, 2017 3:00 pm
FlyingDiver offline
User avatar
Posts: 7211
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MQTT Gateway Plugin

Can you post these in the Masquerade plugin thread? viewtopic.php?f=216&t=17402

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Nov 19, 2017 3:39 pm
BonfireVA offline
Posts: 62
Joined: Sep 17, 2017

Re: MQTT Gateway Plugin

FlyingDiver wrote:
Can you post these in the Masquerade plugin thread? viewtopic.php?f=216&t=17402


Sure thing. I was thinking it might be better to move it over there, but I do think your plugin is a great compliment to this MQTT plugin. Sorry for hijacking the wrong thread :)

-Eric

Posted on
Tue Nov 21, 2017 2:50 pm
MortenB offline
Posts: 44
Joined: Jan 24, 2015
Location: Fredrikstad - Norway

Re: MQTT Gateway Plugin

MortenB wrote:
Ok...

Trying to get the hang of this MQTT stuff :twisted:
I have a MQTT broker set up running on a ubuntu server and it is working fine.
When I try to configure an item in Indigo I get the following error:
Code: Select all
16. nov. 2017, 08:36:07
   mqttGateway Debug               validating configUi
   mqttGateway Error               Error in plugin execution UiValidate:

Traceback (most recent call last):
  File "plugin.py", line 368, in validateDeviceConfigUi
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
OSError: [Errno 2] No such file or directory

I'm running Indigo 7 by the way.


Anyone got any good idea as to what is wrong here?

Mac Mini with Indigo 6 - Testing Indigo 7
18 Qubino dimmers
6 Fibaro dimmers (v2)
13 Fibaro Smoke Sensors
13 HeatIt floor thermostats
Also running Node Red and OpenHab2

Page 7 of 9 1 ... 4, 5, 6, 7, 8, 9

Who is online

Users browsing this forum: No registered users and 4 guests