Shelly
Shelly Plug S
Web Gui Settings
- http://<IP>/
- Settings
- Device Name
- Power on default mode -> On
- Time Zone and Geolocation -> set GPS coordinates (for sunrise and sunset event triggers)
- Eco mode -> On
- Internet & Security
- Wifi Client Backup -> Off
- Restrict login -> set password
API
See API documentation at [1]
See my example code at https://github.com/entorb/shelly-api
Read settings
http://<IP>/settings
Shelly Plus Plug S
Web Gui Settings
- http://<IP>/
- Device info -> Device Name
- Access Point -> Off
- Bluetooth -> Off
- Location and Timezone -> set GPS coordinates (for sunrise and sunset event triggers)
- Eco mode -> On
- Authentication -> Set Password (after LED disable hack via API below)
API
See API documentation at [2]
See my example code at https://github.com/entorb/shelly-api
Read Config
http://<IP>/rpc/PLUGS_UI.GetConfig
Disable LEDs (not working if Authentication is activated)
http://<IP>/rpc/PLUGS_UI.SetConfig?config={%22leds%22:{%22mode%22:%22off%22}}
MQTT, InfluxDB and Graphana
see https://github.com/entorb/raspi-sensorics/blob/main/mqtt_influx.py
Switch on/off/toggle via MQTT
mosquitto_pub -u mqtt_user -P mqt_pass -t "myPlugName/command/switch:0" -m "on"