Skip to content
This repository was archived by the owner on Apr 30, 2022. It is now read-only.

HA Energy Usage Reporting Incorrectly and Gas Meter Entity Unavailable #47

Open
townsmcp opened this issue Dec 26, 2021 · 9 comments
Open

Comments

@townsmcp
Copy link

Last week I bought and had delivered the USB zigbee stick from Hildebrand. I contacted them and have mqtt reporting working.

I have HA 2021.12.5 installed (also tried with 2021.12.3 but was getting the same issues).
I have this repo in HACS (so using the latest version) and tried manually installing 0.2.1-beta but also seeing the issues.

The issues:

  1. Gas consumption entity is showing as unavailable. I am aware the latest beta should fix the issue as reported in Gas Consumption entity has to be manually enabled #46. But I don’t think it has - see pics below.
  2. In Energy dashboard, reporting of electric usage, using the created entity for the HACS install is crazy - usage is not being reported and treated correctly. Where I would expect the amount of electricity consumed by hour, something is going majorly wrong. Rather than say 1kwh used, the readings are something like 50,000 kWh. See pics below.

@unlobito any suggestions on what I’m doing wrong?

This pic is the created entities:
0F98DEB9-E10E-4525-B386-5722D1E35BA6

For Energy dashboard, this pic is what I would expect to see (graphs produced with the Hildebrand DCC HACS install):
E569E191-FF7E-4F2C-ACF8-183D62BDC295

This is what I’m seeing with this repo entities installed for the same time period:
03014753-BAB5-4201-A4E3-73DCB1B70833

@Daibutt
Copy link

Daibutt commented Dec 31, 2021

Hi @townsmcp , what is your elec meter value showing outside of the Energy dashboard? Not the instantaneous, the running total?
I had an issue with my MQTT gas total reading which was dropping out to zero occasionally & when it returned to correct value the HA energy dashboard saw this as actual consumption. (I haven't had this issue with elec import or export though!)
I ended up putting in some code to effectively ignore anything that was below where my meter reading roughly was (42,000kWh in my case);

  • platform: mqtt
    name: "Gas Import Meter MQTT"
    state_topic: "SMART/HILD/XXXXXXXXXXX"
    #last_reset_topic: "SMART/HILD/XXXXXXXXXX"
    last_reset_value_template: homeassistant.util.dt.utc_from_timestamp(0)
    unit_of_measurement: 'kWh'
    device_class: energy
    state_class: total_increasing
    icon: 'mdi:counter'
    value_template: >
    {% if 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) < 42000 %}
    {{ states('sensor.gas_import_meter_mqtt') }}
    {% else %}
    {{ 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) }}
    {% endif %}

@townsmcp
Copy link
Author

@Daibutt ohhhh good question. I would need to check the meter itself, but I reckon you could be spot on - the value showing in the sensor is probably the all time energy consumption.
I have the Hildebrand DCC integration installed which shows correct usage for the day in the dashboard but I love how this integration shows the real time consumption value.
Thanks for sharing you gas template equivalent

@pete-leese
Copy link

Hi, Just received my Glow Stick today and finding myself with the same issue where the Gas consumption is not available.

Has this been resolved?

@craigmcgowan
Copy link

Hi, Just received my Glow Stick today and finding myself with the same issue where the Gas consumption is not available.

Has this been resolved?

I have exactly the same issue so dont believe so..... and I also received my Glow Stick today :)

@townsmcp
Copy link
Author

townsmcp commented Jan 21, 2022

@pete-leese and @craigmcgowan I still never got gas consumption coming through. However if you install the DCC version of the integration you can get that figure.
I didn’t manage to resolve the energy consumption on this integration in the end so it’s still crazy high. Right now it’s 20,623kwh but on DCC the right figures show up.
All I’m using this integration for is the real time electricity usage

@craigmcgowan
Copy link

@pete-leese and @craigmcgowan I still never got gas consumption coming through. However if you install the DCC version of the integration you can get that figure. I didn’t manage to resolve the energy consumption on this integration in the end so it’s still crazy high. Right now it’s 20,623kwh but on DCC the right figures show up. All I’m using this integration for is the real time electricity usage

@townsmcp Exactly the same as me then. I had DCC version installed for a few weeks and it was working well. I uninstalled it to use this version but as you say there is no gas and my energy reading was 26000+ kwh also. The current consumption though is what I really wanted to buy the glow stick for though so now I can get that from this integration and all the daily/total figures from the DCC version.

Buying a glowstick also had the added benefit of its made all my tarriff rates appear in the app/integrations as previously they were showing in the app as unavailable, so im well happy :)

@obiwanzamora
Copy link

Same issue here. Really high electricity consumption and gas consumption unavailable. I can see the data is present in the mqtt message. Is there any workaround or sit tight for a fix?

@craigmcgowan
Copy link

Same issue here. Really high electricity consumption and gas consumption unavailable. I can see the data is present in the mqtt message. Is there any workaround or sit tight for a fix?

Workaround to get this data is install this also https://github.com/HandyHat/ha-hildebrandglow-dcc

@obiwanzamora
Copy link

Workaround to get this data is install this also https://github.com/HandyHat/ha-hildebrandglow-dcc

I have the CAD device so was hoping to get the real-time data. My understanding is the DCC version will only pull through the delayed info?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants