-
-
Notifications
You must be signed in to change notification settings - Fork 28.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Energy dashboard doesn't allow adding MWh / GJ for Gas #81496
Comments
I think that the dashboard now only accepts device_class = 'gas'. After changing the volume, MWh and GJ entities to device_class 'gas', they can be selected. But it still does not solve the issue, since now it shows the following message. So it seems some part still expects the device_class energy to correspond to MWh / GJ. The volume-entity doesn't show this message. Has something changed in 2022.11 with respect to filtering entities by device_class ? |
With 2022.10 I was (mis)using the (gas) consumption card to track energy/ cost for individual devices. With 2022.11 it appears this is no longer possible, I am unsure if this is a bug or a feature. |
The documentation (https://developers.home-assistant.io/docs/core/entity/sensor/#available-device-classes) indicates that sensors with a value of kWh or MWh should still have a device class of |
MWh entities are converted to kWh (trivial conversation). But now it seems also GJ is converted to kWh on the (gas-)dashboard (after working around the bug). Although I didn't expect this, it's fine. Also GJ should indeed be And perhaps the whole Gas category should be renamed to Heating.... |
Experiencing the same with long term statistics that have been working fine for a while. This is a post on the HA forum for an integration i made for the community, and people flagged it with me recently that the entities are not showing in the dropdown for the gas sensor only. https://community.home-assistant.io/t/glow-hildebrand-display-local-mqtt-access-template-help/428638/2?u=robertalexa Went and checked it at my end, the dropdown is empty, despite the correct entities being set. My energy dashboard was working fine with the "hidden" entity, but as soon as I have changed it (to itself by entity_id) it stopped. Not sure if this is related to the recent change: #80884 |
I am having the same issue. I had a working gas kwh sensor in there, deleted it because I had set up a more accurate one and I cannot add either of them. Latest HA 2022.11.1 |
I'm still seeing this issue in Home Assistant 2022.11.2 :-( I also see this issue hasn't been assigned, so I'm unsure if anyone is looking at it. |
This seens to be relevant home-assistant/frontend#14292 (comment) |
+1 |
+1. Broken since 2022.11. Worked with device_class = energy and unit = kWh before I upgraded. |
Same here. I'm running a container and everything worked into the November release. I did try Hassos, and I managed to get things working but not after changing the monetary to GBP/kWh then change kWh to m3 and then back to kWh again. The UI seems to kick out that the gas sensor doesn't support kWh, but then contradicts in the drop down |
This issue appears to be fixed in the 2022.12 beta release. Thanks |
@purcell-lab Thanks for the heads up. Only taking 2 major version to fix sth that was accidentally broken when actually working on that and supporting different units of measurement. sad face |
Also have issue adding gas sensor. My sensor looks like this:
Cant see it in energy monitor at all. |
@Autogarsas your specific issue could be caused by it not being recognized as a statistic. Try adding this to the configuration:
|
This is the same for me. I'm not sure this is a bug, or the intended way. It's not very intuitive either way. I'm also confused whether I should use price per kWh or price per GJ. Price calculation is off in any case. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The problem
Since 2022.11.0 the Energy Dashboard now allows adding GJ for gas usage. However this seems to have broken something.
MWh and m3 entities (statistics enabled) are no longer available in the dropdown for choosing a source for gas.
For example the MWh-entity supplied by the Landis+Gyr Heat Meter integration can now no longer be chosen.
This worked correctly before: the entity that was chosen in the previous version 10.5 is still selected after the migration and also works correctly it updates correctly on the energy dashboard. (It therefore seems to me it's not an issue in the integration.)
However, after deleting this entity as source for gas from the dashboard, it can no longer be chosen:
Also (with a slightly modified custom version of the Landis+Gyr Heat Meter integration) I've tried to add the (now statistics enabled) GJ entity. Also this entity cannot be chosen from the dropdown.
This behavior is also reported (in the comments) in #81464 (comment).
In the statistics tab, the entities show correctly with their statistics data:
None of these can be chosen as input for gas in the energy dashboard.
What version of Home Assistant Core has the issue?
2022.11.0
What was the last working version of Home Assistant Core?
2022.10.5
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Energy dashboard
Link to integration documentation on our website
https://www.home-assistant.io/docs/energy
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: