mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-03 17:48:59 +00:00
1.1 KiB
1.1 KiB
layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category
layout | title | description | date | sidebar | comments | sharing | footer | logo | ha_category |
---|---|---|---|---|---|---|---|---|---|
page | myStrom Switch | Instructions how to integrate myStrom switches into Home Assistant. | 2015-11-25 22:00 | true | false | true | true | mystrom.png | Switch |
The mystrom
switch platform allows you to control the state of your myStrom switches. The built-in sensor is measuring the power consumption while the switch is on.
To use your myStrom switch in your installation, add the following to your configuration.yaml
file:
# Example configuration.yaml entry
switch:
platform: mystrom
host: IP_ADRRESS
name: MyStrom Switch
Configuration variables:
- host (Required): The IP address of your myStrom switch, eg. http://192.168.1.32
- name (Optional): The name to use when displaying this switch.
Check if you are able to access the device located at http://IP_ADRRESS
. The details about your switch is provided as a JSON response.
$ curl -X GET http://IP_ADDRESS/report
{
"power": 0,
"relay": false
}
or change its state:
$ curl -G -X GET http://IP_ADDRESS/relay -d 'state=1'