zwave 0.12.0 zwave: ^0.12.0 copied to clipboard
A Dart Library for interacting with Z-Wave devices on Linux.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add zwave
With Flutter:
$ flutter pub add zwave
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
zwave: ^0.12.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:zwave/capability/basic.dart';
import 'package:zwave/capability/battery.dart';
import 'package:zwave/capability/meter/electrical.dart';
import 'package:zwave/capability/network_management_basic.dart';
import 'package:zwave/capability/network_management_proxy.dart';
import 'package:zwave/capability/node_naming.dart';
import 'package:zwave/capability/notification_report_handler.dart';
import 'package:zwave/capability/security.dart';
import 'package:zwave/capability/sensor/binary_sensor.dart';
import 'package:zwave/capability/sensor/multilevel/air_temperature.dart';
import 'package:zwave/capability/sensor/multilevel/humidity.dart';
import 'package:zwave/capability/sensor/multilevel/power.dart';
import 'package:zwave/capability/sensor/sensor_multilevel.dart';
import 'package:zwave/capability/switch_binary.dart';
import 'package:zwave/capability/thermostat.dart';
import 'package:zwave/capability/zw_node_mixin.dart';
import 'package:zwave/command/zw_command.dart';
import 'package:zwave/command/zw_request.dart';
import 'package:zwave/handler/application_command_handler.dart';
import 'package:zwave/handler/application_update_handler.dart';
import 'package:zwave/handler/command_handler.dart';
import 'package:zwave/handler/message_dispatcher.dart';
import 'package:zwave/handler/send_data_dispatcher.dart';
import 'package:zwave/message_consts.dart';
import 'package:zwave/node/sleepy_node.dart';
import 'package:zwave/node/unknown_node.dart';
import 'package:zwave/node/unknown_sleepy_node.dart';
import 'package:zwave/node/zw_node.dart';
import 'package:zwave/port/rpi_zw_port.dart';
import 'package:zwave/port/zw_port.dart';
import 'package:zwave/report/api_library_version.dart';
import 'package:zwave/report/basic_report.dart';
import 'package:zwave/report/meter_report.dart';
import 'package:zwave/report/notification_report.dart';
import 'package:zwave/report/scene_activation_set.dart';
import 'package:zwave/report/security_message_encapsulation.dart';
import 'package:zwave/report/security_nonce_report.dart';
import 'package:zwave/report/sensor_binary_report.dart';
import 'package:zwave/report/sensor_multilevel_report.dart';
import 'package:zwave/report/sensor_multilevel_supported_sensor_report.dart';
import 'package:zwave/report/zw_command_class_report.dart';
import 'package:zwave/util/packet_to_source.dart';
import 'package:zwave/zw_driver.dart';
import 'package:zwave/zw_exception.dart';
import 'package:zwave/zw_manager.dart';
import 'package:zwave/zw_message.dart';