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

cannot use intermediate position and tilt/ventilaton #10

Closed
andy-st opened this issue Nov 11, 2019 · 8 comments
Closed

cannot use intermediate position and tilt/ventilaton #10

andy-st opened this issue Nov 11, 2019 · 8 comments
Assignees

Comments

@andy-st
Copy link

andy-st commented Nov 11, 2019

Accoding to the Elero Stick documentation, there are 5 commands:

image

I've defined a shutter like this:

    - platform: elero
      covers:
          rolloarbeitszimmer:
              serial_number: A503EN6C
              name: Arbeitszimmer
              channel: 1
              device_class: roller shutter
              supported_features:
                  - up
                  - down
                  - stop
                  - set_position
                  - set_tilt_position

It looks like this:

image

But if I use the sliders for position or tilt, just nothing happens.

I can then find in the log file:
2019-11-11 19:39:55 WARNING (SyncWorker_14) [custom_components.elero.cover] Elero - transmitter: 'A503EN6C' ch: '1' The set cover tilt position function is not implemented yet.

So directly I can only click on “open”, “stop” and “close”.
I would expect that there is also something to click on “move to intermediate position” and “move to ventilation position”. Both commands should work without giving an argument to this method. I mean, the Elero shutters only can execute e.g. “move to ventilation position”, but they do not support something like “move 30%”. The both positions “intermediate” and “ventilation” can be programmed separately and are stored in the shutter itself.

It would be great if there would a way how you could send the shutters to the predefined "intermediate position" and "tilt/ventilation". :-)

@W00D00 W00D00 self-assigned this Nov 16, 2019
@W00D00
Copy link
Owner

W00D00 commented Nov 19, 2019

Hi @andy-st,

The intermediate and ventilation functions are working well for me.
Based on your configuration, you have to add the 'open_tilt' and the 'close_tilt' functions to your config. The 'set_position' and the 'set_tilt_position' features alone are not enough. However, in the latest version of the Elero lib on the Github these two slider functions are not implemented. Please give me some time and I will implement a solution to the sliders.

Cover 'Position' and 'Tilt position' Sliders

Unfortunately, by default, the Position slider is not configurable on a cover so, the 'step' of the slider either. Thus, the 'set_position' and the 'set_tilt_position' functions are not usable. Another problem that the Elero devices are not supporting these functions.

For the Elero 'intermediate' function use the 'open_tilt' HA function and the Elero 'ventilation' function use the 'close_tilt' HA function.

Nevertheless, these controls are shown and useable only if the pop-up window of the given cover is open.

Alternative methods for the Elero 'intermediate' and the 'ventilation' functions:

  1. Call a Service

entities:

  • name: Intermediate
    service: cover.close_cover_tilt
    service_data:
    entity_id: cover.all_cover_group
    type: call-service
  • name: Ventilation
    service: cover.open_cover_tilt
    service_data:
    entity_id: cover.all_cover_group
    type: call-service
  1. An 'input_number' slider with automation.

input_number:
diningroom_set_position:
name: Position
mode: slider
initial: 0
min: 0
max: 100
step: 25

automation:

  • alias: diningroom_set_position
    trigger:
    platform: numeric_state
    entity_id: input_number.diningroom_set_position
    to: 25
    action:
    - service: cover.close_cover_tilt
    entity_id:
    - cover.diningroom
  1. An 'input_select' Scene with automation.

input_select:
scene_diningroom:
name: Scene
options:
- open
- close
- stop
- intermediate
- ventilation

automation:

  • alias: Diningroom scene
    trigger:
    platform: state
    entity_id: input_select.scene_diningroom
    to: intermediate
    action:
    - service: cover.close_cover_tilt
    entity_id:
    - cover.diningroom

I hope these will help you until I will deploy a new version of the Elero lib with new slider support.

Thanks

@andy-st
Copy link
Author

andy-st commented Nov 20, 2019

Hello @W00D00,

wow, thank you so much for your detailled description! 👍

I've now added all functions like this:

    - platform: elero
      covers:
          rolloarbeitszimmer:
              serial_number: A503EN6C
              name: Arbeitszimmer
              channel: 1
              device_class: roller shutter
              supported_features:
                  - up
                  - down
                  - stop
                  - set_position
                  - open_tilt
                  - close_tilt
                  - stop_tilt
                  - set_tilt_position

For the Elero 'intermediate' function use the 'open_tilt' HA function and the Elero 'ventilation' function use the 'close_tilt' HA function.
Nevertheless, these controls are shown and useable only if the pop-up window of the given cover is open.

So I understood that I should use

  • intermediate --> open_tilt
  • ventilation --> close_tilt

For me, it is still not working. :-( Here comes an example:

The shutter is opened and I open the pop-up window:

image

As you can see I can click only on "Close Tilt" ( = ventilation), but not on "Open Tilt" ( = intermediate)?
Anyways, when I click on "Close Tilt" the shutter is moving to the intemediate (!) position, but I still cannot click "Open Tilt":

image

So to summarize:

  • "Close Tilt" moves to intermediate position and not to the ventilation position.
  • "Open Tilt" I can never click, it is always grey-out in the pop-up window.

I am using also a simple Elero UniTec-868 remote control and this is working fine:

  • 2x clicks on "Open / Up" then the shutter moves to ventialation
  • 2x clicks on "Close / Down" then the shutter moves to the intermediate position

Do you have idea what could be wrong?
Is my understanding correct, that it should work with the two arrows in the pop-up window before I start working with the services / input number / input select / ...?

Thanks a ton again!

@andy-st
Copy link
Author

andy-st commented Nov 20, 2019

I did one more test with the development tools of HA:

I tried to call the following:

image

-> then the shutter is moved to "ventilation".

When calling "cover.close_cover_tilt" instead there, then the shutter is moved to "intermediate".

So for me ventilation / intermediate are mixed up (in reference to your description), but this would not be any problem for me! :-)

But anyways, I've no idea why I cannot click "open_cover_tilt" in the pop-up window of a shutter. :-(

Perhaps I'll go on wit the services / input numbers / input selects anyways in the next days (as far as I understand there I could replace intermediate / ventilation quite easily as it is working here the other way round....).

@W00D00
Copy link
Owner

W00D00 commented Nov 20, 2019

Hi @andy-st,

Great :) and very it is interesting.

  1. Intermediate and Ventilation are not working.
    No idea, why it does not work for you.

  2. The Intermediate and Ventilation are mixed up.
    It is not a big deal to change these functions. First, we need to verify that they are really in wrong order.

What do you think, we can discuss your issues online somehow? That would be more efficient than writing here. If yes, please share your skype name or facebook messenger link or something online messaging tool with me via mail istvan.szirtes@gmail.com and I will contact you. It would be more useful to see your HA install and config online via VNC maybe.

Thanks,

@andy-st
Copy link
Author

andy-st commented Nov 25, 2019

Hello @W00D00,

thank you for your feedback. I am very sorry, but unfortunately I am nearly never online when I am at home (because of my job and my family), so I would be very difficult to "meet" you live online. Also my private computer is not equipped with audio / headset / ...
I know Skype etc., but I am only using these tools in my job and business computers, but with them I cannot access my private HA. :-(

I also already thought about getting Nabu Casa Remote UI working, then it would be easier also to have such a meeting even when I am not at home, but then it would not be able to give feedback what happens in my house...

So I think it would be too difficult to organize an online meeting and find a time slot where we both would be available.
But I would be very happy if I could support you in doing tests, creating log files, testing test / debug versions or similar. In this case, please just let me know what I could do for you.

I am very sorry for that.

W00D00 added a commit that referenced this issue Dec 8, 2019
…osition slider with all Elero commands.

The ventilation/intermediate functions are mixed up correction. New position slider with all Elero commands.

See more #10
@andy-st
Copy link
Author

andy-st commented Dec 10, 2019

Thank you again @W00D00 for the effort and time you are spending for this library! You are my Home Assistant hero! :-)

I did a short test and feel, some things are still not absolutely correct.

Here the steps:

  1. The shutter is open:
    image

  2. I move the position slider zu 75%. According to the documentation the shutter should now move to the VENTILATION position:
    image
    But this is not the case - my shutter is moving to the INTERMEDIATE positon.

  3. A few seconds later the GUI is updated automatically and the slider jumps to the 25% position:
    image

So as far as I understand, the shutter now reports correctly, to be in INTERMEDIATE status.

The other way round it is quite similar:

  1. The shutter is opened (100%).
  2. I move the slider to 25% (INTERMEDIATE), but then the shutter is moved to VENTILATION and the slider moves automatically after a few seconds to 75%.

So the command and the status does not match to each other.

I think it is not important for the commands, but my shutters are defined in the following way, that INTERMEDIATE position is around 40 .. 60% and VENTILATION is around 5%. The setting, which position the INTERMEDIATE or the VENTILATION command does mean, can be set up in the shutter itself (with the normal hardware remote control). So everybody is free to define what INTERMEDIATE and VENTILATION does mean. So there might be people like me where VENTILATION position < INTERMEDIATE position, but you could also set it up that VENTILATION position > INTERMEDIATE position.

@W00D00
Copy link
Owner

W00D00 commented Dec 13, 2019

Hi @andy-st,

Please try the new version of the ELero lib. I did some modification based on your request.

What you have mentioned as a free setup for the vent and int positions, you can do it with my 2. alternative "An 'input_number' slider with automation." solution instead of the official cover position slider. Please see the readme.

I am waiting for your feedback.
Thanks,

@andy-st
Copy link
Author

andy-st commented Dec 14, 2019

@W00D00, thank you so much, tilt / intermediate work brilliant now!

@andy-st andy-st closed this as completed Dec 14, 2019
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

No branches or pull requests

2 participants