Grizzly.ZWave.CommandClasses (grizzly v0.15.6) View Source

Link to this section Summary

Functions

Turn the binary representation that is outlined in the Network-Protocol specs

Turn the list of command classes into the binary representation outlined in the Network-Protocol command class specification.

Try to parse the byte into a command class

Get the byte representation of the command class

Link to this section Types

Specs

command_class() ::
  :zensor_net
  | :basic
  | :controller_replication
  | :application_status
  | :zip
  | :security_panel_mode
  | :switch_binary
  | :switch_multilevel
  | :switch_all
  | :switch_toggle_binary
  | :chimney_fan
  | :scene_activation
  | :scene_actuator_conf
  | :scene_controller_conf
  | :security_panel_zone
  | :security_panel_zone_sensor
  | :sensor_binary
  | :sensor_multilevel
  | :meter
  | :switch_color
  | :network_management_inclusion
  | :meter_pulse
  | :basic_tariff_info
  | :hrv_status
  | :thermostat_heating
  | :hrv_control
  | :dcp_config
  | :dcp_monitor
  | :meter_tbl_config
  | :meter_tbl_monitor
  | :meter_tbl_push
  | :prepayment
  | :thermostat_mode
  | :prepayment_encapsulation
  | :operating_state
  | :thermostat_setpoint
  | :thermostat_fan_mode
  | :thermostat_fan_state
  | :climate_control_schedule
  | :thermostat_setback
  | :rate_tbl_config
  | :rate_tbl_monitor
  | :tariff_config
  | :tariff_tbl_monitor
  | :door_lock_logging
  | :network_management_basic
  | :schedule_entry_lock
  | :zip_6lowpan
  | :basic_window_covering
  | :mtp_window_covering
  | :network_management_proxy
  | :schedule
  | :network_management_primary
  | :transport_service
  | :crc_16_encap
  | :application_capability
  | :zip_nd
  | :association_group_info
  | :device_reset_locally
  | :central_scene
  | :ip_association
  | :antitheft
  | :zwaveplus_info
  | :zip_gateway
  | :zip_portal
  | :door_lock
  | :user_code
  | :humidity_control_setpoint
  | :dmx
  | :barrier_operator
  | :network_management_installation_maintenance
  | :zip_naming
  | :mailbox
  | :window_covering
  | :irrigation
  | :supervision
  | :humidity_control_mode
  | :humidity_control_operating_state
  | :entry_control
  | :configuration
  | :alarm
  | :manufacturer_specific
  | :powerlevel
  | :inclusion_controller
  | :protection
  | :lock
  | :node_naming
  | :node_provisioning
  | :firmware_update_md
  | :grouping_name
  | :remote_association_activate
  | :remote_association
  | :battery
  | :clock
  | :hail
  | :wake_up
  | :association
  | :command_class_version
  | :indicator
  | :proprietary
  | :language
  | :time
  | :time_parameters
  | :geographic_location
  | :multi_channel
  | :multi_channel_association
  | :multi_cmd
  | :energy_production
  | :manufacturer_proprietary
  | :screen_md
  | :screen_attributes
  | :simple_av_control
  | :av_content_directory_md
  | :av_content_renderer_status
  | :av_content_search_md
  | :security
  | :av_tagging_md
  | :ip_configuration
  | :association_command_configuration
  | :sensor_alarm
  | :silence_alarm
  | :sensor_configuration
  | :security_2
  | :mark
  | :non_interoperable
  | :no_operation

Link to this section Functions

Link to this function

command_class_list_from_binary(binary)

View Source

Specs

command_class_list_from_binary(binary()) :: [command_class()]

Turn the binary representation that is outlined in the Network-Protocol specs

Link to this function

command_class_list_to_binary(command_class_list)

View Source

Specs

command_class_list_to_binary([command_class()]) :: binary()

Turn the list of command classes into the binary representation outlined in the Network-Protocol command class specification.

TODO: add more details

Specs

from_byte(byte()) ::
  {:ok, command_class()} | {:error, :unsupported_command_class}

Try to parse the byte into a command class

Link to this function

maybe_concat_command_classes(binary, arg2, ccs_bin)

View Source

Specs

to_byte(command_class()) :: byte()

Get the byte representation of the command class