Page 7 of 9

Re: MQTT Gateway Plugin

PostPosted: Sun Nov 05, 2017 9:03 am
by BonfireVA
Sorry, I was tied up with sports stuff for the kids. Downloading now!

- Eric

Re: MQTT Gateway Plugin

PostPosted: Sun Nov 05, 2017 9:09 am
by BonfireVA
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

Re: MQTT Gateway Plugin

PostPosted: Sun Nov 05, 2017 9:30 am
by BonfireVA
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

Re: MQTT Gateway Plugin

PostPosted: Sun Nov 05, 2017 9:34 am
by FlyingDiver
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.

Re: MQTT Gateway Plugin

PostPosted: Sun Nov 05, 2017 10:22 am
by BonfireVA
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

Re: MQTT Gateway Plugin

PostPosted: Sun Nov 05, 2017 11:06 am
by FlyingDiver
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.

Re: MQTT Gateway Plugin

PostPosted: Sun Nov 05, 2017 11:40 am
by BonfireVA
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

Re: MQTT Gateway Plugin

PostPosted: Sun Nov 05, 2017 11:47 am
by FlyingDiver
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....

Re: MQTT Gateway Plugin

PostPosted: Thu Nov 16, 2017 1:42 am
by MortenB
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.

Re: MQTT Gateway Plugin

PostPosted: Fri Nov 17, 2017 12:39 pm
by BonfireVA
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

Re: MQTT Gateway Plugin

PostPosted: Sun Nov 19, 2017 10:26 am
by FlyingDiver
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

Re: MQTT Gateway Plugin

PostPosted: Sun Nov 19, 2017 2:58 pm
by BonfireVA
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

Re: MQTT Gateway Plugin

PostPosted: Sun Nov 19, 2017 3:00 pm
by FlyingDiver
Can you post these in the Masquerade plugin thread? viewtopic.php?f=216&t=17402

Re: MQTT Gateway Plugin

PostPosted: Sun Nov 19, 2017 3:39 pm
by BonfireVA
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

Re: MQTT Gateway Plugin

PostPosted: Tue Nov 21, 2017 2:50 pm
by MortenB
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?