Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.2 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.2 KB

Swisscom Smart Switch

To use the Swisscom Smart Switch without the Home App follow these steps.

Installation

  • Plugin Switch and connect to the generic Wifi "Switch-XXXXXX" (last 6 digits from the MAC-Address)

connect

  • Check connection and open 192.168.254.1 in your Browser, you should see the status Page.

browser

  • 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 and mask 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'

status

API

The MyStrom API should mostly be available for the Smart Switch (except the sensor and power meter).

https://api.mystrom.ch/#