User variable write to log

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
borgkitty
Posts: 34
Joined: Wednesday 26 October 2016 21:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Contact:

User variable write to log

Post 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
Flopp
Posts: 279
Joined: Sunday 03 January 2016 14:55
Target OS: -
Domoticz version:
Location: Sweden
Contact:

Re: User variable write to log

Post by Flopp »

This can be done with a LUA script or even Blocky
borgkitty
Posts: 34
Joined: Wednesday 26 October 2016 21:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Contact:

Re: User variable write to log

Post 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
SweetPants

Re: User variable write to log

Post by SweetPants »

You can set a uservariable "debug" and depending on it's value print all uservariables to the log????
borgkitty
Posts: 34
Joined: Wednesday 26 October 2016 21:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Contact:

Re: User variable write to log

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest