zwave.dart
zwave is a Dart package for interacting with Z-Wave devices.
Overview
This Dart package enables interacting with Z-Wave devices on Linux.
Usage
This package provides
- a library of Dart classes for interacting with a Z-Wave network
- a Z-Wave check port for checking the connection to the Z-Wave controller
- a Z-Wave packet decoder for decoding and printing Z-Wave packets
- an example using this package
Requirements
- A Z-Wave Controller such as the Aeon Labs Aeotec Z-Wave Z-Stick, Gen5 (ZW090).
Setup
-
Setup your Z-Wave controller with your Z-Wave devices
-
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_native
- 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.
pub global run zwave:zw_check
pub global activate makes the Dart scripts in the zwave/bin directory runnable from the command line. pub global run zwave:build_native runs the zwave/bin/build_native.dart program which in turn calls the build_native script to compile the native libozw_ext.so library for the zwave package.
Example
The example demonstrates how to use this package to build an application for interacting with a Z-Wave network.
Libraries
- capability/basic
- capability/battery
- capability/meter/electrical
- capability/network_management_basic
- capability/network_management_proxy
- capability/node_naming
- capability/notification_report_handler
- capability/security
- capability/sensor/binary_sensor
- capability/sensor/multilevel/air_temperature
- capability/sensor/multilevel/humidity
- capability/sensor/multilevel/power
- capability/sensor/sensor_multilevel
- capability/switch_binary
- capability/thermostat
- capability/zw_node_mixin
- command/zw_command
- command/zw_request
- handler/application_command_handler
- handler/application_update_handler
- handler/command_handler
- handler/message_dispatcher
- handler/send_data_dispatcher
- message_consts
- node/sleepy_node
- node/unknown_node
- node/unknown_sleepy_node
- node/zw_node
- port/rpi_zw_port
- port/zw_port
- report/api_library_version
- report/basic_report
- report/meter_report
- report/notification_report
- report/scene_activation_set
- report/security_message_encapsulation
- report/security_nonce_report
- report/sensor_binary_report
- report/sensor_multilevel_report
- report/sensor_multilevel_supported_sensor_report
- report/zw_command_class_report
- util/packet_to_source
- zw_driver
- zw_exception
- zw_manager
- zw_message