Skip to main content
Version: 1.0

Shelly UART Add-On

UART add-on provides RPC communication over UART bus to extend the device functionality, having external add-on plugged to Shelly device serial interface.
Currently Shelly LoRa add-on is supported.

Methods

AddOn.GetInfo

Find the request and response properties in GetInfo section

AddOn.CheckForUpdate

Find the request and response properties in CheckForUpdate section

AddOn.Update

Find more about request properties in Update section

GetInfo

The method gets information about plugged add-on.

Request

The method takes no parameters.

Response

Attributes in the result (only the ones available are shown):

Properties:

PropertyTypeDescription

type

string

Plugged add-on's type for example LoRa

hw_ver

string

Add-on's hardware revision

fw_ver

string

Add-on's firmware version

GetInfo: AddOn.GetInfo Example

CheckForUpdate

The method checks for new firmware version of the plugged add-on and returns information about it. If no update is available returns null as a result.

Request

The method takes no parameters.

Response

Attributes in the result (only the ones available are shown):

PropertyTypeDescription

available_updates

object

Information about available updates. This information is automatically updated every 24 hours.

PropertyTypeDescription

type

string

Plugged add-on's type for example LoRa

PropertyTypeDescription

stable

object

Shown only if stable update is available

PropertyTypeDescription

version

string

Version of the new firmware

CheckForUpdate: AddOn.CheckForUpdate Example

Update

The method updates the firmware version of the plugged add-on.

Request

PropertyTypeDescription

timeout

number

Timeout for firmware update attempts,default is 300 miliseconds. optional

url

string

Url address of the update. optional

Update: AddOn.Update Example

Examples

AddOn.GetInfo Example

http://192.168.33.1/rpc/AddOn.GetInfo

Response

{
"type": "LoRa",
"hw_ver": "1.2.0",
"fw_ver": "1.9.0"
}

AddOn.CheckForUpdate Example

http://192.168.33.1/rpc/AddOn.CheckForUpdate

Response

{
"available_updates": {
"type": "LoRa",
"stable": {
"version": "1.9.0"
}
}
}

AddOn.Update Example

http://192.168.33.1/rpc/AddOn.Update?timeout=600