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
Get device status
Moderator: leecollings
-
enboer
- Posts: 38
- Joined: Tuesday 02 October 2018 15:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Get device status
In the log I see the different triggers, but how I get this in a LUA script or dzEvent
Re: Get device status
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest