-
Notifications
You must be signed in to change notification settings - Fork 245
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
Missing entitys for "Daily fixed energy" instances #1677
Comments
Thanks for reporting. will be fixed with #1679, which will be in next version I'll release today. |
Fix has been released in v1.6.2. Please let me know if it is solved for you. |
Tested and confirm that it works now. |
Sorry, but I have to re-open it. The "power" entity is not working when "kWh" is seleved. Additionally: Its buggy to insert low values in. You can insert "93" The "normal" way by just typing deletes the value while typing. |
Please don't report multiple/new issues in the same issue. Please create a new issue for that. Maybe related to #1675? Regarding this issue.
This is correct and by design as there cannot be a power sensor when selecting kWh. Power is an instantaneous value and there is no way to derive that from a kWh value. So when you select W you will get both a power and energy sensor I will add a note to the documentation to clarify this. |
Added a note to the docs: https://homeassistant-powercalc.readthedocs.io/en/latest/daily-fixed-energy.html |
I dont agree on that and it totally doesnt make any sense for me. You could then also say that watts is the unit for power and there is no way to integrate that to kWh.
They both correlate via time, so if you know what power (watts) a device is using, you integrate it via time (calculate it) to get the energy consumption in kWh - what you already do. To make it easier for you, you can simply calculate the power in watts by the given kWh value of the user via: Adding it to the docs leaves this still as a bug of this (and I want to pint this out) in other aspects fantastic custom component for Home Assistant. |
The reason I didn't implement was because of the Second reason I didn't implement was that the power sensor always has a static value, so it does not really have an added value in any way imo. This can also easily be achieved with a few lines of code with a template sensor. |
I do that by calculating the amount of kWh which needs to be added per day and increase the energy sensor with a proportional amount depending on the Anyway what I can do is create the power sensor when you don't use the |
Thanks @bramstroker for your fast responses and your interest to find a solution for that! :) I also think that your idea of implementing it would suit most users. |
Will be resolved with #1704 |
Released in v1.6.7 |
System Health details
System Information
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
Checklist
Describe the issue
When setting up a "Daily fixed energy" instance via the UI of Powercalc, I don't get any entitys when the unit is kWh.
The same with W as unit works as expected.
Not a big deal to switch, but I was very confused that using "kWh" doesnt give me anything usefull to integrate to my HA.
Reproduction steps
Go to settings -> devices & services -> Add integration -> search for "Powercalc" and select it-> select "Daily energy" -> Give it a name, set a value, choose "kWh" as unit, set intervall eg. to 15 sec and klick accept.
In "devices & services" under "powercalc" you can now see the new virtual device, that has no entity.
You can (re)configure it and change the unit to "W". After this you can see the entitys.
You can (re)configure it and change the unit again to "kWh". After this the entitys are gone.
Debug logs
Diagnostics dump or YAML config
No response
The text was updated successfully, but these errors were encountered: