sorry, newbie question incoming, so I’ll be equally happy if you just redirect me to a good point in the documentation - my own research and googling ended only in things that are far too advanced for me right now.
I bought a Philips Hue Dimmer Switch today to use it with a few Philips Hue bulbs that I use with zigbee2mqtt. I was able to easily add the switch and can now toggle a light group on and off with the corresponding button. I read the forum and found the recommendation to do this with “Call service” and then “toggle light” for which I chose my light group as entity.
Now I wanted to add the two dimming buttons in the same way, but “Call service” and then entering “light” only allows to toggle, turn on and turn off, not to change brightness. I managed to do this for a single Philips Hue bulb with the UI, which results in this yaml code:
Can I change this to my light group somehow? Isn’t it better to use entities instead of device ids? I can’t find any option in the UI editor to address an entity or light group.
Any hints or pointers at the proper part of the documentation are much appreciated. Thanks!
If you didn’t get my question, that might be because I am still lacking a decent understanding of a lot of Home Assistant concepts and I have not found documentation yet that could provide me a comprehensive introduction (only reference if I already know that a certain concept exists). For example you pasted code for a service. What is a service? When do I use it? Where do I add it. Googling for it does only yield this link: Home Assistant Services | Home Assistant Data Science Portal
But this does not help me in understanding how, when and where I should use this concept. I’ll just fool around in the settings and maybe I’ll find where to add it.
Thanks for that blueprint. I’ll read up on what a blueprint is and how I install and use one. I hope the documentation is more comprehensive on blueprints than it is on services.
Edit: I managed to add blueprints, but neither the original one nor the one you linked will discover my dimmer switch. I’ll check out the model numbers and see if I can find documentation on this. It’s all a bit puzzling.
ah, ok, i may have assumed too much knowledge. but happy to adjust.
in the original code you had, it looks like you have code that triggers when you press a zigbee button (the phillip hue dimmer switch i presume) and that calls “brightness_increase” on one light.
you can use my code instead of the action you had to turn on the light.
if you do the first case, you need to create a light group (go to “helpers” in the ui and create a group for lights). in the second case, you don’t need to create a light group, but you do need to specify each light you want that one button press to increase the brightness for.
does that help?
hit me w qeustions if it doesn’t fully make sense, or if there’s something different you were wanting it to do.
Thanks a lot, now I got it. My main mistake was not understanding that dimming is “turning on with a new relative value change”. I was looking for an action just changing the brightness value. Works well now and from this point I can add all the other stuff. And I understood a few more concepts along the way. Thank you very much!
great! don’t hesitate to ask if you hit more headscratchers. folks here are particularly helpful when people are genuinely interested in learning the concepts beyond just “getting it done”