Page 1 of 1
User variable write to log
Posted: Thursday 08 December 2016 12:29
by borgkitty
Very simple change that i think would help me in troubleshooting is when a user variable changes it writes its change to the log.
Current functionality when it changes nothing is written to the log
Requested functionality when user variable changes write the name of the user variable and the value it changed to.
This would operate almost exactly as a switch would write to a log. It writes the switch name and then what value it changed to
Any feedback on this would be great
Re: User variable write to log
Posted: Thursday 08 December 2016 12:58
by Flopp
This can be done with a LUA script or even Blocky
Re: User variable write to log
Posted: Thursday 08 December 2016 13:14
by borgkitty
That's great didn't know this. I will try this out however why cant this just be integrated as a function? I would suspect it wouldn't be that hard to implement.
Is there anything stopping this from being implemented? As in a conflict with something else?
Reason i push for this, is it helps in troubleshooting and almost everything else is already writing to the log. And when troubleshooting i shouldn't have to implement another item just to troubleshoot.
Do you have a script that does this? Is it somewhere in the forum already? Ill see if i can find this later
Sent from my GT-N5110 using Tapatalk
Re: User variable write to log
Posted: Thursday 08 December 2016 13:24
by SweetPants
You can set a uservariable "debug" and depending on it's value print all uservariables to the log????
Re: User variable write to log
Posted: Thursday 08 December 2016 19:51
by borgkitty
SweetPants wrote:You can set a uservariable "debug" and depending on it's value print all uservariables to the log????
Do you mean in blocky? I see the debug. i shall use this as well.
These are all great work arounds and I appreciate the suggestions because I have not thought about that. I will be using these
However my suggestion still stands for this to be implemented into domoticz.
Till then I will use these thanks