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

Sliding for opening the covers in HomeAssistant #356

Open
fft1010 opened this issue May 3, 2024 · 4 comments
Open

Sliding for opening the covers in HomeAssistant #356

fft1010 opened this issue May 3, 2024 · 4 comments

Comments

@fft1010
Copy link

fft1010 commented May 3, 2024

Hi,
I do not exactly know if this is the right place, but I think here is the target audience :-) By accident I found out, that I could open the sliders in any opening percentage I want to use. In another small project I am using "sliders" from here: https://github.com/thomasloven/lovelace-slider-entity-row

If you combine this, you can get something like

screen-2024-05-03-06-52-03

which is a card in HA that looks like: (Rolladen is one cover, Rolläden are more than one cover.

type: entities
state_color: true
title: Rolläden
show_header_toggle: true
entities:
  - entity: cover.rolladen
    name: links
    type: custom:slider-entity-row
    step: 1
    full_row: true
    toggle: false
    hide_state: false
    hide_when_off: false
    show_icon: false
    colorize: true
  - entity: cover.l1
    name: L1
    type: custom:slider-entity-row
    step: 1
    toggle: true
  - entity: cover.l2
    name: L2
    type: custom:slider-entity-row
    step: 1
    toggle: true
  - entity: cover.l3
    name: L3
    type: custom:slider-entity-row
    step: 1
    toggle: true
  - entity: cover.l4
    name: L4
    type: custom:slider-entity-row
    step: 1
    toggle: true
  - entity: cover.r1
    name: R1
    type: custom:slider-entity-row
    step: 1
    toggle: true
  - entity: cover.r2
    name: R2
    type: custom:slider-entity-row
    step: 1
    toggle: true
  - entity: cover.r3
    name: R3
    type: custom:slider-entity-row
    step: 1
    toggle: true
  - entity: cover.r4
    name: R4
    type: custom:slider-entity-row
    step: 1
    toggle: true

in ESPSSomfy I had to add a "repeat command" for every of my 8 covers. 2 was enough. Before not adding this, not all covers seem to get the commands.
repeat-command

I hope this helpy others as well. If you think there is a better place for this, than just tell me here, and I can put it somewhere else.

Have fun.
Juergen

@alka79
Copy link

alka79 commented May 4, 2024

Nice finding :) thanks for sharing. Maybe readers here https://community.home-assistant.io/t/esp-somfy-rts-integration/543401 would like it too.

PS: I wonder how you got such precise timings for up and down.

@fft1010
Copy link
Author

fft1010 commented May 4, 2024

Hi @alka79,
I just did the timing for each cover for up and down as described in the doc here in espsomfy.
setup -> somfy -> shades -> individual shade . Than just use a stopwatch for timing, and put in the time in ms I think. Be sure to stop up and down individually, as at least my shades are way different in up and down.

works very accurat, but as the shades do not feedbak their position, it is not working in 100%, only 99,5 :-)

thanks
Juergen

@alka79
Copy link

alka79 commented May 4, 2024

I was surprised by your setting at 19180 ms. That is quite precise ! I was thinking you had some kind of electronic device to measure.
I use a stopwatch too on my smartphone. But I only trust my accuracy at half a second (at best) ;)

@fft1010
Copy link
Author

fft1010 commented May 5, 2024

Hi @alka79,
that‘s true for sure and I was aware of it, but as I did not know if I was too fast or too slow, I simply took what was shown (for betterr results I should measure each cover 10 times each up and down :-) but still I have a life to live ). It works quit well as it is.

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