Smart Switch developer mode:
If you do not want to control the switch via the Home App but via REST API, the developer mode can be switched on in the Home App. Attention: Activating this mode reduces the security of the Swisscom Smart Switch.
List of API REST calls:
POST relay/<ENUM off|on|toggle>
GET relay?state=<UINT 0..1>
GET relay
GET report
GET toggle
POST api/v1/reboot
POST api/v1/action/button
GET api/v1/action/button
GET help
GET info
GET api/v1/scan[?ssid=<STR 1..32>]
POST api/v1/connect
GET api/v1/info
GET api/v1/ip
POST api/v1/wps
GET api/v1/panel
POST api/v1/panel
GET api/v1/settings
POST api/v1/settings
POST api/v1/download?path=<STR 1..127>&sum=<STR 40..40>
GET api/v1/name
POST api/v1/name
POST load
Notes:
- The "POST load" request allows uploading the FW image using form the upload method and there is no SHA1 verification, but the FW integrity is still checked.
- The "POST/GET api/v1/action/button" requests allow setting/getting callback URL that is called when the button is pressed, however the internet-box does not use this API.
- The "GET help" request shows the list above.