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 api/v1/scan[?ssid=<STR 1..32>]
POST api/v1/download?path=<STR 1..127>&sum=<STR 40..40>
- 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.