If false updates to false....
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.
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:
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.
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
I came here to drink milk and kick ass....and I've just finished my milk.
[My Plugins] - [My Forums]
[My Plugins] - [My Forums]
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.
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]
[My Plugins] - [My Forums]
- durosity
- Posts: 4381
- Joined: Thu May 10, 2012 3:21 pm
- 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
![Wink ;)](./images/smilies/icon_wink.gif)
Sent from my iPhone using Tapatalk Pro
Computer says no.
Re: If false updates to false....
I believe that feature request is on the list.durosity wrote:It would be really nice if the variables list had a last updated column, like devices do, hint hint @matt @jay![]()
I came here to drink milk and kick ass....and I've just finished my milk.
[My Plugins] - [My Forums]
[My Plugins] - [My Forums]
- durosity
- Posts: 4381
- Joined: Thu May 10, 2012 3:21 pm
- Location: Newcastle Upon Tyne, Ye Ol' England.
Re: If false updates to false....
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..DaveL17 wrote:I believe that feature request is on the list.durosity wrote: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.
- jay (support)
- Site Admin
- Posts: 18339
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
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.
- durosity
- Posts: 4381
- Joined: Thu May 10, 2012 3:21 pm
- Location: Newcastle Upon Tyne, Ye Ol' England.
Re: If false updates to false....
That’s a totally fair reason not to add it. Stability is by far the most important aspect of a HA system IMHO.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.
Sent from my iPhone using Tapatalk Pro
Computer says no.