Skip to content
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

[RFC] Group Home Assistant Auto-discovery #2410

Closed
tim-devel opened this issue Nov 24, 2019 · 20 comments
Closed

[RFC] Group Home Assistant Auto-discovery #2410

tim-devel opened this issue Nov 24, 2019 · 20 comments
Labels
feature request Feature request

Comments

@tim-devel
Copy link
Contributor

Groups are not currently auto-discovered by home assistant. Can an option be added so that zigbee2mqtt groups can announce themselves to home assistant discovery? This would be particularly helpful for lighting groups as no manual configuration would be required

@Koenkk Koenkk added the feature request Feature request label Nov 25, 2019
@stale
Copy link

stale bot commented Jan 24, 2020

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.

@stale stale bot added the stale Stale issues label Jan 24, 2020
@sjorge
Copy link
Contributor

sjorge commented Jan 24, 2020

I'm not sure how this would work though, as groups could contain a set of lights, but also a set of blinds for example.

How would we know which one to expose to HA?

@stale stale bot removed the stale Stale issues label Jan 24, 2020
@Koenkk
Copy link
Owner

Koenkk commented Jan 25, 2020

@sjorge in that case both blinds and light should be discovered, bulbs will ignore the blinds commands and vice versa.

@stale
Copy link

stale bot commented Mar 26, 2020

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.

@stale stale bot added the stale Stale issues label Mar 26, 2020
@stale stale bot closed this as completed Apr 2, 2020
@nobodypb
Copy link
Contributor

nobodypb commented Sep 1, 2020

Are there currently any efforts to implement this? I would be very interested in the discovery of groups via the Home Assistant protocol. Because then I could easily implement this for WebThings Gateway and wouldn't have to query each device individually.

Or are pull requests welcome? I haven't poke that much into the code of zigbee2mqtt, yet. So I have no idea how complicated it would be to accomplish this, but I could give it a try. However, I would be very pleased if you could give me some hints for the implementation then.

@Koenkk Koenkk reopened this Sep 1, 2020
@github-actions github-actions bot closed this as completed Sep 9, 2020
@rindlerblabla
Copy link

It's a much wanted functionality for me as well!

@Koenkk Koenkk reopened this Apr 21, 2021
@Koenkk Koenkk removed the stale Stale issues label Apr 21, 2021
@julien-w
Copy link

It would be a very big improvement. Perhaps the last must-have feature missing for me :-)

@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale issues label May 25, 2021
@rindlerblabla
Copy link

Am still interested in this feature.

@github-actions github-actions bot removed the stale Stale issues label May 26, 2021
Koenkk added a commit to Koenkk/zigbee2mqtt.io that referenced this issue Jun 16, 2021
Koenkk added a commit that referenced this issue Jun 16, 2021
@Koenkk
Copy link
Owner

Koenkk commented Jun 16, 2021

HA group discovery is supported now for groups of lights, switches, locks and covers.

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)

@Koenkk Koenkk closed this as completed Jun 16, 2021
@mdehaas
Copy link

mdehaas commented Jun 21, 2021

Hi @Koenkk, any planning on when this is going to be included in the stable branch?

@Koenkk
Copy link
Owner

Koenkk commented Jun 22, 2021

@mdehaas next z2m release on 1 July

@jd1900
Copy link
Contributor

jd1900 commented Jul 1, 2021

And..., I've noticed that when bootstraped if lights from a group are "on", the group is not "on". But once it is turned on/off it "syncs" with the group.

Apart from that, thank you! This is really a nice feature.

@mdehaas
Copy link

mdehaas commented Jul 1, 2021

Hi jd1900,

If lights from one group are partially on, the group is not on or off. But I feel that when creating a group in Zigbee the individual lights should not be controlled. What is your 'use-case'? And I think you are looking in HA? What do you see in the Z2M interface?

@jd1900
Copy link
Contributor

jd1900 commented Jul 1, 2021

Hi jd1900,

If lights from one group are partially on, the group is not on or off. But I feel that when creating a group in Zigbee the individual lights should not be controlled. What is your 'use-case'? And I think you are looking in HA? What do you see in the Z2M interface?

It happened in the HA interface.
And in groups with just one device after a reboot.
So it is not a big deal actually.

@mdehaas
Copy link

mdehaas commented Jul 1, 2021

I have a group with one light because I need to install the rest in the ceiling so I will try this tomorrow although I feel this is not a common scenario…

@onedr0p
Copy link

onedr0p commented Jul 11, 2021

I am currently experiencing this issue in home assistant. I have a group of 2 lights defined in zigbee2mqtt as seen below in the GIF. When I toggle the group in home assistant the state is not updated correctly, until it is pressed again. Is this a known limitation of the groups feature?

I can verify both lights turn on, on a single press of the switch. Click the switch again only updates the state in home assistant.

2021-07-11 18 30 16

@Koenkk
Copy link
Owner

Koenkk commented Jul 12, 2021

@onedr0p is this fixed after setting the color temperature once via HA?

@onedr0p
Copy link

onedr0p commented Jul 12, 2021

@onedr0p is this fixed after setting the color temperature once via HA?

I can confirm this fixes it, thanks!

@Morphy99
Copy link

Morphy99 commented Aug 5, 2021

How do we disable group discovery in HA? I don't need to use groups apart from when Binding my IKEA remotes to bulbs so I have them set up for this. But now I have extra entities in HA which are just duplicates of devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request
Projects
None yet
Development

No branches or pull requests

10 participants