-
-
Notifications
You must be signed in to change notification settings - Fork 29.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
Add battery binary sensor to homematic #23067
Conversation
I am getting an error:
I doubt it's related to my PR. Can anyone give some clues where to start looking for solving this ? |
Codecov Report
@@ Coverage Diff @@
## dev #23067 +/- ##
=========================================
- Coverage 94.2% 94.09% -0.11%
=========================================
Files 453 452 -1
Lines 36913 36795 -118
=========================================
- Hits 34773 34623 -150
- Misses 2140 2172 +32
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## dev #23067 +/- ##
=========================================
- Coverage 94.2% 94.09% -0.11%
=========================================
Files 453 452 -1
Lines 36913 36795 -118
=========================================
- Hits 34773 34623 -150
- Misses 2140 2172 +32
Continue to review full report at Codecov.
|
@pvizeli @danielperna84 Hi Guys, (Any help/suggestion on the todo is welcome too !) Thanks ! |
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.
We should follow the core rules and implement that one: https://developers.home-assistant.io/docs/en/entity_index.html#standard-attributes
@pvizeli I don't understand. This pr is a substitute for #22594 |
@pvizeli See my comment above. Can you explain your comment a bit more ? |
Both approaches are good. The approach that Pascal refers to is preferred, since it gives more information than just low battery. Binary sensors for low battery is a valid approach too, as it's one of the approved device classes https://developers.home-assistant.io/docs/en/entity_binary_sensor.html#available-device-classes |
Description:
Each homematic device which is battery operated will have a binary battery sensor device in hass.