Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Shelly http commands to set up new shelly device
- //
- // replace square bracket names with your network specific values
- // values in Square brackets are variables what need to change per device
- // shelly-name
- // shelly-ip
- // ...and few more...
- //
- // set shelly device to power and join device provided SSID (e.g. shelly-A3D1B8)
- // call commands row by row, wait a moment after each call
- // device basic config
- http://192.168.33.1/rpc/Sys.SetConfig?config={"device":{"name":"[devie-name]"}}
- http://192.168.33.1/rpc/MQTT.SetConfig?config={"enable":true,"server":"[srv-ip]:1883","user":"mqtt-user","pass":"[mqtt-pass]","client_id":"[device-client_id]","topic_prefix":"[device-topic]","rpc_ntf":true,"status_ntf":true}
- http://192.168.33.1/rpc/Sys.SetConfig?config={"location":{"tz":"[your/timezone]"","lat":[latitude],"lon":[longitude]},"sntp":{"server":"[ntp-local]"}}
- // if want to keep std device name as device ID & Device topic
- http://192.168.33.1/rpc/MQTT.SetConfig?config={"enable":true,"server":"[srv-ip]:1883","user":"mqtt-user","pass":"[mqtt-pass]","rpc_ntf":true,"status_ntf":true}
- http://192.168.33.1/rpc/WiFi.SetConfig?config={"sta":{"ssid":"[wifi-SSID]","pass":"[wifi-pass]","enable":true,"ipv4mode":"static","ip":"[shelly-ip]","netmask":"[mask]","gw":"[gw-ip]","nameserver":"[dns-ip]"}}
- http://192.168.33.1/rpc/Shelly.Reboot
- // addition if want rename relay & input channel names
- http://192.168.33.1/rpc/Switch.SetConfig?id=0&config={"name":"[relay-name]"} #change id=0 according channel 0-3
- http://192.168.33.1/rpc/Input.SetConfig?id=0&config={"name":"[input-name]"} #change id=0 according channel 0-3
- // auto reboot every 3 days at time 5:11 adjust that accordingly
- http://192.168.33.1/rpc/Schedule.Create?timespec="0 11 5 1/3 * *"&calls=[{"method":"Shelly.Reboot","origin":"shelly_service"}]
- http://[shelly-ip]/rpc/Shelly.CheckForUpdate
- http://[shelly-ip]/rpc/Shelly.Update
- http://[shelly-ip]/rpc/Shelly.Update?stage="beta"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement