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 configuration
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
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 |
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
}