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

Support for E1810 as media player controller #11

Merged
merged 2 commits into from
Jan 17, 2020
Merged

Support for E1810 as media player controller #11

merged 2 commits into from
Jan 17, 2020

Conversation

EPMatt
Copy link
Contributor

@EPMatt EPMatt commented Jan 17, 2020

The Ikea E1810, with its 5 buttons and all the different events it can fire, is a feature-rich and flexible device. Given its versatility due to its design, it is not only suitable for controlling light brightness and temperature, but works perfectly also as a media player controller.

This PR enables support for the E1810 as a media player controller (both for zigbee2mqtt and deCONZ). Actions are mapped as it follows :

  • brightness_up_hold: volume up (hold, multiple steps)
  • brightness_up_release: volume up (release)
  • brightness_up_click: volume up (single step)
  • brightness_down_hold: volume down (hold, multiple steps)
  • brightness_down_release: volume down (release)
  • brightness_down_click: volume down (single step)
  • toggle: play/pause
  • arrow_right_click: next track
  • arrow_left_click: previous track

The following actions are not currently being used by this integration:

  • arrow_left_hold
  • arrow_left_release
  • arrow_right_hold
  • arrow_right_release

@xaviml are there any media player features which you think could be nice to map to those unused actions?

@xaviml
Copy link
Owner

xaviml commented Jan 17, 2020

Hi @EPMatt,

Thanks for your contribution. This is something I was thinking to do. For the moment we could leave as it is, but I would like to implement the seek position (forward and backwards) for the 2 actions left. However, to do so, I need to refactor the logic I have for the brightness and color temperature from the light, so we don't have duplicated code.

@xaviml xaviml merged commit f551ff8 into xaviml:master Jan 17, 2020
@xaviml xaviml mentioned this pull request Jan 17, 2020
@EPMatt EPMatt deleted the e1810-mediaplayer-controller branch January 17, 2020 21:40
@EPMatt
Copy link
Contributor Author

EPMatt commented Jan 17, 2020

Hi @xaviml,
You're welcome! I'm happy to contribute to this cool project. :)
Yeah, track seek is a good feature to have for the controller. If needed, I could help with the refactor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants