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

Add battery voltage divisor setting #4299

Merged
merged 1 commit into from Mar 26, 2024

Conversation

jpelgrom
Copy link
Member

@jpelgrom jpelgrom commented Mar 26, 2024

Summary

Fix #4286 by adding a setting to the battery power sensor to set the battery voltage divisor. Like the current, I guess we can't trust anything.

This fix is in line with the existing setting for current, but maybe we can detect this automatically in the future based on expected values? (eg voltage should always be in range x...y, but the tricky part is what to do when it is close to 0)

Screenshots

Light Dark
Sensor settings in the Home Assistant app with an option 'Battery voltage divisor', value 1000, light mode Sensor settings in the Home Assistant app with an option 'Battery voltage divisor', value 1000, dark mode

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#1051

Any other notes

@dshokouhi dshokouhi merged commit 7ee922a into home-assistant:master Mar 26, 2024
4 checks passed
@jpelgrom jpelgrom deleted the battery-power-volts branch March 27, 2024 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Battery voltage problem
2 participants