|  Developer
Updated on November 23, 2021

send_command()

  • Send command to a specified Zigbee pcp (pcp is specified by node_id, endpoint_id and cluster_name).
Edit

  • params: node_id (int), endpoint_id (int), cluster_name (string), command_name (string), command_params(int or string).
  • return: none.
Edit
				
					require "zigbee"

zigbee.send_command( node_id, endpoint_id, cluster_name, command_name, command_params )				
			
ClusterName Supported commands names Supported parameters Example
on_off On
Off
level_control MoveToLevelWithOnOff 0 to 254
MoveWithOnOff up
down
StopWithOnOff
color_control MoveToColor { current_x = 1 to 65536, current_y = 1 to 65536 }
MoveToColorTemperature 1 to 65279
ias_ace ArmResponse all_zones_disarmed
only_day_home_zones_armed
only_night_sleep_zones_armed
all_zones_armed
invalid_arm_disarm_code
not_ready_to_arm
already_disarmed
PanelStatusChanged {panel_status = Panel Status, seconds_remaining = 0 to 255 }
GetPanelStatusResponse Panel Status
poll_control CheckInResponse {start_fast_polling_mode = true or false, fast_poll_timeout = uint16_t in quarterseconds}
FastPollStop
door_lock LockDoor pin_code (string) (optional)
UnlockDoor pin_code (string) (optional)
SetPinCode {user_id = int, pin_code = string, user_status = “occupied_enabled” or “occupied_disabled”}
GetPinCode user_id (string)
ClearPinCode user_id (string)
ClearAllPinCodes