Hildebrandglow - Smart Meters - SMETS2

It’s odd that we are all experiencing issues around the same time - might be indicative of wider issues at the DCC

Thank you HandyHat - the integration here has really sparked my interest along with the new energy features in the later versions of HA. Really appreciate the work. I was using some pretty shakey custom stuff direct with my suppliers API and this is a massive improvement, and the integration with the energy features is great.

Do you have plans in the future to adjust the integration to support the new gas consumption feature supported in the latest release?

Just to chip into to the latest round of data issues - I also had the data drop from the integration on the 27th, around 6pm BST - the last data logged in HA was the 6pm dataset. Prior to that things worked fine for 7 days, after I installed the updated version in the new repo.

To spice things up however, Bright continued to report throughout, and I am also with Octopus. Didn’t check the API with those guys but feels safe to assume my data would be available.

I did an integration re-install / reauth this morning after noticing the energy data was missing and catching up on this thread, and everything seems to have gone back to normal - so clearly I am not experiencing the same issue as some of you folks.

1 Like

@HandyHat My data has disappeared again as of 20:00 on 2/9/21. At that point I’d not updated to 2021.09.0. I waited for the reboot issues to be resolved and updated to 2021.09.1 this morning. After upgrade I’ve updated the Integration to the newest version (0.5.3 I think) and re-authenticed. It’s currently showing no consumption, but it normally takes a coupe of hours to start showing, but its not unknown so looking promising, fingers crossed.

@HandyHat just installed the latest version via HACS. I can add the gas sensor, but only under the Electricity option, it’s not appearing as a sensor for Gas Consumption. Do I need to change something elsewhere?

I think this is because the units are kWh for both, but it needs to be m3 to be recognised as gas.

I had a quick look at the code but don’t know how to change this!

Good spot. It might not be a simple case of converting one to the other.

I just added a suggestion on githib (https://github.com/HandyHat/ha-hildebrandglow-dcc/issues/17) with the equation to convert from kWh to M3.

[gas kWh] * 3.6 / 40 / 1.02264 = approx [gas M3]

I’m new to home assistant so don’t know where/how to put this in. I think it can be done in yaml to create a new sensor?

This looks good! You can probably create a template sensor to give you the value you need.

Any advice? I think it needs to be a statistics sensor to show?

I’ve tried this and it’s not working

sensor:
  - platform: template
    sensors:
      gas_in_m3:
        unit_of_measurement: 'm3'
        value_template: "{{ states('sensor.gas_consumption_today') | float * 3.6 / 40 / 1.02264 }}"

It shows in developer tools but doesn’t show in the energy dashboard.

Have a look at my config here

I got mine finally working yesterday but I do have the Hildebrand IHD and pull my data via MQTT.

1 Like

@HandyHat The integration remains active but is reporting zero consumption. I checked the Bright App and it also is reporting zero consumption, so I think there is an issue elsewhere.

I’ve got it working.

I added the following to my configuration.yaml:

template:
  sensor:
    - name: Gas Consumption
      unit_of_measurement: 'm³'
      state: "{{ states('sensor.gas_consumption_today') | float * 3.6 / 40 / 1.02264 }}"
      icon: 'mdi:fire'
      state_class: total_increasing
      device_class: gas
3 Likes

Thanks, I’ve got it working using this as well, well I say I think I have as my readings have stopped appearing on Bright but I think it’s an issue with my meters not reporting the reads…

Thanks for this @HandyHat. Deleted and reinstalled the integration and all worked fine again

Hi Guys
I have this working, but my gas readings seem to be the same every hour. It looks like its not clearing out a variable at the beginning of each hour.

anyone else see this

Electric looks fine though

cheers
Mike C

I really stuggled with this one.

The electricity consumption added fine when the energy panel was introduced after adding the last_reset for the sensor in the customize.yaml. With gas appearing with the new update I tried adding the gas sensor but to got “no matching statistics found”.

My sensor was as follows:

  - platform: mqtt
    name: "Home Gas"
    icon: mdi:fire
    state_topic: "SMART/HILD/xxxxxxxxxxxx"
    value_template: "{{ value_json['gasMtr']['0702']['00']['00']|int(base=16) * value_json['gasMtr']['0702']['03']['01']|int(base=16) / value_json['gasMtr']['0702']['03']['02']|int(base=16) }}"
    unit_of_measurement: "m³"
    state_class: measurement
    device_class: gas

This sensor also has the last_reset set in the customize.yaml

So I switched the state_class to total_measurement, and nothing. Everything seemed to match what others had set and it simply will not see it. I tried so many different combinations of settings and nothing would work. I ended up editing the config/.storage/energy file to add the source in manually and now it’s showing up. Not using much gas atm so will hopefully see it rise this evening once the water heats up.

I have the same problem. It might be because the sensor were getting the data from is cumulative for the day.

I’m also struggling to get this to work, everything I see is for Mqtt which I don’t use.

Make sure you set the state_class to total_increasing, the device_class to gas and have the correct unit of measurement (m³ not M3)

unit_of_measurement: m³
friendly_name: Approx gas in m3
device_class: gas
state_class: total_increasing