P1 meter - how to get gas in kWh

Hi everyone,

I just configured my energy dashboard with sensors coming from the Home Wizard P1 meter.
2022-03-01_15-49-43

Now I’m wondering:

  1. is it possible to create a sensor that recalculates the m3 to kWh? From my distributor, I have the factor 1m3 = 10,2346 Kwh

  2. is it possible to show on (2) the total kWh, thus the sum of energy of electricity and gas?

looking forward to this!
Kind regards,
Bart

For the record:

added following sensor to my config


template:
  - sensor:
      - name: "P1 meter Total Gas kWh"
        unique_id: "sensor.p1_meter_total_gas_kwh"
        icon: mdi:gas-cylinder
        unit_of_measurement: "kWh"
        device_class: energy
        state_class: total_increasing
        state: >
          {% set gasm3 = states('sensor.p1_meter_total_gas') | float %}
          {{ (gasm3  * 10.2346) | round(2, default=0) }}

and measurements are coming in kWh:
2022-03-02_18-06-27

So far so good.
Does anybody know how I can display the SUM of gas + electricity at “home”?

grtz
B

1 Like