Trigger only on changes

Posted on
Mon Feb 17, 2020 10:48 am
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Trigger only on changes

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

Posted on
Mon Feb 17, 2020 7:16 pm
Mattias offline
Posts: 35
Joined: May 30, 2014

Re: Trigger only on changes

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 1371 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 1371 times

Posted on
Mon Feb 17, 2020 7:23 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Trigger only on changes

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

Posted on
Mon Feb 17, 2020 7:39 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Trigger only on changes

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

Posted on
Mon Feb 17, 2020 7:47 pm
Mattias offline
Posts: 35
Joined: May 30, 2014

Re: Trigger only on changes

I guess I don't fully follow how this works...:) I'll try it.

Posted on
Wed Feb 19, 2020 1:14 pm
Mattias offline
Posts: 35
Joined: May 30, 2014

Re: Trigger only on changes

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

Who is online

Users browsing this forum: No registered users and 2 guests