Replies: 1 comment 1 reply
-
devices = c.getdevices(verbose=True)
if devices and 'result' in devices:
for device in devices['result']:
print( device['id'], 'online:', device['online'] ) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am searching to see if a device it's online or offline using the cloud methods.
In the JSON reply I don't found anything.
Have you some suggestion?
Now I am using these functions:
devices = c.getdevices()
result = c.getproperties(id)
result = c.getstatus(id)
The only function that replays that a device is offline is:
c.sendcommand(id,commands)
BUT, I don't want send commands to see if it's online........
Thanks
Beta Was this translation helpful? Give feedback.
All reactions