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
Is it possible get all virtual devices data or its value?
-
- Posts: 175
- Joined: 02 Mar 2020 22:41
Re: Is it possible get all virtual devices data or its value?
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")'
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?
This link is returning all devices: https://find.z-wave.me/ZAutomation/api/v1/devices