hi all.
would anybody be able to help - i would like to use this blueprint but to control only one light with each button linked to one colour.
in other words, i would like first button to turn a light blue, second button the same light but green, etc.
I would also like the “Current Light” to adjust the brightness of the chosen colour.
You wouldn’t be able to do that with this blueprint as it is. But you could modify the blueprint to take actions instead of just lights. Then you could setup those actions to be turning on the light with a colour.
Thanks @apollo1220
I unfortunately couldn’t get this to work.
Any chance I could ask you to help me with this in exchange for some coffees or a donation of some kind?
@apollo1220 thanks a lot for this blueprint! I slightly adjusted it to suit my situation, only the first 3 buttons turn on a light, while the fourth button turns off the light selected previously. I removed the toggle option. I couldn’t achieve this without your blueprint. Thanks!
I am still struggling with one thing, hope you can help. I don’t want to turn off the selected light when dimming. If it reaches 1% it should be the final position. Should this be more of a condition? Maybe adding - '{{ state_attr('current_light, 'brightness') => 1) ?
I am not experienced with coding and try to do my best, but I am more lucky than skilled I guess.
You are on the right track with checking the current brightness level. But due to the step_size and dim_scale, you need to take those into account in the comparison as well instead of just comparing against 1.
nice blueprint! How can I make adjustment to the initial values for transition, brightness_pct and color_temp_kelvin of the button setup?
I tried adding respective entries as follows in the data part. After refreshing the according automation I didn’t receive any error. Yet, using the button the newly added settings are being ignored.
Here’s the snippet of the changed first-button-section:
The service being called there is input_text.set_value so that won’t have any effect on the light. You would be looking to replace the service call to homeassistant.toggle with a call to light.turn_on and passing that extra data to that service call.
As I delve deeper into the functionality of the Philips Hue Tap Dial Switch in ZHA I realised that it is missing a feature that is available in the corresponding Z2M implementation: individual button long presses.
I only manage to get a generic long press that generates the same signal for all four buttons by using this:
Sorry to bump this question. Anyone having some idea why ZHA is a bit limited on support of the Philips Hue Tap Dial Switch? I mean double clicking and long pressing buttons is already implemented using Z2M.
What is the issue on that and where can I find some documentation so maybe I can support the quest to unleash all features also in ZHA?
I have noticed that i get a warning almost everytime i use the switch in my logs, are there anyway to use some sort of if statement to verify that the scene_id, step_mode, step_size exists before adding them as variables?
2023-09-17 10:20:39.848 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'scene_id' when rendering '{{ trigger.event.data.params.scene_id }}'
2023-09-17 10:20:39.854 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'step_mode' when rendering '{{ trigger.event.data.params.step_mode }}'
2023-09-17 10:20:39.856 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'step_size' when rendering '{{ trigger.event.data.params.step_size }}'