HA-Battery-Notes
HA-Battery-Notes copied to clipboard
Battery Events for entity based notes cannot obtain renamed Battery Note device name
Checklist
- [x] I have filled out the template to the best of my ability.
- [x] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
- [x] This issue is not a duplicate feature request of previous feature requests.
Is your feature request related to a problem? Please describe.
When using the battery low trigger event data on an entity based battery note, you cannot get a useful name for the device, since it is obtaining this from the source device, which may have many battery note entities (such as EcoWitt).
Describe the solution you'd like
Create a way to get the Battery Note device name rather than the source device, whether that's replacing the event data device_name with the Battery Notes one or providing an additional data element.
Describe alternatives you've considered
Complicated template manipulation, but since the battery note entity_id is not present either there's no way to get the device_name.
Additional context
See discussion here https://github.com/andrew-codechimp/HA-Battery-Notes/discussions/2118#discussioncomment-13898765