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

Tradfri Open/Close Remote #71

Closed
hwikene opened this issue Apr 30, 2020 · 9 comments
Closed

Tradfri Open/Close Remote #71

hwikene opened this issue Apr 30, 2020 · 9 comments
Assignees
Labels
new-device New device

Comments

@hwikene
Copy link

hwikene commented Apr 30, 2020

New Device Support

Device Information

  • Device Model: E1766
  • Device Description: Tradfri Open/Close Remote
  • Device Manufacturer: IKEA

Integrations

If possible, provide the event mappings for the different actions that can be performed on the controller. Specify the integration.

If you can provide mappings for multiple integrations, copy the section below as many times as needed.

Integration: deconz

Actions

  • button_z_press (up): 1002
  • button_z_hold (up): 1003
  • button_z_press (down): 2002
  • button_z_hold (down): 2003

Notes

(Optional) Additional notes for the integration, eg. known bugs, issues or limitations of the device for the specified integration.

@hwikene hwikene added the new-device New device label Apr 30, 2020
@xaviml
Copy link
Owner

xaviml commented Apr 30, 2020

Hi @hwikene,

Thank you for your interest in adding a new device to ControllerX. I will be creating a new controller (CoverController) to give the functionality that this button has with Ikea's original hub.

@xaviml
Copy link
Owner

xaviml commented Apr 30, 2020

Hi @hwikene

I just released ControllerX v2.6.0 with this controller: https://xaviml.github.io/controllerx/controllers/E1766

I also added the Cover Controller, so you are able to use this controller for lights, switches, and covers.

Let me know how it works :)

@xaviml xaviml closed this as completed Apr 30, 2020
@guymaurier
Copy link

Hi @xaviml,

I'm facing an issue with the E1766CoverController and its Click down → Close/Stop cover command. A first click will make the cover go down, however a second click will not stop it.
The Click up → Open/Stop cover works as expected, first click will open the cover, a second click will make it stop.

I'm using the E1766 switch along with IKEA's Fyrtur cover. Both are configured through deconz.

I've doubled checked that the switch is correctly sending out the events (click) as well as ensuring the cover is sending out state changes (closing with position state).

Could you please help in investigating this situation?
Thanks

@xaviml
Copy link
Owner

xaviml commented Oct 6, 2020

Hi @guymaurier,

Could you send the logs from AppDaemon for when that happens as well as the supported_features from your cover (you can extract that from Developer Tools)? I will need to see what is happening under the hoods.

Cheers,
Xavi M.

@trevorbenyack
Copy link

Hi, I just got my Fyrtur blinds working with deConz and ControllerX. It works... kind of. The issue is with the hold & release events. The way they are presented in the documentation doesn’t look correct. This remote behaves a tad differently than the on/off remote. I’ve listed below how the events should work:

1002 -> Doubles as both short and long press for opening the blinds, there’s no distinction.
1003 -> This is a release event. Only happens when the open button is long pressed. Should stop the blinds opening after a long press.
2002 -> Doubles as both short and long press for closing the blinds, there’s no distinction.
2003 -> This is a release event. Only happens when the close button is long pressed. Should stop the blinds closing after a long press.

As it is working now, the holding and releasing of either the close or open button does not stop the blind from closing/opening. I’m not super familiar with the underpinnings of Home Assistant, but I would think this is how they would work in an automation:

1002 -> cover.open_cover
1003 -> cover.stop_cover
2002 -> cover.close_clover
2004 -> cover.stop_cover

Hope this helps. If there’s any other information I can help with, please let me know. Thank you for all your work!

@xaviml
Copy link
Owner

xaviml commented Jan 5, 2021

Hi @trevorbenyack,

I was not aware of this behaviour for this controller. Right now, the default mapping for E1766CoverController for deCONZ is:

  • 1002: It opens if it is not moving, it stops if it is moving (opening/closing states)
  • 2002: It closes if it is not moving, it stops if it is moving (opening/closing states)

I think this is okay since it allows to toggle the functionality of the clicks depending on the state of the blinds (as long as it supports opening/closing actions, see #199). However, it is missing:

  • 1003: Stop cover
  • 2003: Stop cover

I will add these 2 new predefined actions to the E1766CoverController.

@xaviml
Copy link
Owner

xaviml commented Jan 5, 2021

Hi @trevorbenyack,

I added the changes to the dev branch. They will be in the next release, which will happen before next week. In the meantime, you can use the merge_mapping attribute to define the behaviour for 1003 and 2003 events.

Cheers,
Xavi M.

@xaviml
Copy link
Owner

xaviml commented Jan 12, 2021

The latest changes mentioned in this issue have been deployed in ControllerX v4.4.0.

@trevorbenyack
Copy link

Thanks for your work on this!

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

No branches or pull requests

4 participants