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

IKEA E1810 long press not working correctly #46

Closed
jullit31 opened this issue Apr 24, 2021 · 13 comments
Closed

IKEA E1810 long press not working correctly #46

jullit31 opened this issue Apr 24, 2021 · 13 comments
Labels
blueprint An issue related to a blueprint bug Something isn't working documentation Improvements or additions to documentation

Comments

@jullit31
Copy link

Thank you for taking the time to report here! 🎉

Please don't delete any part of the template, since keeping the provided structure will help maintainers to process your request more rapidly.

This template should only be used to report a bug with a blueprint. If this is not your case, you can choose a different issue template. If you have a question instead, please open a discussion here.

*=required

Bug Details*

  • Blueprint name: IKEA E1524/E1810 5-Button Remote
  • Home Assistant Core Version: 2021.4.6
  • Home Assistant Installation Type: Home Assistant OS

Description*

Long pressing the center, left or right button does not work as intended. The up and down button work fine.

Automation YAML config*

alias: Controller - Tisch
description: ''
use_blueprint:
  path: EPMatt/ikea_e1524_e1810.yaml
  input:
    integration: deCONZ
    controller_device: 17bb609d7a03b50403259f3adf62aff3
    action_button_down_long:
      - type: toggle
        device_id: a25e30293914d399998ffde669c069b7
        entity_id: light.bild_n
        domain: light
    action_button_center_long:
      - type: toggle
        device_id: a25e30293914d399998ffde669c069b7
        entity_id: light.bild_n
        domain: light
    action_button_left_long:
      - type: toggle
        device_id: a25e30293914d399998ffde669c069b7
        entity_id: light.bild_n
        domain: light
    action_button_right_long:
      - type: toggle
        device_id: a25e30293914d399998ffde669c069b7
        entity_id: light.bild_n
        domain: light
    action_button_up_long:
      - type: toggle
        device_id: a25e30293914d399998ffde669c069b7
        entity_id: light.bild_n
        domain: light
    action_button_left_short:
      - type: toggle
        device_id: 5c34876c756d5d1b68c3203d6a140171
        entity_id: light.tisch_fenster_n
        domain: light
    action_button_right_short:
      - type: toggle
        device_id: 5c34876c756d5d1b68c3203d6a140171
        entity_id: light.tisch_fenster_n
        domain: light
    action_button_up_short:
      - type: toggle
        device_id: 5c34876c756d5d1b68c3203d6a140171
        entity_id: light.tisch_fenster_n
        domain: light
    action_button_down_short:
      - type: toggle
        device_id: 5c34876c756d5d1b68c3203d6a140171
        entity_id: light.tisch_fenster_n
        domain: light
    action_button_center_short:
      - type: toggle
        device_id: 5c34876c756d5d1b68c3203d6a140171
        entity_id: light.tisch_fenster_n
        domain: light

To Reproduce*

Steps to reproduce the issue:

  1. Set up above automation
  2. Press a button on the remote
  3. See error

Expected behavior*

Any short press toggles light.tisch_fenster_n, any long press toggles light.bild_n once.

Actual Behaviour*

Any short press toggles light.tisch_fenster_n ✔️
Long pressing the up or down button toggles light.bild_n once ✔️
Long pressing the left or right button continually toggles light.tisch_fenster_n for as long as the button is pressed ❌
Long pressing the center button toggles light.tisch_fenster_n instantly and (assuming you keep it pressed for that long) approx. 4 seconds later toggles light.bild_n

Additional Details*

The E1810 is brand new.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

@jullit31 jullit31 added blueprint An issue related to a blueprint bug Something isn't working labels Apr 24, 2021
@EPMatt
Copy link
Owner

EPMatt commented Apr 24, 2021

Hi @jullit31, thank you for reporting here.

Regarding the action_button_center_long, please note that the long press on the center button does not work as the long press for other buttons, due to how the controller fires events regarding this one: when long pressing the center button, the controller first fires che button_center_short event, then after a couple of seconds it sends button_center_long as well. Unfortunately there's no way to tweak this behaviour, but I noticed this info is missing in the blueprint's documentation page. I'll update it to clearly state this important warning.

For what concerns the other two events, could you please share screenshots from the Home Assistant automation trace tool, after running the automation by pressing either the left or right buttons? Moreover, do you notice any entry in the Home Assistant logs regarding this blueprint?

Thanks!

@EPMatt EPMatt added the documentation Improvements or additions to documentation label Apr 24, 2021
@jullit31
Copy link
Author

What a strange design choice by Ikea, I can't think of any situation in which this behaviour would be desirable...
Anyway, this is what it looks like after a short press of the right button:
image
It seems to be the same thing after a long press:
image
When long pressing, individual events, one second apart from one another, are recorded.
There are no log entries.

And thank you so much for sharing these awesome blueprints!

@EPMatt
Copy link
Owner

EPMatt commented Apr 25, 2021

Hi @jullit31, thank you for your feedback.

That's a really strange behaviour, I've just checked the blueprint and it seems fine to me. I suspect your controller is not firing the same deCONZ events we've defined in the blueprint, maybe due to the fact it's the newer E1810 model.

Could you please check which deCONZ events the controller is firing? You can complete the operation with the following steps:

  1. Go to Developer Tools -> Events in your Home Assistant web UI
  2. In the Listen to events section type deconz_event, then click on start listening
  3. Long press the right button once. You should see one or more events appear on the screen
  4. Paste the events you've received here

By the way, I'm really happy these blueprints are useful for you. :)

Thank you for your help!

@jullit31
Copy link
Author

Sure, here you go:

Event 1 fired 15:35:
{
    "event_type": "deconz_event",
    "data": {
        "id": "schalter_tisch",
        "unique_id": "60:a4:23:ff:fe:f5:a0:33",
        "event": 5002,
        "device_id": "17bb609d7a03b50403259f3adf62aff3"
    },
    "origin": "LOCAL",
    "time_fired": "2021-04-25T13:35:20.717696+00:00",
    "context": {
        "id": "236fd295dd4afc1b1d4d8e09d442f7d5",
        "parent_id": null,
        "user_id": null
    }
}
Event 0 fired 15:35:
{
    "event_type": "deconz_event",
    "data": {
        "id": "schalter_tisch",
        "unique_id": "60:a4:23:ff:fe:f5:a0:33",
        "event": 5002,
        "device_id": "17bb609d7a03b50403259f3adf62aff3"
    },
    "origin": "LOCAL",
    "time_fired": "2021-04-25T13:35:19.409148+00:00",
    "context": {
        "id": "0382e1e83abdb41cdd251c766e6b1c09",
        "parent_id": null,
        "user_id": null
    }
}

I held the button long enough for the light to turn on and off again.

@EPMatt
Copy link
Owner

EPMatt commented Apr 25, 2021

Hi @jullit31, thank you for your feedback,

your controller is firing 5002, which is the deCONZ event associated with a button_right_short action.

Just as a confirmation, could you please try again by keeping the right button pressed for ~10 seconds? This way we're sure the event we're getting from your controller is relative to a long press.

Thanks!

@jullit31
Copy link
Author

Here it is:

Event 11 fired 17:47:
{
    "event_type": "deconz_event",
    "data": {
        "id": "schalter_tisch",
        "unique_id": "60:a4:23:ff:fe:f5:a0:33",
        "event": 5002,
        "device_id": "17bb609d7a03b50403259f3adf62aff3"
    },
    "origin": "LOCAL",
    "time_fired": "2021-04-25T15:47:07.354012+00:00",
    "context": {
        "id": "08f75c4d24f0112f56d1ceab8d330d42",
        "parent_id": null,
        "user_id": null
    }
}
Event 10 fired 17:47:
{
    "event_type": "deconz_event",
    "data": {
        "id": "schalter_tisch",
        "unique_id": "60:a4:23:ff:fe:f5:a0:33",
        "event": 5002,
        "device_id": "17bb609d7a03b50403259f3adf62aff3"
    },
    "origin": "LOCAL",
    "time_fired": "2021-04-25T15:47:06.045560+00:00",
    "context": {
        "id": "b4c1b242e5c885a501c090caefd93f19",
        "parent_id": null,
        "user_id": null
    }
}
Event 9 fired 17:47:
{
    "event_type": "deconz_event",
    "data": {
        "id": "schalter_tisch",
        "unique_id": "60:a4:23:ff:fe:f5:a0:33",
        "event": 5002,
        "device_id": "17bb609d7a03b50403259f3adf62aff3"
    },
    "origin": "LOCAL",
    "time_fired": "2021-04-25T15:47:04.743794+00:00",
    "context": {
        "id": "cf404458b790254fdc9f8f64e3ad3923",
        "parent_id": null,
        "user_id": null
    }
}
Event 8 fired 17:47:
{
    "event_type": "deconz_event",
    "data": {
        "id": "schalter_tisch",
        "unique_id": "60:a4:23:ff:fe:f5:a0:33",
        "event": 5002,
        "device_id": "17bb609d7a03b50403259f3adf62aff3"
    },
    "origin": "LOCAL",
    "time_fired": "2021-04-25T15:47:03.438689+00:00",
    "context": {
        "id": "f27db64eb029d07b944319856fe613b7",
        "parent_id": null,
        "user_id": null
    }
}
Event 7 fired 17:47:
{
    "event_type": "deconz_event",
    "data": {
        "id": "schalter_tisch",
        "unique_id": "60:a4:23:ff:fe:f5:a0:33",
        "event": 5002,
        "device_id": "17bb609d7a03b50403259f3adf62aff3"
    },
    "origin": "LOCAL",
    "time_fired": "2021-04-25T15:47:02.128587+00:00",
    "context": {
        "id": "0108268dc062d85ad894b5c9a8175443",
        "parent_id": null,
        "user_id": null
    }
}
Event 6 fired 17:47:
{
    "event_type": "deconz_event",
    "data": {
        "id": "schalter_tisch",
        "unique_id": "60:a4:23:ff:fe:f5:a0:33",
        "event": 5002,
        "device_id": "17bb609d7a03b50403259f3adf62aff3"
    },
    "origin": "LOCAL",
    "time_fired": "2021-04-25T15:47:00.827432+00:00",
    "context": {
        "id": "ba8d60d484684bb877f5ef828b1bd0bd",
        "parent_id": null,
        "user_id": null
    }
}
Event 5 fired 17:46:
{
    "event_type": "deconz_event",
    "data": {
        "id": "schalter_tisch",
        "unique_id": "60:a4:23:ff:fe:f5:a0:33",
        "event": 5002,
        "device_id": "17bb609d7a03b50403259f3adf62aff3"
    },
    "origin": "LOCAL",
    "time_fired": "2021-04-25T15:46:59.523113+00:00",
    "context": {
        "id": "3d3c3a9179085ab78e1cfe6b2b21e7e0",
        "parent_id": null,
        "user_id": null
    }
}
Event 4 fired 17:46:
{
    "event_type": "deconz_event",
    "data": {
        "id": "schalter_tisch",
        "unique_id": "60:a4:23:ff:fe:f5:a0:33",
        "event": 5002,
        "device_id": "17bb609d7a03b50403259f3adf62aff3"
    },
    "origin": "LOCAL",
    "time_fired": "2021-04-25T15:46:58.212663+00:00",
    "context": {
        "id": "967752796d58672f39f509af80607eb2",
        "parent_id": null,
        "user_id": null
    }
}
Event 3 fired 17:46:
{
    "event_type": "deconz_event",
    "data": {
        "id": "schalter_tisch",
        "unique_id": "60:a4:23:ff:fe:f5:a0:33",
        "event": 5002,
        "device_id": "17bb609d7a03b50403259f3adf62aff3"
    },
    "origin": "LOCAL",
    "time_fired": "2021-04-25T15:46:56.913615+00:00",
    "context": {
        "id": "c232d1d3bbd8bcd935651486affc0702",
        "parent_id": null,
        "user_id": null
    }
}
Event 2 fired 17:46:
{
    "event_type": "deconz_event",
    "data": {
        "id": "schalter_tisch",
        "unique_id": "60:a4:23:ff:fe:f5:a0:33",
        "event": 5002,
        "device_id": "17bb609d7a03b50403259f3adf62aff3"
    },
    "origin": "LOCAL",
    "time_fired": "2021-04-25T15:46:55.603685+00:00",
    "context": {
        "id": "48f966ccf496306819739723f449d46a",
        "parent_id": null,
        "user_id": null
    }
}

@EPMatt
Copy link
Owner

EPMatt commented Apr 25, 2021

Hi @jullit31,

thank you. Are these event generated by you simply holding down the button for 10 sec, or are you clicking the button multiple times? I assume you're holding down the button to trigger the long action.

I'm asking because this is such a strange behaviour, which if confirmed requires to rewrite the blueprint specifically for the E1810 controller.

Thanks!

@jullit31
Copy link
Author

Exactly, I pressed the button, held it down and released it after 10 seconds or so.
I happen to have a second E1810, which I now connected, and it does the very same thing...

@EPMatt
Copy link
Owner

EPMatt commented Apr 25, 2021

Hi @jullit31,

I've found a similar issue related to the E1810 on ControllerX, an AppDaemon app which integrates controllers in a similar way on how we're doing here with blueprints.

xaviml/controllerx#215

It seems to be an issue with the device itself. The OP solved the problem by changing the remote battery. If this does not work for you, I'd also try to reset the device to factory settings and repeat the pairing process with deCONZ.

Thank you!

@jullit31
Copy link
Author

Okay, so that's strange: I took the battery out of one of my remotes, measured the voltage, which was fine, put the same battery back in and the remote worked the way it should.
Then I did the same thing with the second remote, only without measuring the voltage, so the battery was taken out for only a few seconds. This was too short and the problem persisted. So I took the battery out again, waited for about a minute, put it back in and everything worked fine. Or so I thought.
A few minutes later I tried long pressing the right button again and it was back to the old behaviour. Meanwhile the first remote still worked fine. So I again took out the battery of the second remote, waited a bit, put it back in and now it works and seems to stay that way...
This should definitely be added to the documentation as well.

Thanks for all your help!

@EPMatt
Copy link
Owner

EPMatt commented Apr 27, 2021

Hi @jullit31, sorry for my late response.

Thank you for your feedback and explanation. I'm glad the issue is solved for you. :)

By the way, that's definitely a really strange behaviour, and interestingly it looks like it's only related to the newer E1810 model (I know many users have the blueprint set up with an E1524, but never had such problems with it). It seems that the old controller is working better than the new one. :)

This should definitely be added to the documentation as well.

I totally agree with you. I'll add a paragraph in the Additional Notes section and let you know as soon as it's available.

Thank you for reporting, and huge thanks for buying me a nice coffee! 🎉 I really appreciate your kind support, and I'm happy these blueprints are useful for you. :)

@EPMatt
Copy link
Owner

EPMatt commented Apr 27, 2021

Hi @jullit31,

I've just updated the docs with your suggested additions, both for the center long press behaviour and the issue with E1810 controllers sending bad events, including also the solution which worked for you. I hope the explanation included in the documentation is clear enough. :)

Thank you for your feedback. 👍🏻

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2022

Hi there,

🔒 This issue has been automatically locked since there has not been any recent activity after it was closed.
Please open a new ticket for related bugs.

Thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blueprint An issue related to a blueprint bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants