Shelly BLU Gateway
note
This device has reached feature freeze as of firmware 1.7.x. It will continue to receive critical bug fixes. See Firmware Update Policy for details.
The following components are available:
- System
- WiFi
- Bluetooth Low Energy
- Cloud
- MQTT
- Outbound Websocket
- Up to 10 instances of Script
- BluGw
BluGw
The BluGw component handles device-specific settings.
Methods
BluGw.SetConfig
Parameters:
| Property | Type | Description |
|---|---|---|
| object | Configuration that the method takes |
Find more about the config properties in config section
BluGw.GetConfig
Find more about the config properties in config section
BluGw.GetStatus
The BluGw component does not own any status properties.
Configuration
| Property | Type | Description |
|---|---|---|
| boolean | Enable or disable system LED. |
info
The system LED lights up for 3 seconds to reflect network status changes even when sys_led_enable is set to false.
Examples
BluGw.GetStatus example
- BluGw.GetStatus HTTP GET Request
- BluGw.GetStatus Curl Request
- BluGw.GetStatus Mos Request
http://192.168.33.1/rpc/BluGw.GetStatus
curl -X POST -d '{"id":1,"method":"BluGw.GetStatus"}' http://${SHELLY}/rpc
mos --port ${PORT} call BluGw.GetStatus
Response
- BluGw.GetStatus HTTP GET Response
- BluGw.GetStatus Curl Response
- BluGw.GetStatus Mos Response
{}
{
"id": 1,
"params": {}
}
{}
BluGw.GetConfig example
- BluGw.GetConfig HTTP GET Request
- BluGw.GetConfig Curl Request
- BluGw.GetConfig Mos Request
http://192.168.33.1/rpc/BluGw.GetConfig
curl -X POST -d '{"id":1,"method":"BluGw.GetConfig"}' http://${SHELLY}/rpc
mos --port ${PORT} call BluGw.GetConfig
Response
- BluGw.GetConfig HTTP GET Response
- BluGw.GetConfig Curl Response
- BluGw.GetConfig Mos Response
{
"sys_led_enable": true
}
{
"id": 1,
"params": {
"sys_led_enable": true
}
}
{
"sys_led_enable": true
}
BluGw.SetConfig example
- BluGw.SetConfig HTTP GET Request
- BluGw.SetConfig Curl Request
- BluGw.SetConfig Mos Request
http://192.168.33.1/rpc/BluGw.SetConfig?config={"sys_led_enable":false}
curl -X POST -d '{"id":1,"method":"BluGw.SetConfig","params":{"config":{"sys_led_enable":false}}}' http://${SHELLY}/rpc
mos --port ${PORT} call BluGw.SetConfig '{"config":{"sys_led_enable":false}}'
Response
- BluGw.SetConfig HTTP GET Response
- BluGw.SetConfig Curl Response
- BluGw.SetConfig Mos Response
{
"restart_required": false
}
{
"id": 1,
"params": {
"restart_required": false
}
}
{
"restart_required": false
}