-
Notifications
You must be signed in to change notification settings - Fork 47
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
Cant' read entities of a group since 1.6.0 #623
Comments
This works on my side:
|
I ran into this as well and just settled on: groups = {k: hass.states.get(k) for k, v in hass.data['entity_info'].items() if v['domain'] == 'group'}
groups['binary_sensor.stairway_motion'].attributes['entity_id'] Not ideal but works for my needs. |
And don't get me started on gathering ZHA groups ;-) If you run into that, take a look at |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I have a group named
group.electrovannes
, with the following attributes:In this pyscript code, I'm reading the attributes of this group, and then reading the list of entities composing the group:
With pyscript 1.5.0, it displays the expected result :
However, with pyscript 1.6.0 / 1.6.1, the
entity_id
attribute seems to not exist anymore, and I can't read it. The exact same code gives this logs:entity_id
attribute of the group entity is not in the list of attributesstate.get('group.electrovannes.entity_id')
is giving the entity ID of the group entity itself, instead of theentity_id
attribute of the group entity.I guess that it's caused by this change: #555 (@dmamelin)
Is there another way to read the contents of a group?
Thanks
The text was updated successfully, but these errors were encountered: