myStrom
There is currently support for the following device types within Home Assistant:
Lights and switches
The myStrom integration集成将 Home Assistant 与您的设备、服务等连接和集成。 [Learn more] allows you to control your myStrom
Supported devices are:
- Switch CH v1 (101)
- Bulb (102)
- LED strip (105)
- Switch CH v2 (106)
- Switch EU (107)
- Switch Zero (120)
Two sensors are available for switches:
- Temperature
- Energy consumption
配置
要将 myStrom integration 添加到您的 Home Assistant 实例中,请使用此 My 按钮:
手动配置步骤
如果上述 My 按钮不起作用,您也可以手动执行以下步骤:
-
浏览到您的 Home Assistant 实例。
-
转到
设置 > 设备与服务。 -
在右下角,选择
Add Integration 按钮。 -
从列表中选择 myStrom。
-
按照屏幕上的说明完成设置。
Check if you are able to access the light located at IP_ADRRESS
. The details about your light is provided as a JSON response.
$ curl http://[IP_ADDRESS]/api/v1/device/[MAC_ADDRESS]
{
"MAC_ADDRESS": {
"type": "rgblamp",
"battery": false,
"reachable": true,
"meshroot": false,
"on": true,
"color": "0;0;100",
"mode": "hsv",
"ramp": 409,
"power": 5.1,
"fw_version": "2.25"
}
}
Binary sensor
The mystrom
binary sensor platform allows you to use myStrom Wifi Buttons
-
single
: Short push (approx. 1/2 seconds) -
double
: 2x sequential short pushes (within 2 seconds) -
long
: Long push (approx. 2 seconds) -
touch
: Touch of the button’s surface (only affective for WiFi Button +)
The first usage of the pattern will create the binary sensor for the pattern. If the WiFi Button is pushed one time then a binary sensor for the single
pattern will be created. The same applies for the other patterns. With the second usage of the pattern the binary sensors become fully functional.
The buttons will give you feedback with its built-in LED:
- white then green: Pattern was submitted successfully
- white then red: There is a problem with the communication
To use your myStrom WiFi Button in your installation, add the following to your configuration.yaml
configuration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] file.
在更改了configuration.yaml
configuration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] 文件后,重启 Home Assistant 以应用更改。 该集成现在显示在集成页面的 设置 > 设备与服务 下。其实体在集成卡片上以及实体标签上列出。
# Example configuration.yaml entry
binary_sensor:
- platform: mystrom
The firmware version 2.56 doesn’t support TLS/SSL. This means that you are only able to use the WiFi Buttons if you are using plain-text communication between Home Assistant and the clients/entities.