Page 1 of 1

Is it possible get all virtual devices data or its value?

Posted: 23 Jun 2022 17:58
by alex_tpc
https://find.z-wave.me/ZAutomation/api/ ... tilevel_15

When i run this one, it will return this virtual device data, but I want to get all virtual devices data, how to do it?
I use the follow one but it not work.
https://find.z-wave.me/ZAutomation/api/v1/devices

Re: Is it possible get all virtual devices data or its value?

Posted: 23 Jun 2022 21:40
by seattleneil
For a Z-Way at IP address [IP], to get the list of devices, use: '[IP]:8083/ZAutomation/api/v1/namespaces/devices_all'

To get all of the data for a specific device, use: '[IP]:8083/ZAutomation/api/v1/devices/{deviceId}', where {deviceId} is a deviceId value from the first command.

I don't know if the ZAutomation API supports returning just the metrics:value. If you just want the value for {deviceId}, you can use: '[IP]:8083/JS/Run/controller.devices.get("{deviceId}").get("metrics:level")'

Re: Is it possible get all virtual devices data or its value?

Posted: 25 Jun 2022 02:31
by PoltoS
This link is returning all devices: https://find.z-wave.me/ZAutomation/api/v1/devices