Example code for using Razberry to control Z-Wave devices for building IoT solutions.
All requests listed below require basic authentication. Without autentification parameters you will be presented with HTTP error code
401 Unauthorized. For more information, see authentication sub-chapter on this page.
For sending HTTP requests with authentication it is advisable to use command line tools like
curl, or tools like Postman (or similar). This will simplify the the process of authentication, request development and testing, as well as handling the JSON responses from those requests.
It is also possible to embed authentication information into the HTTP request. However, keep in mind that embedding authentication information into URL might not work as it might have been disabled or depricated in your browser or tool. Example of such request:
To see all the connected devices use the following URL:
To send a command to a particular device use the following URL:
ID is the full identifier, e.g. ZwayVDev_zway_2-0-48-1 – dash [-] separated node, instance, command class, and scale.
Get information from a device
High level API
Provides you with basic information about a device:
Low level API
For getting and, especially, setting values you can use the low level API. Device number, instance, command class and other paramters used in the request below can be extracted from the device ID described in the commands sub-chapter.
Get a particular value:
Set a particular value:
- General info about Razberry: http://razberry.z-wave.me/
- Installation: http://razberry.z-wave.me/index.php?id=24
- Quick doc: http://razberry.z-wave.me/docs/RaZberryEndUserManual20.pdf
- Full doc: http://razberry.z-wave.me/docs/zwayDev.pdf