Shelly IR Controller
Shelly IR Controller Gen4 is an infrared repeater device that can learn, store, and transmit IR codes. It supports managing multiple IR devices (remotes) and their individual codes (buttons) as dynamic components.
The following components are available in Shelly IR Controller Gen4:
- System
- WiFi
- Bluetooth Low Energy
- Cloud
- MQTT
- Outbound Websocket
- IR (manager,
ir:0) - IRDevice (dynamic,
irdevice:<id>) - IRCode (dynamic,
ircode:<id>) - IR_UI
- Virtual components
- BTHome components (not available in Zigbee mode)
- Up to 10 instances of Script
- Zigbee (available as alternative firmware)
IR_UI
The IR_UI component handles the settings of a Shelly IR Controller Gen4 device's LED indications of IR code actions.
Methods
IR_UI.SetConfig
Parameters:
| Property | Type | Description |
|---|---|---|
| object | Configuration that the method takes |
Find more about the config properties in config section
IR_UI.GetConfig
Find the IR_UI.GetConfig response properties in config section
IR_UI.GetStatus
Find more about the status response properties in status section
Configuration
The configuration of the IR_UI component allows you to enable or disable each LED indication of IR code actions and set its color and brightness.
| Property | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| object | LED indications of IR code actions
|
Status
The IR_UI component does not own any status properties.
Examples
IR_UI.GetStatus example
- IR_UI.GetStatus HTTP GET Request
- IR_UI.GetStatus Curl Request
- IR_UI.GetStatus Mos Request
http://192.168.33.1/rpc/IR_UI.GetStatus
curl -X POST -d '{"id":1,"method":"IR_UI.GetStatus"}' http://${SHELLY}/rpc
mos --port ${PORT} call IR_UI.GetStatus
Response
- IR_UI.GetStatus HTTP GET Response
- IR_UI.GetStatus Curl Response
- IR_UI.GetStatus Mos Response
{}
{
"id": 1,
"params": {}
}
{}
IR_UI.GetConfig example
- IR_UI.GetConfig HTTP GET Request
- IR_UI.GetConfig Curl Request
- IR_UI.GetConfig Mos Request
http://192.168.33.1/rpc/IR_UI.GetConfig
curl -X POST -d '{"id":1,"method":"IR_UI.GetConfig"}' http://${SHELLY}/rpc
mos --port ${PORT} call IR_UI.GetConfig
Response
- IR_UI.GetConfig HTTP GET Response
- IR_UI.GetConfig Curl Response
- IR_UI.GetConfig Mos Response
{
"indications": {
"learning_started": {
"enable": true,
"brightness": 100,
"rgb": [
255,
255,
255
]
},
"code_saved": {
"enable": true,
"brightness": 100,
"rgb": [
0,
255,
0
]
},
"learning_timeout": {
"enable": true,
"brightness": 100,
"rgb": [
255,
0,
0
]
},
"learning_stopped": {
"enable": true,
"brightness": 100,
"rgb": [
255,
0,
0
]
},
"code_emitted": {
"enable": true,
"brightness": 100,
"rgb": [
255,
255,
255
]
}
}
}
{
"id": 1,
"params": {
"indications": {
"learning_started": {
"enable": true,
"brightness": 100,
"rgb": [
255,
255,
255
]
},
"code_saved": {
"enable": true,
"brightness": 100,
"rgb": [
0,
255,
0
]
},
"learning_timeout": {
"enable": true,
"brightness": 100,
"rgb": [
255,
0,
0
]
},
"learning_stopped": {
"enable": true,
"brightness": 100,
"rgb": [
255,
0,
0
]
},
"code_emitted": {
"enable": true,
"brightness": 100,
"rgb": [
255,
255,
255
]
}
}
}
}
{
"indications": {
"learning_started": {
"enable": true,
"brightness": 100,
"rgb": [
255,
255,
255
]
},
"code_saved": {
"enable": true,
"brightness": 100,
"rgb": [
0,
255,
0
]
},
"learning_timeout": {
"enable": true,
"brightness": 100,
"rgb": [
255,
0,
0
]
},
"learning_stopped": {
"enable": true,
"brightness": 100,
"rgb": [
255,
0,
0
]
},
"code_emitted": {
"enable": true,
"brightness": 100,
"rgb": [
255,
255,
255
]
}
}
}
IR_UI.SetConfig example
- IR_UI.SetConfig HTTP GET Request
- IR_UI.SetConfig Curl Request
- IR_UI.SetConfig Mos Request
http://192.168.33.1/rpc/IR_UI.SetConfig?config={"indications":{"code_saved":{"brightness":50,"rgb":[0,0,255]},"code_emitted":{"enable":false}}}
curl -X POST -d '{"id":1,"method":"IR_UI.SetConfig","params":{"config":{"indications":{"code_saved":{"brightness":50,"rgb":[0,0,255]},"code_emitted":{"enable":false}}}}}' http://${SHELLY}/rpc
mos --port ${PORT} call IR_UI.SetConfig '{"config":{"indications":{"code_saved":{"brightness":50,"rgb":[0,0,255]},"code_emitted":{"enable":false}}}}'
Response
- IR_UI.SetConfig HTTP GET Response
- IR_UI.SetConfig Curl Response
- IR_UI.SetConfig Mos Response
{
"restart_required": false
}
{
"id": 1,
"params": {
"restart_required": false
}
}
{
"restart_required": false
}