Mah support on energy dashboard

I use some Gira KNX switches wich have powermesurement on board.
i already have them in a graph. but they are on Mah (Milli Ampere Hour) instead of watt.

I am currently looking to make a shadow entity wich use the voltage sensor of the ups and the KNX sensor “(MaH*1000)*Voltage” and for sure this shouldn’t be that hard. however it would be nice if it is intergrated in the gui.

Adding template sensors to the GUI has been asked for previously so I am closing this as a duplicate.

Feel free to vote here: Add and edit template entities through helper entities page

To solve your request in the meantime you can create a template sensor like this:

template:
  - sensor:
      - name: "Gira Switch Power"
        unit_of_measurement: "W"
        device_class: power
        state_class: measurement
        state: "{{ states('sensor.your_mah_sensor_here')|float(0) * states('sensor.your_voltage_sensor_here')|float(0) * 1000 }}"
        availability: "{{ states('sensor.your_mah_sensor_here')|is_number and states('sensor.your_voltage_sensor_here')|is_number }}"

Also, the Energy dashboard does not support Power sensors.

2 Likes