Zigbee
The Zigbee component handles Zigbee connectivity services of a device. The Zigbee component uses Zigbee
as RPC namespace. It handles the Zigbee services of a device and provides the minimal component interface:
Zigbee.GetConfig
to obtain the component's configurationZigbee.SetConfig
to update the component's configurationZigbee.GetStatus
to obtain the the component's statusZigbee.StartNetworkSteering
to start network steering
Methods
Zigbee.SetConfig
Properties:
Property | Type | Description |
---|---|---|
| object | Configuration that the method takes |
Find more about the config properties in config section
Zigbee.GetConfig
Find the Zigbee.GetConfig response properties in config section
Zigbee.GetStatus
Find more about the status response properties in status section
Zigbee.StartNetworkSteering
This method triggers network steering.
Request
This method takes no parameters.
Response
This method returns no attributes.
Configuration
The configuration of the Zigbee component allows enabling or disabling the Zigbee connectivity.
Properties:
Property | Type | Description |
---|---|---|
| boolean | True if Zigbee connectivity is enabled, false otherwise |
Status
The status of the Zigbee component contains information about the state of the Zigbee connection of the device.
Properties:
Property | Type | Description |
---|---|---|
| string | Status of the connection. Range of values: |
Zigbee.SetConfig example
- Zigbee.SetConfig HTTP GET Request
- Zigbee.SetConfig Curl Request
- Zigbee.SetConfig Mos Request
http://192.168.33.1/rpc/Zigbee.SetConfig?config={"enable":false}
curl -X POST -d '{"id":1,"method":"Zigbee.SetConfig","params":{"config":{"enable":false}}}' http://${SHELLY}/rpc
mos --port ${PORT} call Zigbee.SetConfig '{"config":{"enable":false}}'
Response
- Zigbee.SetConfig HTTP GET Response
- Zigbee.SetConfig Curl Response
- Zigbee.SetConfig Mos Response
{
"restart_required": true
}
{
"id": 1,
"src": "shelly1g4-404cca4a9f98",
"params": {
"restart_required": true
}
}
{
"restart_required": true
}
Zigbee.GetConfig example
- Zigbee.GetConfig HTTP GET Request
- Zigbee.GetConfig Curl Request
- Zigbee.GetConfig Mos Request
http://192.168.33.1/rpc/Zigbee.GetConfig
curl -X POST -d '{"id":1,"method":"Zigbee.GetConfig"}' http://${SHELLY}/rpc
mos --port ${PORT} call Zigbee.GetConfig
Response
- Zigbee.GetConfig HTTP GET Response
- Zigbee.GetConfig Curl Response
- Zigbee.GetConfig Mos Response
{
"enable": true
}
{
"id": 1,
"src": "shelly1g4-404cca4a9f98",
"params": {
"enable": true
}
}
{
"enable": true
}
Zigbee.GetStatus example
- Zigbee.GetStatus HTTP GET Request
- Zigbee.GetStatus Curl Request
- Zigbee.GetStatus Mos Request
http://192.168.33.1/rpc/Zigbee.GetStatus
curl -X POST -d '{"id":1,"method":"Zigbee.GetStatus"}' http://${SHELLY}/rpc
mos --port ${PORT} call Zigbee.GetStatus
Response
- Zigbee.GetStatus HTTP GET Response
- Zigbee.GetStatus Curl Response
- Zigbee.GetStatus Mos Response
{
"network_state": "joined"
}
{
"id": 1,
"src": "shelly1g4-404cca4a9f98",
"params": {
"network_state": "joined"
}
}
{
"network_state": "joined"
}
Zigbee.StartNetworkSteering example
- Zigbee.StartNetworkSteering HTTP GET Request
- Zigbee.StartNetworkSteering Curl Request
- Zigbee.StartNetworkSteering Mos Request
http://192.168.33.1/rpc/Zigbee.StartNetworkSteering
curl -X POST -d '{"id":1,"method":"Zigbee.StartNetworkSteering"}' http://${SHELLY}/rpc
mos --port ${PORT} call Zigbee.StartNetworkSteering
Response
- Zigbee.StartNetworkSteering HTTP GET Response
- Zigbee.StartNetworkSteering Curl Response
- Zigbee.StartNetworkSteering Mos Response
null
{
"id": 1,
"src": "shelly1g4-404cca4a9f98",
"params": null
}
null