-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
Align consumption sensor names in ViCare integration #127888
Conversation
@NoRi2909 what do you think, will this do? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are failing
"name": "Electrical energy consumption for heating today" | ||
}, | ||
"energy_summary_consumption_heating_currentmonth": { | ||
"name": "Heating energy consumption this month" | ||
"name": "Electrical energy consumption for heating this month" | ||
}, | ||
"energy_summary_consumption_heating_currentyear": { | ||
"name": "Heating energy consumption this year" | ||
"name": "Electrical energy consumption for heating this year" | ||
}, | ||
"energy_summary_consumption_heating_lastsevendays": { | ||
"name": "Heating energy consumption last seven days" | ||
"name": "Electrical energy consumption for heating last seven days" | ||
}, | ||
"energy_dhw_summary_consumption_heating_currentday": { | ||
"name": "DHW energy consumption today" | ||
"name": "Electrical energy consumption for DHW today" | ||
}, | ||
"energy_dhw_summary_consumption_heating_currentmonth": { | ||
"name": "DHW energy consumption this month" | ||
"name": "Electrical energy consumption for DHW this month" | ||
}, | ||
"energy_dhw_summary_consumption_heating_currentyear": { | ||
"name": "DHW energy consumption this year" | ||
"name": "Electrical energy consumption for DHW this year" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay I saw that there was a whole discussion (I did not read, sorry for that), but let me ask a quick question, would it make sense to keep the start of the name contain the type? Because if I imagine a device with these entities, on the device page everything looks like Electrical energy consum...
. And if I translate it to Dutch Energie consumptie ...
. (I am not sure how wide it will show, but with this long name, I can see it being cut off, that's my point).
Would it make sense to have Heating electrical energy consumption today
? (under the assumption the reason this PR exists is because of the added emphasis on eletrical
).
(I think usually I wouldn't make this big of a deal of this, but in this case it can be 12(?) entities, so that would most likely lead to people renaming the things).
(Also, added question, on what level is this information collected? Would it make sense to only show the heating usage on the heating device and DHW on the DHW device?)
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
@joostlek The main point was changing "energy" to "electrical energy" to clarify that those entities just report the electrical power drawn by a gas boiler or fuel cell, not the energy contained in the gas burned. The latter are in "gas consumption" entities, reporting in cubic meters. Looking at the "gas consumption" entities keeping "Heating" and "DHW" at the beginning of all entities to get them grouped together makes sense. Note: In German we can translate "Electrical energy consumption" as "Stromverbrauch" (vs. "Gasverbrauch") to make it much shorter (something that doesn't happen that often). |
So that means you agree with what I'm saying? |
Yea, I also want to do that, but I wanted to double check if I understood correctly |
@joostlek Could you explain to a non-programmer like me where we're stuck with the change? I had some more thoughts about the suggested changes and we might just shorten the names in English just like I mentioned for the planned German translations. It just did not "click" in my head that we could do exactly the same in English: By simply using "electricity" instead of expanding "energy" to "electrical energy" in the names. All those entities begin with "energy_" anyhow and the unit is kWh for all of them.
So that matches perfectly with the existing gas consumptions measured in m³:
Those really avoid the limited space problem we have in the Entities lists. |
@joostlek the translation and translation keys are diverging now. Would it be safe to adjust them as well or will this lead to a bunch of new entities due to an entity id change? |
align with #127274 |
@CFenner I also noticed a while ago that the English "Circulation pump" is bit misleading at it misses a reference to heating. Thus it has the current German translation "Zirkulationspumpe" that Germans will associate with hotwater: core/homeassistant/components/vicare/strings.json Lines 33 to 35 in c294130
compare to core/homeassistant/components/vicare/strings.json Lines 51 to 53 in c294130
So for consistency it makes sense to add "heating" to the first string: "Heating circulation pump" In German this will then translate as "Heizkreispumpe" or "Heizungsumwälzpumpe". Here I fixed this for my own installation by renaming the entity in HA, and as this is the only pump in our heating it is in fact the "Heizkreispumpe": Note that currently "Running" is still translated as "Wird ausgeführt" which is complete nonsense in the HA context. I fixed that to now say: "Betriebszustand: In Betrieb / Außer Betrieb". Makes sense because in German not everything that runs "läuft" or "läuft nicht" as a status. |
Great we got this fixed. I already matched everything in the German translation. @CFenner Please have a look at my comment above regarding the heating circulation pump. We do have a bunch of entities that contain core/homeassistant/components/vicare/strings.json Lines 349 to 372 in 1f9c06e
And a second cluster with solar: core/homeassistant/components/vicare/strings.json Lines 293 to 303 in 1f9c06e
Given that the latter are in a block that also contains different solar temperature entities these seem to be for thermal solar systems, while the first block is for electrical / PV systems. Thus the first group above should have their entity names changed from "Solar …" to "PV …". |
@NoRi2909 let's fix this in a dedicated PR / discuss in an issue. I think there are solar power and solar thermal devices in vicare.. maybe it's related to that.. |
Proposed change
This aligns the sensor naming for
gas /energy consumption sensors and make it explicit that this is about electrical energy consumption.Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: