šŸŽ® ZHA, deCONZ, Zigbee2MQTT - IKEA E2001/E2002 STYRBAR Remote control Universal blueprint - all actions + double click events - control lights, media players and more with Hooks

Hi. Pull updated.
raw.githubusercontent.com/lsismeiro/awesome-ha-blueprints/LeidenSpain/Hook-Lightā€”Add-white-to-HueSat/blueprints/hooks/light/light.yaml

I found a bug, I canā€™t move out of white mode when holding Left arrow button. Is this expected?
Please test above and let me know if it works for you.

Cheers

Hi there.

I think I get the gist of your issue. If possible would you be able to test with the latest blueprint version (https://github.com/lsismeiro/awesome-ha-blueprints/blob/20e23499259335b8198f0452db14a7e5a051d4cc/blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml)

You can edit the automation in YAML mode and change it from ā€œEPMatt/ikea_e2001_e2002.yamlā€ to ā€œlsismeiro/ā€¦ā€ which is a bit more painless. Please make backups before making changes.

I will try to reproduce this

I havenā€™t been able to reproduce this with my version of the hook. (Iā€™m not even the latest version from Luisā€™ Github)

Sanity check, is this switch enabled in your Controller automation?

1 Like

I actually had that error, but I solved it with the control being at [0,0]
I review what I have posted, to see if it is an old version

1 Like

Apologies for missing this.

Please make sure you are using this blueprint https://github.com/lsismeiro/awesome-ha-blueprints/blob/20e23499259335b8198f0452db14a7e5a051d4cc/blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml

This seems like a bug that has previously been fixed.

ups, the line 530 is wrong :unamused:

I have fix it

Many thanks.
Please test on your end: raw.githubusercontent.com/lsismeiro/awesome-ha-blueprints/054d76bdacafdf8bb5fc3247e55d9c9e7b22f504/blueprints/hooks/light/light.yaml
Will test now.

Does not appear to be fixed. Please let me know if it works for you.

yes yes, I just saw that itā€™s going even worse :smiley:

notice when it is fixed and solved (which means doing things quickly and without looking)

Take your time! :slight_smile:
I donā€™t believe itā€™s much worse than before!

I can update the pull once youā€™ve got it fixed. You are more than welcome to do it yourself - but mind that I have made a new selection for Hue - Saturation with White: hs_color_white so you will need to take that into account if you make changes
awesome-ha-blueprints/blueprints/hooks/light/light.yaml at 054d76bdacafdf8bb5fc3247e55d9c9e7b22f504 Ā· lsismeiro/awesome-ha-blueprints (github.com)

1 Like

well, now it was always going in the direction -15 :smiley:

1 Like

NOW

I have never made a github repository and it has been difficult for me to get it to save the changes.

No problem. gists are good enough.
Will merge your changes and re-test

1 Like

ok, when you have the new code with the new mode, I will copy it
I am not able to find the new full version, only the changes (I am very new to github)

New full version has not been published yet :slight_smile: as I have not pulled the pull request

Was the only change you made changing a MINUS to a PLUS?
Just want to make sure Iā€™ve got all of your changes before I edit

I am using the changes from your new version adding the correct codes from mine

Give me a while and Iā€™ll publish it (or try to)

1 Like

I think I didnā€™t screw up this time. :sweat_smile:

Hi Lewis,

Thanks for the reply. I do have the ā€˜loop unitl releaseā€™ enabled in the controller. And before I removed the ā€˜last eventā€™ line, it did go into the loop. It just never got out of the loop. In the trace, I could see that when I released the button, it went to the ā€˜chooseā€™ section where it decides what to do with the ahb event, but since the ā€˜last controllerā€™ check evaluates to false, it doesnā€™t do anything. I havenā€™t attached any special action to the ā€˜releaseā€™ action, could that be the reason?
Also, I am experiencing this with the ā€˜media playerā€™ hook, maybe that matters?
When I have time I will give the new version a go. I also have another STYRBAR with a light hook attached to it, that is acting a bit weird now, so I will first try with that one. The media player is working as expected so iā€™d rather not mess with it atm (simply temporarily disabling the current automation and downloading the new version of the blueprint and making a new automation from that might be the safest thing to do).

1 Like

Hi,
Iā€™m not able to run an automation from this Blueprint (Version 2022.08.08.)
Got a message ā€œStopped because an error was encountered ā€¦ not a valid value for dictionary value @ data[ā€˜entity_idā€™]ā€ when I press any button.

 "trace": {
    "last_step": "action/2",
    "run_id": "40256362ef0645011b5231b5d1464461",
    "state": "stopped",
    "script_execution": "error",
    "timestamp": {
      "start": "2023-11-05T18:31:42.672483+00:00",
      "finish": "2023-11-05T18:31:42.716341+00:00"
    },
    "domain": "automation",
    "item_id": "1699208965561",
    "error": "not a valid value for dictionary value @ data['entity_id']",
    "trigger": "event 'deconz_event'",

The automation is a simple toggle on/off:

id: '1699208965561'
alias: Controller - IKEA E2001/E2002 STYRBAR test
description: ''
use_blueprint:
  path: EPMatt/ikea_e2001_e2002.yaml
  input:
    integration: deCONZ
    controller_device: 7f216e6755bec19fd32fab049d626454
    action_button_up_short:
      - type: toggle
        device_id: bfbf4d9b2c19911d376c614884204829
        entity_id: 8a29849fd0e0c1d64703b4570abe902a
        domain: light

I tried with other lights which work with other automation, Iā€™ve got the same error.

Any idea where Iā€™m wrong ?
Thanks.

Hi there,
Please try the latest version of the blueprint from here šŸŽ® ZHA, deCONZ, Zigbee2MQTT - IKEA E2001/E2002 STYRBAR Remote control Universal blueprint - all actions + double click events - control lights, media players and more with Hooks - #136 by LewisSpring

I believe that is a bug that has been fixed.

Cheers

Hi,
thanks for your quick answer but sadly it didnā€™t fix the bug. Same error

"trace": {
    "last_step": "action/2",
    "run_id": "5c8b1a28fc5e2d14f76dc556b3e6adf1",
    "state": "stopped",
    "script_execution": "error",
    "timestamp": {
      "start": "2023-11-06T19:07:04.720298+00:00",
      "finish": "2023-11-06T19:07:04.759488+00:00"
    },
    "domain": "automation",
    "item_id": "1699208965561",
    "error": "not a valid value for dictionary value @ data['entity_id']",
    "trigger": "event 'deconz_event'",

I try this plugin, use the ZHA and configurate the Ikea Styrbar and detects the actions but dont do nothingā€¦

Whats wrong?
work with another Styrbar Blueprint, but not with this oneā€¦