MQTT Bugs?

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

MQTT Bugs?

Post by berkinet »

I have found 2 anomalies (aka possible bugs).
  1. I have a trigger to set the message type for a shim
    Screenshot 2025-12-05 at 11.54.44.png
    Screenshot 2025-12-05 at 11.54.44.png (154.77 KiB) Viewed 134 times
    This works fine. However, periodically it becomes un-enabled. I have no idea why, and nothing is logged. FWIW, this only seems to happen if I shift focus from the folder containing the trigger.
  2. In the Shim device, I have found that when changing the device type, the device states are not deleted. So, even if the changed configuration no longer maintains those states, they still appear in the device display. Also, once the precision is set, changing it seems to have no effect.
Let me know if there is any additional information I can provide.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: MQTT Bugs?

Post by FlyingDiver »

berkinet wrote: Fri Dec 05, 2025 5:04 am This works fine. However, periodically it becomes un-enabled. I have no idea why, and nothing is logged. FWIW, this only seems to happen if I shift focus from the folder containing the trigger.
Un-enabled where? You mean in the main Indigo Device list window? The comm-enabled checkbox? Or somewhere else?
berkinet wrote: Fri Dec 05, 2025 5:04 am In the Shim device, I have found that when changing the device type, the device states are not deleted. So, even if the changed configuration no longer maintains those states, they still appear in the device display. Also, once the precision is set, changing it seems to have no effect.
Yeah, changing the device type isn't supported very well, as all the custom attributes from the old type are not deleted. Doing that would really make the code more complicated. Best to just create a new device.

Changing precision should work. Can you create a GitHub issue for that?
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: MQTT Bugs?

Post by berkinet »

FlyingDiver wrote: Fri Dec 05, 2025 7:53 am Un-enabled where? You mean in the main Indigo Device list window? The comm-enabled checkbox? Or somewhere else?
Sorry if I wasn’t clear. This is the trigger that sets the keyword for the shim to look for. So, it is the “trigger enabled” checkbox in the Trigger list
FlyingDiver wrote: Fri Dec 05, 2025 7:53 am Yeah, changing the device type isn't supported very well, as all the custom attributes from the old type are not deleted. Doing that would really make the code more complicated. Best to just create a new device.

Changing precision should work. Can you create a GitHub issue for that?
Agreed, it is probably not worth the effort to clean up when they shim device is altered.

I will see if I can get some evidence on the precision issue. Though, it may be linked to the First issue of trash hanging around in the device description. This was the same shim device that was showing the states that were no longer in use.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: MQTT Bugs?

Post by FlyingDiver »

berkinet wrote: Fri Dec 05, 2025 3:09 pm
FlyingDiver wrote: Fri Dec 05, 2025 7:53 am Un-enabled where? You mean in the main Indigo Device list window? The comm-enabled checkbox? Or somewhere else?
Sorry if I wasn’t clear. This is the trigger that sets the keyword for the shim to look for. So, it is the “trigger enabled” checkbox in the Trigger list

Interesting. The plugin doesn't explicitly enable or disable triggers. Not sure how that would happen.
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: MQTT Bugs?

Post by berkinet »

FlyingDiver wrote: Fri Dec 05, 2025 3:26 pm Interesting. The plugin doesn't explicitly enable or disable triggers. Not sure how that would happen.
Me neither.
User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: MQTT Bugs?

Post by berkinet »

berkinet wrote: Fri Dec 05, 2025 3:47 pm
FlyingDiver wrote: Fri Dec 05, 2025 3:26 pm Interesting. The plugin doesn't explicitly enable or disable triggers. Not sure how that would happen.
Me neither.
DOH!!! :oops:

At some point the device was flooding the MQTT server with constant message. So, I created a repeating scheduled action to run every 10 minutes and enable the trigger for 4 seconds to capture an update, and then disable the trigger for 5 minutes. Then, the vendor added an option to set how often updates should be sent. So, I set it for 10 minutes. But, I had forgotten about my "fix." This effectively blocked any updates.
Post Reply

Return to “MQTT”