Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug - Ikea E2002 Styrbar Brightness/Up,Down Hold action doesn't work #399

Open
1 task
LewisSpring opened this issue Aug 29, 2022 · 32 comments
Open
1 task
Labels
blueprint An issue related to a blueprint bug Something isn't working

Comments

@LewisSpring
Copy link

LewisSpring commented Aug 29, 2022

Blueprint name

Controller - IKEA E2001/E2002 STYRBAR Remote control

Home Assistant Core Version

2022.8.7

Home Assistant Installation Type

Home Assistant Container

Description

The remote works perfectly using both the hook and automation blueprints, except for the up and down button hold action, which does not do anything.

Automation YAML config

alias: Hook - Light
description: ""
use_blueprint:
  path: EPMatt/light.yaml
  input:
    controller_device: xxxx
    controller_model: IKEA E2001/E2002 STYRBAR Remote control
    light: light.ikea
    light_color_mode: Hue - Saturation
    brightness_steps_short: 20
    brightness_steps_long: 5

To Reproduce

Press and hold either up or down button.

Expected behavior

Hook automation controls the brightness of the bulb.

Actual Behaviour

No changes to the bulb brightness.

Additional Details

  • I'd like to help developing a fix for this issue.

Screenshots

No response

Additional context

No response

@LewisSpring LewisSpring added blueprint An issue related to a blueprint bug Something isn't working labels Aug 29, 2022
@ioExpander
Copy link

Hi. I had the same issue and it seems that your proposal here is working fine. I'm going to run some more tests to confirm. Do you want to open a PR to help fix the issue for everyone using this repo ? Otherwise I could do it.

@LewisSpring
Copy link
Author

LewisSpring commented Sep 12, 2022

I will open a pull request, no worries. I'll also add the fix for the release action that this comment has.

Edit: I wasn't entirely sure how to implement the release action fix, I've not made that change. Please feel free to have a go.

@crazytil
Copy link

I am having the same issue with an e1810. Any ideas on how to fix it?

@LewisSpring
Copy link
Author

I am having the same issue with an e1810. Any ideas on how to fix it?

You can try doing the action on the remote and viewing the content of the helper associated to the automation. Then check the automation and see if the value of the action and the value of the helper match. If they don't, change it in the .yaml. You can upload your changes into a gist and try it in HASS.

@klemmari1
Copy link

klemmari1 commented Oct 9, 2022

Edit: I wasn't entirely sure how to implement the release action fix, I've not made that change. Please feel free to have a go.

Fixed the release action in my fork but works only on ZHA and probably breaks the other integrations:
main...fd61dd0

Direct link to file if you want to try the blueprint:
https://github.com/klemmari1/awesome-ha-blueprints/blob/fix-holding/blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml

Credit to Luis Sismeiro for figuring it out in:
https://community.home-assistant.io/t/zha-deconz-zigbee2mqtt-ikea-e2001-e2002-styrbar-remote-control-universal-blueprint-all-actions-double-click-events-control-lights-media-players-and-more-with-hooks/354176/18

@LewisSpring
Copy link
Author

@klemmari1
Just had chance to test this out. It definitely seems better than before.
Tweaking the Hook automation at the moment to get the best results.

@Ragingfire105
Copy link

Edit: I wasn't entirely sure how to implement the release action fix, I've not made that change. Please feel free to have a go.

Fixed the release action in my fork but works only on ZHA and probably breaks the other integrations: main...fd61dd0

Direct link to file if you want to try the blueprint: https://github.com/klemmari1/awesome-ha-blueprints/blob/fix-holding/blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml

Credit to Luis Sismeiro for figuring it out in: https://community.home-assistant.io/t/zha-deconz-zigbee2mqtt-ikea-e2001-e2002-styrbar-remote-control-universal-blueprint-all-actions-double-click-events-control-lights-media-players-and-more-with-hooks/354176/18

Thank you for this temp fix. I have been fighting this for over an hour.

@LewisSpring
Copy link
Author

@klemmari1 Just had chance to test this out. It definitely seems better than before. Tweaking the Hook automation at the moment to get the best results.

After testing and fiddling with the brightness change steps, I'm happy that these changes fix the issue with the Up/Down hold actions.

I didn't mention it on this issue, but I am having issues with the left/right hold actions - same issue, it doesn't stop if you release. If anybody else experiences this, I can create a second issue to report this - or we can continue it here.

@JamieBriers
Copy link

I bought some of these Styrbars last night and have been fighting this all morning! Finally thought to check the GitHub issues.

Could you advise on what the current best solution is, and how to implement it?

Thanks!

@klemmari1
Copy link

klemmari1 commented Oct 18, 2022

I didn't mention it on this issue, but I am having issues with the left/right hold actions - same issue, it doesn't stop if you release. If anybody else experiences this, I can create a second issue to report this - or we can continue it here.

Hmm, for me the left/right hold actions work without issues. What's your config on the controller blueprint? Do you have the "Last Controller Event" helper input defined? Do you use double tap actions? Do you have the optional button long press toggles checked (for example "Left button long press - loop until release")?

You can check what the controller outputs if you go to "Logbook" in HA and look for the "Last Controller Event" (the helper input) values. For me it shows this when holding right button:

Last Controller Event changed to {"a": "hold_3328_0" ...

@klemmari1
Copy link

klemmari1 commented Oct 18, 2022

Could you advise on what the current best solution is, and how to implement it?

What's your issue exactly? If you want to try out the blueprint, just go to blueprints in HA and click "Import Blueprint" and paste the link. For example https://github.com/klemmari1/awesome-ha-blueprints/blob/fix-holding/blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml

@LewisSpring
Copy link
Author

I didn't mention it on this issue, but I am having issues with the left/right hold actions - same issue, it doesn't stop if you release. If anybody else experiences this, I can create a second issue to report this - or we can continue it here.

Hmm, for me the left/right hold actions work without issues. What's your config on the controller blueprint? Do you have the "Last Controller Event" helper input defined? Do you use double tap actions? Do you have the optional button long press toggles checked (for example "Left button long press - loop until release")?

You can check what the controller outputs if you go to "Logbook" in HA and look for the "Last Controller Event" (the helper input) values. For me it shows this when holding right button:

Last Controller Event changed to {"a": "hold_3328_0" ...

Hi klemmari1,
Config: https://gist.github.com/LewisSpring/394704c99967f98f0850480cb50006d6
The last controller event helper input is defined.
I'm not using the double tap actions.
I've tried with the long press toggles on and off - no change in behavior.

The helper values for holding right is:

{"a": "press_2_0_0", "t": 1666202454.307356}
{"a": "hold_3328_0", "t": 1666202455.298108}
{"a": "release_-32279", "t": 1666202457.526399}

Seems normal to me.
Thanks :-)

@LewisSpring
Copy link
Author

LewisSpring commented Dec 9, 2022

FYI for the benefit of people watching this issue: Update from Luis Sismeiro.
https://community.home-assistant.io/t/zha-deconz-zigbee2mqtt-ikea-e2001-e2002-styrbar-remote-control-universal-blueprint-all-actions-double-click-events-control-lights-media-players-and-more-with-hooks/354176/34

I've not tested this yet, please give feedback if you do.

@lsismeiro
Copy link

@LewisSpring Let's see if someone test it also, is working fine for me. By the way, I created a new file because the current blueprint version has a helper size optimization that was not in the file I made available before. I updated the previous post with the link to the new file.
https://community.home-assistant.io/t/zha-deconz-zigbee2mqtt-ikea-e2001-e2002-styrbar-remote-control-universal-blueprint-all-actions-double-click-events-control-lights-media-players-and-more-with-hooks/354176/35
Regards, Luis Sismeiro

@simon-mettler
Copy link

Tested it (the updated version from @lsismeiro), works fine for me 👍 Thank you :)

@lsismeiro
Copy link

lsismeiro commented Dec 13, 2022

Tested it (the updated version from @lsismeiro), works fine for me 👍 Thank you :)

Good to know that is working fine for you and the hours (I'm not a developer) I invested in it are helpful for someone else. Besides myself I don't know anyone who has used it, thank you for testing it.

@LewisSpring
Copy link
Author

LewisSpring commented Dec 13, 2022

Tested it (the updated version from @lsismeiro), works fine for me 👍 Thank you :)

Yep, Can concur! Thanks Luis.
I'm very interested in pushing for this to be pulled. (#411)
I've updated the pull request with your code if that's alright with you?

@lsismeiro
Copy link

Yep, Can concur! Thanks Luis. I'm very interested in pushing for this to be pulled. (#411) I've updated the pull request with your code if that's alright with you?

I'm glad it works for more people than me. Please update the pull request with my code so everybody can benefit from the fix.

@klemmari1
Copy link

klemmari1 commented Mar 20, 2023

The long presses "got stuck" again for me.

Eventually I got it working again by increasing the max length of the last controller event helper to 255. By default it is 100 characters which was not enough to store the hold up or down button text so it failed to save it.

@soxhi8
Copy link

soxhi8 commented Apr 14, 2023

Still having issues with this, with my Zigbee2MQTT setup and the latest fix version from the forum (https://community.home-assistant.io/t/zha-deconz-zigbee2mqtt-ikea-e2001-e2002-styrbar-remote-control-universal-blueprint-all-actions-double-click-events-control-lights-media-players-and-more-with-hooks/354176/35) and max helper length set to 255.

Long press actions do loop, but show huge delays, not matter the step size or call-type (brightness change for device directly or light-service). It is not smooth at all. Does someone have it up and running smoothly at the moment?

@giraz82
Copy link

giraz82 commented Jul 2, 2023

Still having issues with this, with my Zigbee2MQTT setup and the latest fix version from the forum (https://community.home-assistant.io/t/zha-deconz-zigbee2mqtt-ikea-e2001-e2002-styrbar-remote-control-universal-blueprint-all-actions-double-click-events-control-lights-media-players-and-more-with-hooks/354176/35) and max helper length set to 255.

Long press actions do loop, but show huge delays, not matter the step size or call-type (brightness change for device directly or light-service). It is not smooth at all. Does someone have it up and running smoothly at the moment?

I also have loop issue on long press for up/down button.
Associated light via hook goes to 100% or 0%, even if I release the button just after long press is triggered.
I tried to check (Optional) Up button long press - loop until release with no luck.
Any suggestion would be appreciated.

@giraz82
Copy link

giraz82 commented Jul 3, 2023

Ok I think this is the solution: #546
Thanks to @LordSushiPhoenix

@bit111
Copy link

bit111 commented Jul 19, 2023

Hi,
I read all posts, tried to import edited version of @LewisSpring (https://github.com/LewisSpring/awesome-ha-blueprints/blob/380130b3a8b87037402b0f1da55e93635737804f/blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml) and increased to 255 my input_text helper but up/down long press button still don't work.
I am using HA Core 2023..4.4.

How can I solve this issue?

@LewisSpring
Copy link
Author

LewisSpring commented Jul 19, 2023

@bit111
The latest fix (#411 ) will only work for 2023.6.0 and later as the events that ZHA reports were changed after that version.
You might be able to get a older version of the PR.

It's an unfortunate problem that has been discussed on the PR.

@bit111
Copy link

bit111 commented Jul 19, 2023

@LewisSpring where can I find the full path to the yaml? in (#411) fix I cannot find the code.
Finally, can you tell me where version of your code works with 2023.4 HA version?
Thanks.

@LewisSpring
Copy link
Author

@MikeGuest
Copy link

MikeGuest commented Jul 23, 2023

Hi.

Thanks for your work on this. I'm definitely seeing an improvement. However I have a strange issue.

I'm just using a standard hold action (not loop) and while the up hold is now working (it wasn't originally) the down hold still does nothing. i'm calling service light.turn_off - the same call is working if i assign it to the right button.

I'm running the E2002 version of the styrbar

Any clues or any information I can give you to help you to advise please?

HA: 2023.7.1
Trace shows that the message received is "move_MoveMode.Down_83_0_0"
Thanks

EDIT: Seems to be working after an update to 2023.7.3. hopefully it remains so

Thanks again

@eugeugov
Copy link

eugeugov commented Oct 27, 2023

Tested Ikea e2002 in ZHA and working as it should (incl. long press UP/DOWN) https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2Flsismeiro%2Fawesome-ha-blueprints%2Fblob%2Fmain%2Fblueprints%2Fcontrollers%2Fikea_e2001_e2002%2Fikea_e2001_e2002.yaml

@LewisSpring
Copy link
Author

Hi @eugeugov Glad it works.

Apologies to any followers of the issue for lack of updates - the link above will let you install the latest version of the blueprint from @lsismeiro 's repository where the latest changes are being added.

@neuronflow

This comment was marked as resolved.

@neuronflow

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blueprint An issue related to a blueprint bug Something isn't working
Projects
None yet
Development

No branches or pull requests