zwave: ^0.3.0 copied to clipboard
A Dart library for interacting with Z-Wave devices on RPi
zwave is a Dart package for interacting with Z-Wave devices.
This Dart package uses the Open Z-Wave library to communicate with a compatible Z-Wave Controller and interact with Z-Wave devices.
See the zwave library for more about how to interact with Z-Wave devices.
A Z-Wave Controller such as the Aeon Labs Aeotec Z-Wave Z-Stick, Gen5 (ZW090).
The Open Z-Wave library used by this Dart library to communicate with the Z-Wave controller. Tested with Open Z-Wave Library 1.4.256
Pair your Z-Wave controller with your Z-Wave devices, then install the Open Z-Wave library. Use the MinOZW example that is included in the Open Z-Wave library to ensure that the Open Z-Wave library is installed correctly and can communicate with your devices using your Z-Wave Controller.
Activate this zwave package using the pub global command.
pub global activate zwave
From your application directory (the application that references the zwave package) run the following command to build the native library
pub global run zwave:build_lib
pub global activate makes the Dart scripts in the zwave/bin directory runnable from the command line. pub global run zwave:build_lib runs the zwave/bin/build_lib.dart program which in turn calls the build_lib script to compile the native libozw_ext.so library for the zwave package.