If false updates to false....

Posted on
Thu Jun 06, 2024 10:58 pm
hensed offline
Posts: 67
Joined: Feb 01, 2012
Location: Oakland, CA

If false updates to false....

Dumb question; if an indigo variable with the current value of false, gets an update to the value, also false, would that update fire a trigger that is set to initiate on a change to the variable value? (I may be answering my own question)
Last edited by hensed on Fri Jun 07, 2024 1:23 pm, edited 1 time in total.

Posted on
Fri Jun 07, 2024 5:35 am
DaveL17 offline
User avatar
Posts: 6800
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: If false updates to false....

I don't think there's a way to do it directly. I created a trigger to write a note to the Indigo log when the value of a variable changes. The trigger fires when the variable is changed from True to False. It does not fire when the value "changes" from false to false. Under the hood, variables don't have a Last Update value like devices do:

Code: Select all
description :
folderId : 1863978771
globalProps : MetaProps : (dict)
     com.indigodomo.indigoserver : (dict)
     emptyDict : (dict)
id : 1289138982
name : Foo03
pluginProps : emptyDict : (dict)
readOnly : False
remoteDisplay : True
sharedProps : com.indigodomo.indigoserver : (dict)
value : false
A hackish way to do it would be to set the variable to an empty string (or some nonsensee value) before "updating" it to false. Then, you could trigger on the event where the variable becomes false. You would need to make sure that your automation doesn't react when the value is changed briefly to something other than true or false. That's the only way I can think of to do it.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Fri Jun 07, 2024 1:23 pm
hensed offline
Posts: 67
Joined: Feb 01, 2012
Location: Oakland, CA

Re: If false updates to false....

LOL - you read my mind, that was exactly what I was thinking of doing if I wasn't able to get this to work. Thank you for your answer, going to try that next step and see if that works.

Posted on
Fri Jun 07, 2024 1:55 pm
DaveL17 offline
User avatar
Posts: 6800
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: If false updates to false....

Good luck!

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sun Jun 09, 2024 12:50 am
durosity online
User avatar
Posts: 4375
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: If false updates to false....

It would be really nice if the variables list had a last updated column, like devices do, hint hint @matt @jay ;)


Sent from my iPhone using Tapatalk Pro

Computer says no.

Posted on
Sun Jun 09, 2024 5:39 am
DaveL17 offline
User avatar
Posts: 6800
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: If false updates to false....

durosity wrote:
It would be really nice if the variables list had a last updated column, like devices do, hint hint @matt @jay ;)

I believe that feature request is on the list.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sun Jun 09, 2024 5:52 am
durosity online
User avatar
Posts: 4375
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: If false updates to false....

DaveL17 wrote:
durosity wrote:
It would be really nice if the variables list had a last updated column, like devices do, hint hint @matt @jay ;)

I believe that feature request is on the list.
I believe so too.. along with many others! We need to somehow find a way to clone Matt & Jay. Oooh.. or virtualise them and just spin up a few extra VMs! Now there’s a plot for a black mirror episode..


Sent from my iPhone using Tapatalk Pro

Computer says no.

Posted on
Sun Jun 09, 2024 3:29 pm
jay (support) offline
Site Admin
User avatar
Posts: 18277
Joined: Mar 19, 2008
Location: Austin, Texas

Re: If false updates to false....

It is. It is also surprisingly pervasive in that it touches a ton of code that has been solid for many many years. So it makes us really hesitant to add it.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Jun 10, 2024 10:20 am
durosity online
User avatar
Posts: 4375
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: If false updates to false....

jay (support) wrote:
It is. It is also surprisingly pervasive in that it touches a ton of code that has been solid for many many years. So it makes us really hesitant to add it.
That’s a totally fair reason not to add it. Stability is by far the most important aspect of a HA system IMHO.


Sent from my iPhone using Tapatalk Pro

Computer says no.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests

cron