MyStrom Smart Switch in Energy Consumption Overview Page

There are bugs open to Add config flow for mystrom & Add power sensor for MyStrom. Both are waiting for a review by the same person. The power sensor one has been pending since July 2021, I suspect that means people just use workarounds.

For the MyStrom device, one solution could be to just flash it with Tasmota. For that, you have to open it up (needs a triangle screwdriver), solder a USB-TTL converter, and flash from your computer (it’s doable, but not trivial if you haven’t done it before).

To make it work with the REST API, I used the following in the configuration.yaml:

switch:
  - platform: mystrom
    name: mystrom_switch1
    host: 192.168.178.199
        
sensor:
  - platform: rest
    name: "mystrom_power1"
    resource: http://192.168.178.199/report
    method: GET
    unit_of_measurement: W
    device_class: power
    state_class: measurement
    value_template: "{{ value_json.power }}"

  - platform: integration
    source: sensor.mystrom_power1
    name: "mystrom Energy Consumption"
    unit_prefix: k
    round: 3

Note that you have to place them in separate sections - switch & sensor. It checks every 30 seconds.

3 Likes