MyStrom switch

Has anyone used this switch?

I see there is a component for it but it seems only to be able to switch on/off and measure power consumption. The latest model also can measure temperarure, but as I understand this is not covered in the component. Am iI right?

Yes it can measure the temperature but therefore you need to use templating like this:


  • platform: rest
    name: “Temperatur_Serverraum”
    resource: http://192…168.1.240/temp
    value_template: ‘{{ value_json.compensated | round(1) }}’
    unit_of_measurement: “°C”

Hope it helps :slight_smile:

1 Like

Good evening,

I am trying my luck in this thread, when using the mystrom integration for the switch, all that is being created is an entity, shouldn’t it create a device as well with possibly additional entities for the temperature and power consumption or does this need to be done manually?


The HA mystrom integration is old, so it has to be done manually:

# configuraion.yaml
  - scan_interval: 60
    resource: http://$SWITCH_IP/report
      - name: "Living Room Temp"
        device_class: temperature
        unit_of_measurement: "ºC"
        value_template: "{{ value_json.temperature | round(1) }}"
      - name: "Living Room Consumption"
        device_class: power
        unit_of_measurement: "W"
        value_template: "{{ value_json.power }}"

You can also check the mystrom API docs.

Small typo / fix – it looks like you have the wrong degrees symbol. The HA statistics tab complains :). It works with this:

    unit_of_measurement: "°C"