Get device status

Moderator: leecollings

Post Reply
enboer
Posts: 38
Joined: Tuesday 02 October 2018 15:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Get device status

Post 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
enboer
Posts: 38
Joined: Tuesday 02 October 2018 15:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Get device status

Post by enboer »

switchLog.jpg
switchLog.jpg (62.59 KiB) Viewed 1072 times
In the log I see the different triggers, but how I get this in a LUA script or dzEvent
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Get device status

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

Who is online

Users browsing this forum: No registered users and 1 guest