2020-09-21 01:58:32 +02:00
# myStrom Binding
2022-08-09 16:03:29 +02:00
This extension adds support for the myStrom devices.
As of today only the Smart Plug, Bulb and the Motionsensor are implemented.
2020-09-21 01:58:32 +02:00
## Supported Things
This bundle adds the following thing types:
2022-08-09 16:03:29 +02:00
| Thing | ThingTypeID | Description |
| ----------------------| ----------- | -------------------------------------------------- |
| myStrom Smart Plug | mystromplug | A myStrom smart plug |
| myStrom Bulb | mystrombulb | A myStrom bulb |
2022-08-26 22:32:33 +02:00
| myStrom Motion Sensor | mystrompir | A myStrom PIR motion sensor |
2021-02-23 23:33:12 +01:00
According to the myStrom API documentation all request specific to the myStrom Bulb are also work on the LED strip.
2020-09-21 01:58:32 +02:00
## Discovery
This extension does not support autodiscovery. The things need to be added manually.
## Thing Configuration
The following parameters are valid for all thing types:
| Parameter | Type | Required | Default if omitted | Description |
| --------- | ------- | -------- | ------------------ | -------------------------------------------------------------------------- |
| hostname | string | yes | localhost | The IP address or hostname of the myStrom smart plug |
| refresh | integer | no | 10 | Poll interval in seconds. Increase this if you encounter connection errors |
2022-08-09 16:03:29 +02:00
| apiToken | string | no | | Specifies the API Token, if required. |
2020-09-21 01:58:32 +02:00
2021-02-23 23:33:12 +01:00
## Properties
In addition to the configuration a myStrom thing has the following properties.
The properties are updated during initialize.
Disabling/enabling the thing can be used to update the properties.
| Property-Name | Description |
| ------------- | --------------------------------------------------------------------- |
| version | Current firmware version |
| type | The type of the device (i.e. bulb = 102) |
| ssid | SSID of the currently connected network |
| ip | Current ip address |
| mask | Mask of the current network |
| gateway | Gateway of the current network |
| dns | DNS of the current network |
| static | Whether or not the ip address is static |
| connected | Whether or not the device is connected to the internet |
| mac | The mac address of the bridge in upper case letters without delimiter |
2020-09-21 01:58:32 +02:00
## Channels
2023-07-31 23:08:45 +02:00
| Channel ID | Item Type | Read only | Description | Thing types supporting this channel |
|---------------------------------|--------------------|-----------|---------------------------------------------------------------------------------------------------|------------------------------------|
| switch | Switch | false | Turn the device on or off | mystromplug, mystrombulb |
| power | Number:Power | true | The currently delivered power | mystromplug, mystrombulb |
| energy-consumed-since-last-call | Number:Energy | true | The watt seconds / Energy consumed since last call. Useful for accurate data logging and analysis | mystromplug |
| temperature | Number:Temperature | true | The temperature at the plug | mystromplug, mystrompir |
| color | Color | false | The color we set the bulb to (mode 'hsv') | mystrombulb |
| colorTemperature | Dimmer | false | The color temperature of the bulb in mode 'mono' (percentage) | mystrombulb |
| brightness | Dimmer | false | The brightness of the bulb in mode 'mono' | mystrombulb |
| ramp | Number:Time | false | Transition time from the light’ s current state to the new state. [ms] | mystrombulb |
| mode | String | false | The color mode we want the Bulb to set to (rgb, hsv or mono) | mystrombulb |
| light | Dimmer | true | The brightness of the Room. | mystrompir |
| motion | Switch | true | Motionstatus of the sensor | mystrompir |
2020-09-21 01:58:32 +02:00
## Full Example
### Thing Configuration
2022-12-08 21:36:05 +01:00
```java
2020-09-21 01:58:32 +02:00
Thing mystrom:mystromplug:d6217a31 "Plug" [hostname="hostname|ip"]
```
### Item Configuration
2022-12-08 21:36:05 +01:00
```java
2023-07-31 23:08:45 +02:00
Switch PlugSwitch "Plug" {channel="mystrom:mystromplug:d6217a31:switch"}
2024-09-28 17:46:53 +02:00
Number:Temperature PlugTemperature "Temperature: [%.1f °C]" {channel="mystrom:mystromplug:d6217a31:temperature"}
2023-07-31 23:08:45 +02:00
Number:Power PlugPower "Power: [%.1f W]" {channel="mystrom:mystromplug:d6217a31:power"}
2024-09-28 17:46:53 +02:00
Number:Energy PlugEnergyConsumedSinceLastCall "Ws: [%.1f Ws]" {channel="mystrom:mystromplug:d6217a31:energy-consumed-since-last-call"}
2020-09-21 01:58:32 +02:00
```
### Sitemap Configuration
2022-12-08 21:36:05 +01:00
```perl
2024-09-28 17:46:53 +02:00
Frame label="myStrom Plug" {
2020-09-21 01:58:32 +02:00
Switch item=PlugSwitch
Text item=PlugTemperature
Text item=PlugPower
}
```