-
Notifications
You must be signed in to change notification settings - Fork 506
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
Battery levels as own entites #1827
Comments
How to expose battery levels in HA should probably be discussed pydeconz instead of here. |
Thx for the hint! |
I’m all in favour of exposing the battery (or rather: the Power Configuration cluster 0x0001) as a separate resource, but I’m not sure whether we should do that before API v2. Technically we could introduce a @manup, what do you think? |
Hi @ebaauw, thx for your reply and your support! Indeed it double's the number of sensors for single sensor devices, but in reality it IS a sensor w/ important information. ZHA already grabbed this issue and provides battery levels for all battery based sensors (even if no Power Configuration cluster visible in deCONZ GUI!?) Related to @erikced's reply I opened an mirror issue on pydeconz. Now I am really unsure to which this topic has to be associated to due to my lack of technical knowledge on internals. |
Exposing it thru the REST API is one thing, actually using it in apps or plugins to home automation systems is another. That needs to be discussed in their respective repositories. We’d keep the current |
Add `RStateBattery` resource, see #1827.
Add `ZHABattery` and `CLIPBattery` sensor types, with `state.battery` and `state.lastupdated` and without `config.battery`, see #1827. For now, a `ZHABattery` sensor resource will only be created for IKEA FYRTUR and KADRILJ smart blinds.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Unfortunalety the battery levels of devices like Philips motion sensor and Xiaomi/Aqara ambience, door/window and vibration sensors are modelled only as attributes of their sensor values/entities like temperature and humidity so they aren't directly accessible as own entities in Home Assistant and need to be integrated complicatedly and error-prone by using template sensors.
Contrary ZHA component of Home Assistent directly exports these battery levels correctly as own entities.
In addition current implementation provides the values redundantly but in fact its only one unique device attribute which should be exported as such one.
Looking forward to receive a reply.
The text was updated successfully, but these errors were encountered: