Page 1 of 1

Get device status

Posted: Wednesday 12 January 2022 23:44
by enboer
I want in LUA the device status. Not only the last changed, but also the user. So who activated it. I want this to determine is a physical button is pressed (sun blinds) or if it is initatiated from Domoticz. According to this API documentation: https://www.domoticz.com/wiki/Domoticz_ ... nformation it should be possible.
Use the /json.htm?type=devices&rid=IDX. In the documentation you see that USER is returned. If I run it on my system, I do not see User, all the other info is there.
Is this a bug or are the other ways to get this info.
I am running 2021.1

Re: Get device status

Posted: Thursday 13 January 2022 20:00
by enboer
switchLog.jpg
switchLog.jpg (62.59 KiB) Viewed 1068 times
In the log I see the different triggers, but how I get this in a LUA script or dzEvent

Re: Get device status

Posted: Thursday 13 January 2022 21:41
by EddyG
Some where on this forum there is a statement of @gizmocuz that the bug is known and not on a high priority.
It will be addressed in the future.
The current bug is only that not the right user is displayed.
You will have to create an issue that it will be placed in the api's.