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.
This package provides
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.
Finally, run the included command line application to ensure that this package is installed correctly and can communicate with your devices using your Z-Wave Controller.
Add this to your package's pubspec.yaml file:
dependencies: zwave: "^0.8.0"
You can install packages from the command line:
$ pub get
Alternatively, your editor might support
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.8.0||Jul 5, 2017|
|0.7.0||Dec 27, 2016|
|0.6.0||Aug 8, 2016|
|0.5.0||Jul 29, 2016|
|0.3.0||Jul 23, 2016|
|0.2.0||Jul 16, 2016|
|0.1.3||Jul 2, 2016|
|0.1.2||Jun 19, 2016|
|0.1.1||May 31, 2016|
|0.1.0||May 31, 2016|
We analyzed this package, and provided a score, details, and suggestions below.
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: unsure
Error(s) prevent platform classification.
Strong-mode analysis of
lib/src/ozw.dartfailed with the following error:
line: 163 col: 32
The return type 'List<String>' isn't a 'List<int>', as defined by the method '_networkIds'.
Strong-mode analysis of
lib/zwave.dartfailed with the following error:
line: 346 col: 9
The name 'valueByIndex' is already defined.
Fix platform conflicts.
Make sure none of the libraries use mutually exclusive dependendencies.
Fix issues reported by
dartanalyzerreported 2 error(s) and 0 warning(s).
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*, it usually means that the author is still experimenting with the general direction API.
Maintain an example.
Create a short demo in the
example/directory to show how to use this package. Common file name patterns include:
example.dartor you could also use