Hi @applesauce, Iām sorry for my late response.
First of all thank you for checking out these blueprints and for reporting here.
Integration used for connecting the remote with Home Assistant. Select one of the available values
This input is part of one of the Controller blueprints, thereās no such input in the Light Hook. The Integration input is used in Controller blueprints to provide the integration you used to connect the controller with Home Assistant (Zigbee2MQTT, deCONZ, ZHA), which is required by the blueprint to correctly parse the RAW messages received from the device.
am I understanding correctly that this blueprint will add additional functionality to the blueprint I am using to dim my lightsā¦
Not exactly, to use the light Hook youāll need to setup a Controller blueprint first, as stated in documentation. Each Controller blueprint provides functionality for a different controller model; you can check out the full list of supported controllers in the documentation, which currently includes 6 devices mostly from IKEA.
The complete setup comprises two automations: one created with a Controller blueprint, the other one created with the Light Hook blueprint.
I highly suggest you to take a look at the Controllers-Hooks Ecosystem documentation, which describes how the two blueprint categories interact together, and lists different features you can achieve by configuring Controllers and Hooks in different ways, with clear YAML configuration examples.
If you have any additional doubts or you need further guidance to setup automations created with these blueprints Iād be happy to assist you, just let me know.
Thanks for these amazing blueprints.
You really saved us a lot of time figuring out how all these devices work with HA.
I have one issue, here is my setup:
I used your controller blueprint to create an automation for my IKEA ICTC-G-1 TRADFRI wireless dimmer, with no custom actions on it.
Then used your light hook to control my Ikea Tradri bulb.
When I rotate the dimmer, it starts to gradually increase/decrease until it reaches the max setting (1/255), depending on the ā(Optional) Light brightness steps - long actionsā value that is set.
I cannot set it to my preferred brightness. As long I start to rotate it, it will not stop until it reaches the max setting.
How can I stop this?
All I want is to have the dimmer work as it was intended: smoothly increase/decrease the brightness when rotating slowly, on/off when rotating it fast.
Is it possible to achieve that result with your blueprints and hooks?
Is it also possible to adjust the smoothness/steps of the brightness when slowly rotating the dimmer in order to achieve the perfect result?
I see I can have multiple hooks using the same controller how to I differentiate what button goes to what hook? IE when I press center button it toggles a light but when I press brightness up it turns volume up on a media player.
My light.bedroom_one is an E27 yeelight colour bulb, if that matters.
I am pretty certain that the controller automation is working because when I display the symfonisk_text entity on lovelace, the text updates without issues. The hook however never gets triggered.
Iām happy to hear these blueprints are useful for you.
How can I stop this?
The controller should send the corresponding rotate_stop event when you stop the rotation. This might be an issue with how the blueprint manages rotation events.
Is it possible to achieve that result with your blueprints and hooks?
Unfortunately this is not possible due to the not standard interface the controller exposes to deCONZ, ZHA and Zigbee2MQTT. Moreover, Zigbee2MQTT removed support for fast rotation events with the new, more stable, non-legacy integration for this device. Since the blueprint should be as general as possible and targeting multiple integrations, I had to choose a restricted set of features which are supported by all the available integrations.
By the way, this is an issue we should consider addressing in the future, since I see many controllers donāt expose the same set of actions to all integrations.
Is it also possible to adjust the smoothness/steps of the brightness when slowly rotating the dimmer in order to achieve the perfect result?
Yes, itās possible to adjust the controller-hook setup sensivity by providing a custom value for the brightness_steps_long light hook input, which represents the number of steps from min to max brightness when rotating/long pressing the mapped button. A higher value will result in less sensivity and finer brightness control.
This operation might also solve your first issue: if youāre able to rotate the controller just for a short amount of time, you should notice the automation stopping increasing/decreasing the brightness as soon as you stop rotating the controller. If this is not the case, we probably have to debug the rotation handling related code.
Unfortunately thereās currently no way to ārouteā certain actions to a specific hook automation: currently all hooks linked to the same controller automation receive all the device events.
By the way this feature is definitely something we might plan adding in the future.
If you have some time you can submit a feature request by creating a new issue on the projectās GitHub repository, so we can better discuss this suggestion and track its development.
Do you notice any entries in the HA logs related to either the Controller or Hook blueprint?
Moreover, you can check whether the controller blueprint is correctly firing ahb_controller_event events when triggered by a controller interaction. These events are used to implement communication between controllers and hooks.
You can navigate to Developer Tools ā Events in your Home Assistant UI, then in the Listen to events form on the bottom of the page type ahb_controller_event and click on Start Listening.
You should then see events appear on the event list while interacting with your E1744 controller.
I actually got this set up, it was an issue with the events coming out of my E1744 name. The events fired are different from what is documented on z2m. I replied on the E1744 thread describing what I did to get it to work.
I really hope you wonāt find my question rude - if you do - please say.
So, how would I use this line (brightness down, with minimum value to prevent light off). I understand to change the light to light.entity but how would I change the '-step_short, min bright etc etc?
in standalone automation? I have different devices controlling lights around the house (aqara opple) and I also utilise different buttons in different ways, this is why it would be better for me to just use it in separate automation.
Once again - I hope you wonāt feel offended by me asking this question.
thank you for reaching out. No reason to feel offended at all - Iām happy to see people using the blueprintsā code in other ways than whatās intended for.
You can replicate the service call you find in the brightness_down or brightness_down_repeat step, getting rid of the min_brightness and max_brightness variables, which are used to constraint the light brightness to the desired range:
Moreover, if youād like to request a blueprint for a currently unsupported controller, you can always open a feature request in the projectās GitHub repository. Weāre in the process of extending the number of supported controllers, thanks also to the community feedback, so new devices will be added in the upcoming weeks.
Thank you! If you have any additional doubts Iād be glad to help.
Hi @epmatt! thank you for your response - I would like to use min_brightness so when i dim the light to the max - it wonāt turn off but stay at level 1 - would you be kind to tell me how to achieve this? I believe this is one of the constraint to use in your script/automation.
Thank you for suggesting feature request - I sure will do it!
And also - thank you for taking your time to respond.
Hi there @epmatt thank you for your work on all these controller/hooks blueprints! I have had great success with the Ikea controller/hooks up to this point! I am having a bit of issues with the light hook and using my Philips Remote Controller. The controller automation shows itās updating with presses, and I am seeing them in my zigbee2mqtt log, but no changes on the light hook. Below is the error log, and the configuration of both the controller and the hook. Any Suggestions?
Error from Log:
Error while executing automation automation.hook_light: UndefinedError: 'dict object' has no attribute 'event'
12:35:46 PM ā (ERROR) Automation - message first occurred at 12:22:06 PM and shows up 3 times
Hook - Light: Error executing script. Error rendering template for variables at pos 1: UndefinedError: 'dict object' has no attribute 'event'
12:35:46 PM ā (ERROR) Automation - message first occurred at 12:22:06 PM and shows up 3 times
Template variable error: 'dict object' has no attribute 'event' when rendering '{{ trigger.event.data.action }}'
12:35:46 PM ā (ERROR) helpers/template.py - message first occurred at 12:22:06 PM and shows up 3 times
Hi!
I dont know where exactly do post this and actaully want to avoid a double post but since it is connected to the Light Hook Blueprint I still link it here:
tried light hook with a multi color zigbee lamp and E1810 Ikea 5-Button Wireless Switch, works! But what if I want to always have white light set on turn on and not the last used color? There is an option for āturn on brightnessā but not āturn on colorāā¦
I was wondering though, is it possible to change the colour wheel / selection of colours that are cycled?
Unfortunately the āyellowā colour is just that bit too greenish as setup currently.
Home Assistant 2022.11.4
Supervisor 2022.11.2
Operating System 9.3
Frontend 20221108.0 - latest
If I just work with the controller, I can configure the short up/down buttons and it works.
up = Light on
down = Light off
If I enable the hook, I am not able to turn the light off.
I tested to disable my settings from the controller (up/down), but it did not help.
As soon as I enable the hook, it is not possible to turn the light off. Other features like turn light on, works. left and right, changes colours. but pressing down and even a long press and hold itā¦ the light stays on.