ubidefeo:
but I also want to know the moment it changes, then I can set it to 'on change'
you cannot change its behaviour, we have no "removeProperty" method.
Yes, sorry, I wasn't meaning change the variables behaviour/setup mid-execution.
Ok, let me try to explain again (if i sound patronising or sarcastic i really don't mean to!).
Example 1.
I have a switch, and I want to know what its status is, on or off, 1 or 0.
I setup a 'readonly' variable 'periodicaly' & update every 60 seconds I'll get its status reported to the dashboard every 60 seconds weather it changes or not. However, if the switch is moved from 'off' to 'on' for 10 seconds inbetween the update cycle it won't be logged, therefore a bit pointless monitoring it.
Example 2.
I have a switch, and I want to know what its status is, on or off, 1 or 0.
I setup a 'readonly' variable to 'on change' and its status will be updated to the dashboard the moment it changes.
However, if it doens't change i have no idea what state its in because it hasn't updated. This makes graphing history impossable.
My initial asumption was that if i had 2 variables, first one set 'periodically' @ 60 seconds & the second one set 'on change'. Then, when 60 second update process was performed, it would send both variables data to the dashboard. However thats not the behavior i'm seeing, it would send the 'periodically' data to the dashboard but not send any data for the 'on change' variable.
ubidefeo:
if you want to achieve this do the following:
- leave the property with onChange
- in your loop track time using millis() and implement something that happens every 60 seconds
- in the onChange callback for your property, instead of executing code, call a custom function that executes such code
- every 60 seconds call that same function
OK, i'm liking the the sound of this... Not a problem creating a simple timer to fire a custom function every 60 seconds but, where would i find the 'onChange callback' code so as to modify its behaviour? Or have i mis-understood you?
ubidefeo:
This allows you to do what you need to without puzzling yourself too much.
Some times we approach a problem from the wrong angle, and I think this angle might help you get to a solution 
Oh i couldn't agree more, its far too easy to get blinkered and only see a probelm from one angle, I do it a lot 
Thank you!