Minor? Error in MQTT Shims

Posted on
Mon Oct 24, 2022 8:59 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Minor? Error in MQTT Shims

I have a Shim defined as a:
MQTT On/Off Sensor device
State value is in the payload fields and is a json boolean
Sensor Type is Power On/Off

Everything works, except, on each state update the plugin throws
state key onOffState not defined (ignoring update request)

Probably an if missing somewhere, because the actual device state in the State column updates properly.

And, FWIW, I had the same problem as reported by roquej, triggers would not fire. I finally deleted all MQTT devices, and the plugins, restarted Indigo, re-installed the plugins and devices,. and it started working. Odd.

BTW, thanks for the plugins, I am still trying to wrap my head around MQTT, especially returning messages back to the actual real world device. But, it looks like a pretty neat way to avoid custom plugins. At least in some cases. For example, my application is to observe, and possibly control a wireless sprinkler system from LinkTap.

Posted on
Mon Oct 24, 2022 9:08 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Minor? Error in MQTT Shims

Can you run debug logging and capture the log entries when that message is received? And create a GitHub issue for it? Also include the device template (menu command).

Thanks!

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

Posted on
Mon Oct 24, 2022 9:19 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Minor? Error in MQTT Shims

FlyingDiver wrote:
Can you run debug logging and capture the log entries when that message is received? And create a GitHub issue for it? Also include the device template (menu command).

Done.

Posted on
Mon Oct 24, 2022 9:30 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Minor? Error in MQTT Shims

Thanks

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

Posted on
Mon Oct 24, 2022 9:33 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Minor? Error in MQTT Shims

One more thing - please add the Indigo device details for that Shim device to the issue. (Right click on device in Indigo list)

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

Posted on
Mon Oct 24, 2022 12:12 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Minor? Error in MQTT Shims

FlyingDiver wrote:
One more thing - please add the Indigo device details for that Shim device to the issue. (Right click on device in Indigo list)

And, done.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests

cron