-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Home Assistant Scenes Discovery #4821
Comments
Looks good! Once it's implemented we can look into the Z2M implementation. |
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 |
Still WIP over at HA: home-assistant/core#42639 |
And, support has merged to HA & is included in the just announced v1.0.0 rc. |
Just wonder if there is also view and remove support on the hass side, we don't have it yet in z2m... but should probably at least add scene_remove and maybe scene_remove_all, it's on my way to long list of things to do -_- |
On the HASS side, no - just the ability to activate a scene for now. I don't think it supports anything other than activating an external scene, but I could be wrong on that! |
Ah so only scene_recall! I guess pushing complex scenes to the group/device might be a bit complicated to implement yeah. |
Yep - I figured that would be by far the most useful thing, so it's all I set out to do :) Though, on the way through doing it, I've figured it's likely not possible to add other actions anyway! |
Good to implanting in HA is save scene / groupe command being sent to Z2M. Also for the default scene groupe 0x0000 (and IKEA remote 0xff09). |
For those wanting to try scene integration in HA, it is not in the official release just yet. Adding this section causes an error message
I'll wait until the next HA release comes out and try this again, apparently the next one should be on the first Wednesday in January. On auto discovery: I would just start by editing the Z2M scenes docs to mention you can manually expose your scenes to HA the same way devices are showing what YAML to put in your config file. |
MQTT scenes support has definitely landed in the 2020.12 release, no need to wait till January! Your config example looks correct, I don't know why you would be seeing that error. Are you sure HA's MQTT is setup correctly? |
I am on 2020.12.1 and am getting this error message though, and indeed your changes are listed in the changelog. Found why that was the case, I had this default section in my config file that I never really used since this is my first time leveraging HA scenes:
This means I would have redefined the scene section which YAML wouldn't have been keen on, but really my mistake was to introduce a
If I go to Configuration > Scenes in HA they're all there and work really well! Thanks for the pointers, and sorry for my silly mistakes 😄 |
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 |
I've been searching for this feature and could only find this ticket. As it's closed without any PR or commits being linked I think this feature request has gone stale and isn't implemented, am I correct? The part on Home Assistants end obviously has been added, but nu discovery support has been added to Zigbee2mqtt? As this would be my last hurdle to ditch the Hue Bridge. |
Dumb bot, no cookie for you |
Is this feature still on the roadmap? Manually defining scenes work like a charm since HASS merged the PR but obviously would be better if it would be automatic. |
I might be able to work on this. But checking the code I'm really confused on how to get a proper list of scenes and what they are bound to. I did find |
Sooo...is this added or going to be added? Really confusing info in this thread! It doesn't seem like z2m scenes are mqtt auto discovered by HA yet. |
Could you copy the behavior from Hue/HA? It works fine there. In HA the hue scenes are named as follow (piece from my dashboard with scenes buttons in the footer)
|
I assume that this never got added / implemented? Would be really useful to be able to see / use scenes easily in HA. |
I would also love it if Z2M scenes where synced to HA and not having to redefine every scene in the YAML. I have 200+ zigbee devices and it's a big pain to manage it all. I am a PHP programmer (I know some Python) and I would love to help on this but I don't know where to start. |
Describe the solution you'd like
The new Scenes support is great, but configuring Home Assistant to use them reminds me of the bad old days :D We should add discovery support.
I've submitted a PR to HA to add MQTT Scenes: home-assistant/core#42639 & home-assistant/home-assistant.io#15497 - I'd love some review of that PR to ensure it'll suit current and future plans. For now (and at least IMO, for a long time..), Home Assistant only needs to be able to activate/recall a scene - so that's what I've implemented.
Describe alternatives you've considered
Manually configuring scripts and buttons and so on in HA to configure scenes.
Additional Context
Related to Koenkk/zigbee-herdsman-converters#1531
The text was updated successfully, but these errors were encountered: