Minor? Error in MQTT Shims

User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Minor? Error in MQTT Shims

Post by berkinet »

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.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Minor? Error in MQTT Shims

Post by FlyingDiver »

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
User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: Minor? Error in MQTT Shims

Post by berkinet »

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.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Minor? Error in MQTT Shims

Post by FlyingDiver »

Thanks
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Minor? Error in MQTT Shims

Post by FlyingDiver »

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
User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: Minor? Error in MQTT Shims

Post by berkinet »

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.
Post Reply

Return to “MQTT”