Zigbee Commands: различия между версиями
Sirmax (обсуждение | вклад) |
Sirmax (обсуждение | вклад) |
||
Строка 8: | Строка 8: | ||
|- |
|- |
||
! Команда !! Описание !! Пример использования |
! Команда !! Описание !! Пример использования |
||
+ | |- |
||
+ | | |
||
+ | <code><device></code><BR> |
||
+ | |||
+ | | |
||
+ | As <device> in following commands you can use interchangeably: |
||
+ | <shortaddr> = short address of the Zigbee device on the network, example: 0x1234 |
||
+ | <longaddr> = permanent IEEE address of the Zigbee device (64 bits), example: 0x00158D00041160C5 |
||
+ | <index> = number of the device in the internal list (starts at 1), ideal for enumerating devices, example: 3 for third device in the list |
||
+ | <name> = friendly name. Only when previously set with ZbName |
||
+ | | |
||
+ | <PRE> |
||
+ | |||
+ | </PRE> |
||
+ | |||
+ | |||
|- |
|- |
||
| |
| |
||
Строка 48: | Строка 64: | ||
| |
| |
||
<PRE> |
<PRE> |
||
+ | ZbCIE Configure on the ZigBee device the CIE address using the IEEE address of the ZigBee Bridge. The ZigBee Bridge will act as the CIE device for the ZigBee Network. See IAS Cluster in the ZigBee specification for more information. |
||
+ | Usage: ZbCIE <device>,<endpoint> |
||
+ | <device> is the ZigBee device to configure |
||
+ | <endpoint> is the endpoint in the ZigBee device where the IAS Cluster is. |
||
+ | Example: ZbCIE 1,44 |
||
</PRE> |
</PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | ZbEnroll Enroll the the ZigBee device to the ZigBee Bridge for reporting security sensors data, panels, etc. The ZigBee Bridge will act as the CIE device for the ZigBee Network. |
||
+ | Usage: ZbEnroll <device>,<endpoint> |
||
+ | <device> is the ZigBee device to configure |
||
+ | <endpoint> is the endpoint in the ZigBee device where the IAS Cluster is. |
||
+ | Example: ZbEnroll 1,44 |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | ZbConfig display the current Zigbee configuration |
||
+ | Example or result: {"ZbConfig":{"Channel":11,"PanID":"0x1A63","ExtPanID":"0xCCCCCCCCCCCCCCCC","KeyL":"0x0F0D0B0907050301","KeyH":"0x0D0C0A0806040200"}} |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | ZbConfig <json> change the configuration and restart if any change was applied. Warning: change in configuration causes a reset of the CC2530/ZBBridge and requires devices to be re-paired. |
||
+ | "Channel":<channel>: Zigbee radio channel (11-26) |
||
+ | "PanID":<panid>: identifier of the Zigbee Network |
||
+ | "ExtPanID":<extpanid>: unique identifier of the Zigbee Network (ExtPanID features are not supported in Z2T but this parameter needs to be set) |
||
+ | "KeyL":<key_l>,"KeyH":<key_h>: 128 bits encryption key, split into 2 64 bits values (Low and High) |
||
+ | "TXRadio":<txradio>: radio power in dBm (1-20) only for ZBBridge |
||
+ | All parameters are optional and only the ones specified are changed. The command always displays the complete configuration after the change |
||
+ | Example of command: ZbConfig {"Channel":22,"PanID":"0x1A69","ExtPanID":"0xDDCCCCCCCCCCCCCC","KeyL":"0xFF0D0B0907050301","KeyH":"0xED0C0A0806040200"} |
||
+ | The following command creates a highly secure Network key based on a hardware random generator: |
||
+ | ZbConfig {"KeyL":"","KeyH":""} |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | ZbDeviceTopic |
||
+ | SetOption89 Configure MQTT topic for Zigbee devices (also see SensorRetain) |
||
+ | 0 = single tele/%topic%/SENSOR topic (default) |
||
+ | 1 = unique device topic based on Zigbee device ShortAddr |
||
+ | Example: tele/Zigbee/5ADF/SENSOR = {"ZbReceived":{"0x5ADF":{"Dimmer":254,"Endpoint":1,"LinkQuality":70}}} |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | ZbEndpointSuffix |
||
+ | SetOption101 Add Zigbee source endpoint as suffix to attributes |
||
+ | 0 = disable (default) |
||
+ | 1 = enable |
||
+ | e.g. Power3 instead of Power if sent from endpoint 3 |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | ZbEndpointTopic |
||
+ | SetOption120 Add the Zigbee endpoint as suffix in topic when using SetOption89 1 |
||
+ | 0 = disable (default) |
||
+ | 1 = enable |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | ZbForget Used for devices that are unused but still visible in ZbStatus |
||
+ | <device> = Remove a device from the Tasmota flash memory. It does not un-pair the device nor deleting the device information in the CC2530/ZBBridge. |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | ZbLight Sets or reads the light type to be emulated in Zigbee Hue Emulation with Alexa. |
||
+ | <device>,<light_type> sets the light type using an integer 0..5 corresponding to the number of channels (from one channel (on/off) to 5 channel (RGBCCT) lights) |
||
+ | <device>,-1 removes the device from Philips Hue emulation |
||
+ | <device> displays the current status of the Light (Zigbee2Tasmota tracks all changes to the light) |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | ZbListen (EZSP ZBBridge only)Listens to a multicast group address. By default EZSP will not report group messages unless you subscribe to the group. |
||
+ | <x>: slot in the array of group addresses, 1..15 |
||
+ | <group>: group address to listen to, 0..0xFFFF |
||
+ | At start-up, Z2T automatically listens to group 0 in slot 0. |
||
+ | CC2530 does not need this command and always report all group messages |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | ZbLeave <device> = request a device to leave the network. |
||
+ | If the device is offline or sleeping, this will have no effect. It is not 100% guaranteed that the device will never connect again |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | ZbLoad <file>.zb = load Zigbee definition file |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | ZbLoadDump <file>.zb = dump Zigbee definition file contents to console |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | ZbInfo <device> = display all information known about a device, equivalent to ZbStatus3 with a simpler JSON output |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |- |
||
+ | | |
||
+ | <code> </code> |
||
+ | | |
||
+ | Текст ячейки |
||
+ | | |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
|} |
|} |
Версия 17:38, 16 мая 2024
Zigbee commands
Это заметки по "умному дому" и командам
commands
Команда | Описание | Пример использования |
---|---|---|
|
As <device> in following commands you can use interchangeably: <shortaddr> = short address of the Zigbee device on the network, example: 0x1234 <longaddr> = permanent IEEE address of the Zigbee device (64 bits), example: 0x00158D00041160C5 <index> = number of the device in the internal list (starts at 1), ideal for enumerating devices, example: 3 for third device in the list <name> = friendly name. Only when previously set with ZbName |
|
|
Asks the device for its internal binding states
или
|
16:20:52.118 CMD: ZbBindState 1 16:20:52.121 SRC: WebConsole from 192.168.22.108 16:20:52.122 CMD: Grp 0, Cmd 'ZBBINDSTATE', Idx 1, Len 1, Pld 1, Data '1' 16:20:52.126 ZIG: ZbZNPSent 25336AFD00 16:20:52.133 MQT: stat/tasmota_3281FC/RESULT = {"ZbBindState":"Done"} 16:20:52.159 ZIG: {"ZbZNPReceived":"653300"} 16:20:52.195 ZIG: {"ZbZNPReceived":"45B36AFD00020002F9ED9A5B3B38C1A4010600037884B626004B120001F9ED9A5B3B38C1A401040B037884B626004B120001"} 16:20:52.202 MQT: tele/tasmota_3281FC/RESULT = {"ZbBindState":{"Device":"0xFD6A","Status":0,"StatusMessage":"SUCCESS","Total":2,"Start":1,"Bindings":[{"Cluster":"0x0006","Endpoint":1,"ToDevice":"0x00124B0026B68478","ToEndpoint":1},{"Cluster":"0x0B04","Endpoint":1,"ToDevice":"0x00124B0026B68478","ToEndpoint":1}]}}
16:26:39.630 CMD: zbBindState 0xFD6A 16:26:39.632 SRC: WebConsole from 192.168.22.108 16:26:39.635 CMD: Grp 0, Cmd 'ZBBINDSTATE', Idx 1, Len 6, Pld 64874, Data '0xFD6A' 16:26:39.638 ZIG: ZbZNPSent 25336AFD00 16:26:39.644 MQT: stat/tasmota_3281FC/RESULT = {"ZbBindState":"Done"} 16:26:39.678 ZIG: {"ZbZNPReceived":"653300"} 16:26:39.724 ZIG: {"ZbZNPReceived":"45C46AFD00"} 16:26:39.775 ZIG: {"ZbZNPReceived":"45B36AFD00020002F9ED9A5B3B38C1A4010600037884B626004B120001F9ED9A5B3B38C1A401040B037884B626004B120001"} 16:26:39.783 MQT: tele/tasmota_3281FC/RESULT = {"ZbBindState":{"Device":"0xFD6A","Status":0,"StatusMessage":"SUCCESS","Total":2,"Start":1,"Bindings":[{"Cluster":"0x0006","Endpoint":1,"ToDevice":"0x00124B0026B68478","ToEndpoint":1},{"Cluster":"0x0B04","Endpoint":1,"ToDevice":"0x00124B0026B68478","ToEndpoint":1}]}} |
|
Текст ячейки |
ZbCIE Configure on the ZigBee device the CIE address using the IEEE address of the ZigBee Bridge. The ZigBee Bridge will act as the CIE device for the ZigBee Network. See IAS Cluster in the ZigBee specification for more information. Usage: ZbCIE <device>,<endpoint> <device> is the ZigBee device to configure <endpoint> is the endpoint in the ZigBee device where the IAS Cluster is. Example: ZbCIE 1,44
|
|
Текст ячейки |
ZbEnroll Enroll the the ZigBee device to the ZigBee Bridge for reporting security sensors data, panels, etc. The ZigBee Bridge will act as the CIE device for the ZigBee Network. Usage: ZbEnroll <device>,<endpoint> <device> is the ZigBee device to configure <endpoint> is the endpoint in the ZigBee device where the IAS Cluster is. Example: ZbEnroll 1,44
|
|
Текст ячейки |
ZbConfig display the current Zigbee configuration Example or result: {"ZbConfig":{"Channel":11,"PanID":"0x1A63","ExtPanID":"0xCCCCCCCCCCCCCCCC","KeyL":"0x0F0D0B0907050301","KeyH":"0x0D0C0A0806040200"}}
|
|
Текст ячейки |
ZbConfig <json> change the configuration and restart if any change was applied. Warning: change in configuration causes a reset of the CC2530/ZBBridge and requires devices to be re-paired. "Channel":<channel>: Zigbee radio channel (11-26) "PanID":<panid>: identifier of the Zigbee Network "ExtPanID":<extpanid>: unique identifier of the Zigbee Network (ExtPanID features are not supported in Z2T but this parameter needs to be set) "KeyL":<key_l>,"KeyH":<key_h>: 128 bits encryption key, split into 2 64 bits values (Low and High) "TXRadio":<txradio>: radio power in dBm (1-20) only for ZBBridge All parameters are optional and only the ones specified are changed. The command always displays the complete configuration after the change Example of command: ZbConfig {"Channel":22,"PanID":"0x1A69","ExtPanID":"0xDDCCCCCCCCCCCCCC","KeyL":"0xFF0D0B0907050301","KeyH":"0xED0C0A0806040200"} The following command creates a highly secure Network key based on a hardware random generator: ZbConfig {"KeyL":"","KeyH":""}
|
|
Текст ячейки |
ZbDeviceTopic SetOption89 Configure MQTT topic for Zigbee devices (also see SensorRetain) 0 = single tele/%topic%/SENSOR topic (default) 1 = unique device topic based on Zigbee device ShortAddr Example: tele/Zigbee/5ADF/SENSOR = {"ZbReceived":{"0x5ADF":{"Dimmer":254,"Endpoint":1,"LinkQuality":70}}}
|
|
Текст ячейки |
ZbEndpointSuffix SetOption101 Add Zigbee source endpoint as suffix to attributes 0 = disable (default) 1 = enable e.g. Power3 instead of Power if sent from endpoint 3
|
|
Текст ячейки |
ZbEndpointTopic SetOption120 Add the Zigbee endpoint as suffix in topic when using SetOption89 1 0 = disable (default) 1 = enable
|
|
Текст ячейки |
ZbForget Used for devices that are unused but still visible in ZbStatus <device> = Remove a device from the Tasmota flash memory. It does not un-pair the device nor deleting the device information in the CC2530/ZBBridge.
|
|
Текст ячейки |
ZbLight Sets or reads the light type to be emulated in Zigbee Hue Emulation with Alexa. <device>,<light_type> sets the light type using an integer 0..5 corresponding to the number of channels (from one channel (on/off) to 5 channel (RGBCCT) lights) <device>,-1 removes the device from Philips Hue emulation <device> displays the current status of the Light (Zigbee2Tasmota tracks all changes to the light)
|
|
Текст ячейки |
ZbListen (EZSP ZBBridge only)Listens to a multicast group address. By default EZSP will not report group messages unless you subscribe to the group. <x>: slot in the array of group addresses, 1..15 <group>: group address to listen to, 0..0xFFFF At start-up, Z2T automatically listens to group 0 in slot 0. CC2530 does not need this command and always report all group messages
|
|
Текст ячейки |
ZbLeave <device> = request a device to leave the network. If the device is offline or sleeping, this will have no effect. It is not 100% guaranteed that the device will never connect again
|
|
Текст ячейки |
ZbLoad <file>.zb = load Zigbee definition file
|
|
Текст ячейки |
ZbLoadDump <file>.zb = dump Zigbee definition file contents to console
|
|
Текст ячейки |
ZbInfo <device> = display all information known about a device, equivalent to ZbStatus3 with a simpler JSON output
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |
|
|
Текст ячейки |