Shelly Cloud Api Access
Shelly Cloud Api Access
Shelly Cloud Api Access
We have added a secure external API to the Shelly cloud, something many
customers have requested. This will allow 3rd party programs which you
authorize to control your Shelly devices from anywhere through the Shelly cloud.
1. To use 3rd party cloud API you must to create account in Shelly cloud App or
http://my.shelly.cloud
Important:
API is limited to 1 request per second at the moment. For professional or comercial usage contact
Shelly Team.
How to generate auth_key in Shelly APP:
Login in to Shelly APP, go to User Settings. Click on auth_key. Copy and paste the
CloudKey. Copy and paste your server location link
IMPORTANT:
Do not show this auth_key and/or server location to anyone, if anyone else has it, they can
control your devices!
If you change your account password, the auth_key will be changed too.
You can execute commands using cloud Key and change ANY device settings.
Example:
Check device status
Keys:
channel=[channel number] - you can check the channel from
Settings->Device informationkey
turn=[command]
id=[deviceID] - you can check the channel from Settings->Device informationkey
auth_key=[auth_key]
Where:
channel number: 0-3 (0 i channel 1, 3 is channel 4)
commands:on or off
deviceID: device id which you want to control. You can copy it from Settings ->
Device info
auth_key: The key which you copy paste from your accoun
Example:
Example:
The syntax of the command for open and close by percentage is:
Keys:
pos=[value]
id=[deviceID] - you can check the channel from Settings->Device information
auth_key=[auth_key]
Where:
pos value: 0-100
deviceID: device id which you want to control. You can copy it from Settings ->
Device info auth_key: The key which you copy paste from your account.
Example:
Open/Close by percentage
Examples:
Turn device ON with last set values
To control Shelly devices from IFTTT you need to set Webhook as result of the
conditions.
In URL you need to enter the https://[server location link]/[device specific
link]Method:POST
Content type: application/x-www-form-urlencoded
Body: all device specific parameters with “&” between them.
Example:
Webhook example
Bulk control
You can control multiple devices from cloud with just one command.
Devices must be from same type, only relays or roller shutters.
Example:
IFTT Example:
Content type: application/x-www-form-urlencoded
Body:
turn=on&devices=[{"id":"8015a3","channel":"1"},{"id":"8015a3","channel":0},{"id":"c368
2a","channel":0"}] &auth_key=lkjd983jijf0430fj430f430fj...