-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
[FEATURE REQUEST] Stop a cover that has no state reporting with one click after an open/close command has been sent. (Ikea 1743 Remote / Somfy IO Shutters)) #368
Comments
Hi @jaddel, Thank you for opening this issue. First of all, if you want to open a cover and stop it, you can either hold (as you mention) or click twice as long it is using the Secondly, you can already achieve this behaviour with the example_app:
module: controllerx
class: E1743CoverController
integration: z2m
controller: sensor.my_controller_action
mapping:
"on":
- open
- delay: 5 # Wait 5 seconds
- stop
"off": [close, {delay: 5}, stop] # You can also abbreviate like this Obviously, you will need to configure how many seconds you want to wait until it stops after open/close. Would this suit your needs? Regards, |
I think to use toggle_open/close could be a good workaround for now. For the second example you gave I'm not sure if you got me correct. If I read it right this is a sequence that gets fired once on / off is received. Would that also be possible? |
Hi @jaddel, Let me see if I understand your use case correctly. You would like to open and close a cover with just a single button controller (or with just one button from one controller with multiple buttons). Then, let's imagine the following scenario:
Is this sequence correct and what you would like to have? If so, I can help you out with the configuration for such a use case. Also, in this case, there is no need to configure a timing because the covers (normally) have the following states:
So, if the state is opening or closing, ControllerX would know if it is moving or not, so it can be stopped. Regards, |
Hi @xaviml, this is kind of what I want, I'm sorry if expressed my self not precise enough. I'll try to describe it better. Setup:I'm using the E1743 in combination Somfy IO shutters. Feature Description:I tried to build the feature with the automation editor in Home Assistant and it works as expected. I hope this helps to describe the expected behavior.
Implementation Example:
I hope this describes it well enough. :) Br. Jaddel |
Hi @jaddel, I now understand better the problem you are having. It seems to be a very specific use case and it is what you can achieve out of the box with toggle_open and toggle_close if the cover would have the opening and closing state as other covers do. This is the ControllerX equivalent configuration to achieve the same as the HA automation you showed above: office_shade2_when_moving:
module: controllerx
class: E1743CoverController
controller: 68:0a:e2:ff:fe:81:32:4d
integration: zha
cover: cover.office_shade_2
mapping:
"on": stop
"off": stop
constrain_input_boolean: input_boolean.cover_helper,off
office_shade2_when_not_moving:
module: controllerx
class: E1743CoverController
controller: 68:0a:e2:ff:fe:81:32:4d
integration: zha
cover: cover.office_shade_2
mode: restart
mapping:
"on":
- open
- service: input_boolean.turn_on
entity_id: input_boolean.cover_helper
- delay: 30
- service: input_boolean.turn_off
entity_id: input_boolean.cover_helper
"off":
- close
- service: input_boolean.turn_on
entity_id: input_boolean.cover_helper
- delay: 30
- service: input_boolean.turn_off
entity_id: input_boolean.cover_helper
constrain_input_boolean: input_boolean.cover_helper,on It is important to keep the cover_helper since ControllerX is stateless and it needs a way to keep the state you are tracking. I am not going to discard your idea of the timer for covers that do not have the opening and closing states. So I will keep this issue open to add this feature to ControllerX. Regards, |
Many thanks for the given example. It helps a lot!
This sound great! |
Duration of the cover to open and/or close in seconds, so `toggle_open` and `toggle_close` can stop the cover if the cover is still moving. This is recommended to be used when the cover does not report `opening` and `closing` states, otherwise it is not necessary. related to #368
Hi @jaddel, I just added the office_shade2:
module: controllerx
class: E1743CoverController
controller: 68:0a:e2:ff:fe:81:32:4d
integration: zha
cover_duration: 30 # The time duration the cover needs to full open or close.
cover: cover.office_shade_2 The description of the attribute is:
By default, the attribute is not considered unless is specified for use cases like yours. Now if you press the "on" or "off" button while the timer of I released v4.17.0b1, so you can try the above config in that ControllerX version. Let me know if this works for you. Regards, |
I just tried this configuration but it's not doing anything. Version: v.4.17.0b1
What is strange that I have this in the logs even though there is no app configured with that name at the moment.
|
I just double checked the remote via zha_event in the developer section. I'll check it again with a working remote and report back. |
Hi @jaddel, It looks like the appdaemon logs do not match that configuration. The app is called living_room_shade, and there is no E1743StatelessCoverController class. Regards, |
yes I know, but I still had that entry in the logs which did't make any sense since it wasn't configured. Today I restarted the host and now everything works as expected. Thank you very much for adding this! |
Feature Request
Is your feature request related to a problem?
I'm always frustrated that I have to hold_release my cover remotes when I want to stop a cover in a certain position.
Describe the solution / feature you'd like
When ever I press a remote to open/close a cover the app/automation saves the last command and starts a timer for a configurable amount of time e.g the maximum time the cover need's to close. If now in the defined timeframe the same button is pressed again it will default to e.g
cover.stop_cover
.The timer is needed if one want's to fully close/open the cover and later on uses a different way to open it, so that on the next use the remote will sent an open / close command again and not
cover.stop_cover
.The text was updated successfully, but these errors were encountered: