Identify used devices inside the REST response of api/v1/devices #566
Unanswered
ConfusedMerlin
asked this question in
Q&A
Replies: 1 comment 3 replies
-
What do you mean by "a device with 'automotion' in the farm"? What I do know is that a controlled device always has an owner, whether that control was taken via the UI (=> status = usage) or via the API (=> status = automation) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings,
I just found out that I can identify devices, that are currently "in use" inside the json that comes back when http GET /api/v1/devices as admin user: there is a key "owner", which contains data (including the name) of the current user. Which is neat. Also, of course, there is the "using" key, which turns to true in case it is used.
So far, so good. But then I noticed that we had one device with "automotion" in the farm too. But its owner field remains Null/None. How can identify devices in state "automotion" AND their current user inside the json?
Beta Was this translation helpful? Give feedback.
All reactions