Trigger only on changes

User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Trigger only on changes

Post by jay (support) »

FlyingDiver wrote:That's pretty sweet, Matt.
Yeah, that's the primary reason why we allowed any plugin to add properties to any device. The GPM plugin is the plugin-agnostic way of managing those in a UI, but any plugin can also manage them for its own purposes. There might be some useful/interesting uses for this in conjunction with your Shims plugin (or any plugin that needs to "wrap" other Indigo devices) perhaps.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Mattias
Posts: 35
Joined: Fri May 30, 2014 2:44 pm

Re: Trigger only on changes

Post by Mattias »

I created global properties for two devices (MQTT connector and a shims device). The MQTT connector device I did 'sqlLoggerIgnoreStates: *' which blocks all incoming sql-logger, and for the Shims Device - 'sqlLoggerIgnoreStates: id, ts'', but it still updates the table even though there are no changes (except the suppressed ones). See the picture. Have I created the global properties wrong?
Attachments
Screen Shot 2020-02-17 at 7.39.17 PM.png
Screen Shot 2020-02-17 at 7.39.17 PM.png (91.94 KiB) Viewed 1620 times
Screen Shot 2020-02-17 at 8.02.54 PM.png
Screen Shot 2020-02-17 at 8.02.54 PM.png (232.43 KiB) Viewed 1620 times
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Trigger only on changes

Post by FlyingDiver »

Looks like you need to add c1 to that list. Whatever it is.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Trigger only on changes

Post by matt (support) »

Do add c1. You might actually not need id and ts. Those are probably not really device states. Won't hurt to leave them though.
Image
Mattias
Posts: 35
Joined: Fri May 30, 2014 2:44 pm

Re: Trigger only on changes

Post by Mattias »

I guess I don't fully follow how this works...:) I'll try it.
Mattias
Posts: 35
Joined: Fri May 30, 2014 2:44 pm

Re: Trigger only on changes

Post by Mattias »

I’ve used it for a few days and it works great. Thanks!
Post Reply

Return to “MQTT”