To use the Swisscom Smart Switch without the Home App follow these steps.
- Plugin Switch and connect to the generic Wifi "
Switch-XXXXXX
" (last 6 digits from the MAC-Address)
- Check connection and open
192.168.254.1
in your Browser, you should see the status Page.
- Open your Terminal and POST the request with your credentials:
curl --location --request POST '192.168.254.1/api/v1/connect' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-raw '{
"ssid": "<YOUR-WIFI-SSID>",
"passwd": "<YOUR-WIFI-PASSWORD>"
}'
- After a few second your Smart Switch is available in your Network.
- If you set the params
ip
,dns
,gw
andmask
you can also define a fixed ip
You can test the connection with a simple status request:
curl --location --request GET '<SMART-SWITCH-IP>/api/v1/info'
The MyStrom API should mostly be available for the Smart Switch (except the sensor and power meter).