Skip to main content
Version: 1.0

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:

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:

PropertyTypeDescription

config

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.

PropertyTypeDescription

indications

object

LED indications of IR code actions





PropertyTypeDescription

learning_started

object

LED indication when learning of an IR code starts

PropertyTypeDescription

enable

boolean

Enable or disable the LED indication

brightness

number

Value for brightness [1-100]

rgb

array of numbers

Value for red, green and blue [0-255]

code_saved

object

LED indication when a learned IR code is saved

PropertyTypeDescription

enable

boolean

Enable or disable the LED indication

brightness

number

Value for brightness [1-100]

rgb

array of numbers

Value for red, green and blue [0-255]

learning_timeout

object

LED indication when learning of an IR code times out

PropertyTypeDescription

enable

boolean

Enable or disable the LED indication

brightness

number

Value for brightness [1-100]

rgb

array of numbers

Value for red, green and blue [0-255]

learning_stopped

object

LED indication when learning of an IR code is stopped by the user

PropertyTypeDescription

enable

boolean

Enable or disable the LED indication

brightness

number

Value for brightness [1-100]

rgb

array of numbers

Value for red, green and blue [0-255]

code_emitted

object

LED indication when an IR code is emitted

PropertyTypeDescription

enable

boolean

Enable or disable the LED indication

brightness

number

Value for brightness [1-100]

rgb

array of numbers

Value for red, green and blue [0-255]

Status​

The IR_UI component does not own any status properties.

Examples​

IR_UI.GetStatus example​

http://192.168.33.1/rpc/IR_UI.GetStatus

Response

{}

IR_UI.GetConfig example​

http://192.168.33.1/rpc/IR_UI.GetConfig

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

IR_UI.SetConfig example​

http://192.168.33.1/rpc/IR_UI.SetConfig?config={"indications":{"code_saved":{"brightness":50,"rgb":[0,0,255]},"code_emitted":{"enable":false}}}

Response

{
"restart_required": false
}