First of all, huge shoutout to @epmatt for this super usefull blueprints. Saves everyone a lot of hassle of manually figuring out all ZHA event IDās etc. Thanks a lot for your work!
I just setup the blueprint and the single click events all work very smoothly! However, I have trouble getting the loop-on-hold function to work properly. I want the light to slowly dim up or down if I hold the up/down button. However, nothing happens if I do so.
Has anyone else had similar problems or knows a fix?
I use the following blueprint setup:
alias: TEST - Standing lamps + remote control
description: For debugging. Based on IKEA E1524/E1810 5-Button Remote
use_blueprint:
path: EPMatt/ikea_e1524_e1810.yaml
input:
integration: ZHA
remote: e21faa55947c8bc5370c6a92d1d7b0cc
action_up_short:
- service: light.turn_on
data:
entity_id: light.desk
brightness_step_pct: 20
action_down_short:
- service: light.turn_on
data:
entity_id: light.desk
brightness_step_pct: -20
button_up_long_loop: true
button_down_long_loop: true
(I realize there is something I can do with including hooks, but I actually like this way of confuguration since I still have the feeling I understand the commands that are given )
What have I tried myself?
I have looked to zha_events, and if I hold the up button, there is a special event triggered on the start and stop of long pressing:
Start event:
{
"event_type": "zha_event",
"data": {
"device_ieee": "00:0b:57:ff:fe:af:32:68",
"unique_id": "00:0b:57:ff:fe:af:32:68:1:0x0008",
"device_id": "e21faa55947c8bc5370c6a92d1d7b0cc",
"endpoint_id": 1,
"cluster_id": 8,
"command": "move_with_on_off",
"args": [
0,
84
]
},
"origin": "LOCAL",
"time_fired": "2021-03-19T13:31:03.401822+00:00",
"context": {
"id": "8708d82088a88dd574b8288b428300ed",
"parent_id": null,
"user_id": null
}
}
Stop event:
{
"event_type": "zha_event",
"data": {
"device_ieee": "00:0b:57:ff:fe:af:32:68",
"unique_id": "00:0b:57:ff:fe:af:32:68:1:0x0008",
"device_id": "e21faa55947c8bc5370c6a92d1d7b0cc",
"endpoint_id": 1,
"cluster_id": 8,
"command": "stop",
"args": []
},
"origin": "LOCAL",
"time_fired": "2021-03-19T13:31:03.974525+00:00",
"context": {
"id": "3f60129a2a796b4cd6b01107d5f2db9b",
"parent_id": null,
"user_id": null
}
}
Further, if I single press a button there is a ahb_controller_event triggered. I am not exactly sure what this is, but I got the feeling that it was related to the blueprint since It uses the same phrasing:
{
"event_type": "ahb_controller_event",
"data": {
"controller": "e21faa55947c8bc5370c6a92d1d7b0cc",
"action": "button_up_short"
},
"origin": "LOCAL",
"time_fired": "2021-03-19T13:32:04.013243+00:00",
"context": {
"id": "5c28b26faa998d225cbd237ea1e6954f",
"parent_id": "761cbd6bdfe8a4ff30e513d3f60d743a",
"user_id": null
}
}
But if I hold the buttons, there is no ahb_controller_event triggered after the zha_event. Could this be the cause? If so, what would a fix be?