-
Notifications
You must be signed in to change notification settings - Fork 249
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
[FR] Make group sensors more group sensor compliant #2149
Comments
@erkr Pretty sure I investigated this somewhere in the past. Could not find the issue/discussion again. Also this would be a breaking change. People relying on |
I did a quick test, but I cannot make this working for The culprit is here. Where HA checks specifically for |
Thanks for testing. Didn't know that expand() expects the group domain. Nice you recognise the added value for populating cards😊 |
For example how to do auto entities see here: |
It was on the back of my mind somewhere. It's a pity, but they won't add any specific code for powercalc in core. Also, there is no possibility for custom components to provide entities in the group domain, that's something only core code can do. |
Group support for cards would already be very nice. 😊 I realise it is actually breaking change. |
To be honest, this integration is so useful, it should be part of core 🤗 |
Closing as it's not something I can fix. Example how to use with auto entities is shared above. |
Yes that template works fine👌 |
Checklist
Is your feature request related to a problem? Please describe.
The Powercalc group sensors currently list the embedded entities under the key
entities
in the attributes:Describe the solution you'd like
By changing that into
entity_id
, it will be recognised as a group sensor by e.g the auto entities card and expand() in templates:For i.e the auto entities card the whole group than can be simply added like this:
Describe alternatives you've considered
Enumerate entities list
Additional context
I guess this is a relative easy change, that makes usage in templates and cards more convenient.
The text was updated successfully, but these errors were encountered: