Indigo devices to MQTT

Posted on
Wed Nov 04, 2020 2:59 pm
Frakke offline
Posts: 97
Joined: May 05, 2016

Indigo devices to MQTT

Hi,

I'm looking to push my indigo devices updates (ON / OFF / Percentage / Lux / ...) to MQTT.
Does anyone have a solution for this?

Regards!

Posted on
Wed Nov 04, 2020 3:03 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Indigo devices to MQTT

That's what the MQTT Connector plugin does. Set up an MQTT Broker device, then go to the "Published Devices" section of the Device Configuration dialog. Select the devices to publish. Then change the publishing template as necessary.

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

Posted on
Thu Nov 05, 2020 2:38 am
Frakke offline
Posts: 97
Joined: May 05, 2016

Re: Indigo devices to MQTT

Nice! That is indeed what I was looking for, Thanks!

Posted on
Thu Dec 31, 2020 3:10 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Indigo devices to MQTT

If you publish indigo devices via the MQTT connector, I expected "indigo" to show in MQTT Explorer. Is not,

What am Ii doing wrong?

Thank you

JP

Posted on
Thu Dec 31, 2020 3:11 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Indigo devices to MQTT

You specify the topic when publishing devices using the connector plugin. Pick what you want.

And make sure you've subscribed to that topic. Or are using wildcard #.

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

Posted on
Thu Dec 31, 2020 3:17 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Indigo devices to MQTT

I am using the "Virtual Device" template, which shows "Indigo" as ID. The problem is that I don't see anything published from Indigo, by that name or any other, in MQTT Explorer. I know my broker (mosquito) is working because I am using, and see, other publishers.

1. go into MQTT connector, Publish devices
2. select "Virtual Device: template
3. select the desired virtual device to publish
3. reload the connector

Am I missing any other step?

JP

Posted on
Thu Dec 31, 2020 3:56 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Indigo devices to MQTT

There is no Virtual Device template. One config panel you use to list the devices to publish. Did you list the devices there? The other has the device template. It looks like the following.
Attachments
Screen Shot 2020-12-31 at 4.54.23 PM.png
Screen Shot 2020-12-31 at 4.54.23 PM.png (170.34 KiB) Viewed 2469 times

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

Posted on
Thu Dec 31, 2020 4:39 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Indigo devices to MQTT

Yes, I did. Also, tried publishing z-wave devices and no luck.

I did the "exclude devices" option, in the same panel, and it's publishing all the indigo devices. However, it refused to publish individual devices.

JP

Posted on
Thu Dec 31, 2020 4:41 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Indigo devices to MQTT

I'm going to need to see screen shots of your config panels and debug log for the Connector plugin when a device that's being published changes.

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

Posted on
Thu Dec 31, 2020 4:43 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Indigo devices to MQTT

And the config for the virtual device you're trying to publish. I never tested with a virtual device, so I'm not sure that's supposed to work. I don't think a virtual device has any states, does it? Why are you publishing a virtual device?

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

Posted on
Thu Dec 31, 2020 5:20 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Indigo devices to MQTT

Here are my two options. One works, the other does not.

JP
Attachments
Screen Shot 2020-12-31 at 6.18.40 PM.jpg
MQTT Explorer highlighting all indigo devices
Screen Shot 2020-12-31 at 6.18.40 PM.jpg (191.85 KiB) Viewed 2437 times
Screen Shot 2020-12-31 at 6.12.31 PM.png
This option - publish just one devices, doesn't work
Screen Shot 2020-12-31 at 6.12.31 PM.png (114.26 KiB) Viewed 2439 times
Screen Shot 2020-12-31 at 6.11.32 PM.png
This option - publish all devices works.
Screen Shot 2020-12-31 at 6.11.32 PM.png (128.77 KiB) Viewed 2439 times

Posted on
Thu Dec 31, 2020 5:36 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Indigo devices to MQTT

I am unable to replicate your results. I created a virtual device and it was published as expected. So you're going to need to remove all devices from the published list, make sure it's not in exclude mode (so it's only publishing the listed devices), and put in JUST your virtual device. Then make sure the plugin in is DETAILED DEBUGGING mode, and change the status variable for the virtual device. Just once. Then turn off the debug logging. Leaving it on will really fill up your log.

Changing the status variable will cause the virtual device to update, which should cause a message to get published.

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

Posted on
Thu Dec 31, 2020 5:49 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Indigo devices to MQTT

Based on your last comment, I realized the topic doesn't get published until you change the state of the device, which is different than when you publish all devices. Tested it changing the device state and is published.

Again, sorry for the user error but it was a bit confusing with the different publishing behavior from publishing all vs just one device.

thank you for all your help and great plugin!

JP

Posted on
Thu Dec 31, 2020 5:55 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Indigo devices to MQTT

roquej wrote:
Based on your last comment, I realized the topic doesn't get published until you change the state of the device, which is different than when you publish all devices. Tested it changing the device state and is published.

Again, sorry for the user error but it was a bit confusing with the different publishing behavior from publishing all vs just one device.

thank you for all your help and great plugin!

JP


Actually, there's no difference, except for WHICH devices are published. There still has to be a change to the device state to trigger the publish.

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

Posted on
Fri Jan 01, 2021 2:29 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Indigo devices to MQTT

Stand corrected. Thank you!

JP

Who is online

Users browsing this forum: No registered users and 1 guest