Skip to content
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

(Automatic?) Conversion between units (watts and kilowatts, but possibly others?) #1643

Open
davidarkemp opened this issue Nov 22, 2024 · 2 comments

Comments

@davidarkemp
Copy link

Is your feature request related to a problem? Please describe.
Different parts of predbat require input at different scales (pv_power is in watts, for example)

Describe the solution you'd like
Where possible, I'd like predbat to use the unit of the sensor to determine how to scale the output.
As a sidle effect of this, predbat could also issue warnings when the input isn't an expected unit.

Describe alternatives you've considered
At the moment, I'm using a template sensor to convert the value before input to predbat, but this requires extra storage in the db history.

Additional context
As a new user, understanding this all has been the major hurdle to getting something setup. At some point, it would be great if there was a UI for all of this that only allowed likely inputs, like the HA Energy Dashboard does.

@springfall2008
Copy link
Owner

In some cases Predbat already converts between watts and kw, which case are you refering to?

@davidarkemp
Copy link
Author

Specifically: pv_power
Until I used a template sensor that does the conversion, predbat.pv_power seemed to be incorrect

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

No branches or pull requests

2 participants