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

cover type, channel ? #5

Open
uzelac opened this issue Jan 9, 2020 · 19 comments
Open

cover type, channel ? #5

uzelac opened this issue Jan 9, 2020 · 19 comments

Comments

@uzelac
Copy link

uzelac commented Jan 9, 2020

Need bit more explanation on cover subtype, not sure what factor and max/min means.

My covers take two switches, one for up and other for down. Nothing smart.
I just take care that DDRC units don't ask up and down in the same time, since that can happen because Dynalite doesn't understand covers.

At least, that is what i know.

Is there any better way to do covers in Dynalite ?
Because of this limitations, i use timedcover which is also here on github.
Would be much better if Dynalite have something on its own.

Thanks

@ziv1234
Copy link
Owner

ziv1234 commented Jan 9, 2020 via email

@uzelac
Copy link
Author

uzelac commented Jan 9, 2020

Sure, there it is as new fail in your component :)
Delete it ASAP, hope you don't mind, couldnt think of better way after i've 'tried (and failed) to format it proprely here in issues.

@ziv1234
Copy link
Owner

ziv1234 commented Jan 9, 2020 via email

@uzelac
Copy link
Author

uzelac commented Jan 9, 2020

I pressed create new file, and it went... somewhere.
Did this again, hope this link is ok:

https://github.com/uzelac/hass_dynalite_component/blob/687092f99f0e4754496b15d6f417c793c3cb0b6f/timedcover%20example.yaml

@uzelac
Copy link
Author

uzelac commented Jan 9, 2020

As you can see, I have three presets per cover, one for cover to go up, one to go down and third to stop.
That is also how this timedcover works.
Now, with channels, maybe it can be done better, earlier with presets... couldn't find better way.

@ziv1234
Copy link
Owner

ziv1234 commented Jan 9, 2020 via email

@ziv1234
Copy link
Owner

ziv1234 commented Jan 9, 2020 via email

@uzelac
Copy link
Author

uzelac commented Jan 9, 2020

You are right, timedcover wont count time if one instructs cover outside of HA.
It can be done, it can time from channel/preset change to change... Well, it can but it doesn't :).
Dynalite isnt capable to know position, but HA can.

@ziv1234
Copy link
Owner

ziv1234 commented Jan 10, 2020 via email

@uzelac
Copy link
Author

uzelac commented Jan 11, 2020

Great, will give it a try on monday when i return home! :)

@uzelac
Copy link
Author

uzelac commented Jan 11, 2020

Btw maybe even better would be to make:

'timecover':
channel: 2 # this is optional. I also have a control 4 system that controls the same blind via a channel. If not relevant, use 0
open: 1 # channel to open
close: 2 # channel to close
duration: 75 # time to fully open / close
class: blind # device class. Only affects the visual in HA

And so script takes care that up and down are nevert ON at the same time. This way one doesnt need preset for stop.
I believe for me personally it is better with presets, they are already working, but maybe it is more "correct" to use channels

@ziv1234
Copy link
Owner

ziv1234 commented Jan 11, 2020 via email

@uzelac
Copy link
Author

uzelac commented Jan 11, 2020

Same area, of course.
But I did not mean that.

I meant that component can be made that it needs channels, not presets to work.
In that case:

timecover':
open: 1 # channel to open
close: 2 # channel to close
duration: 75 # time to fully open / close
class: blind # device class. Only affects the visual in HA

As i said, maybe it is more correct.
In that case your script would need to:

Automation OPEN

  • close_channel OFF # just in case
  • open_channel ON
  • time delay
  • open_channel OFF

Automation CLOSE

  • open_channel OFF # just in case
  • close_channel ON
  • time delay # count seconds, whatever
  • close_channel OFF

@uzelac
Copy link
Author

uzelac commented Jan 11, 2020

What is more important, does your timedcover script reacts to direct dynalite keypad commands ?
If i use presets on keypad, will it get that and show precise position ?

@ziv1234
Copy link
Owner

ziv1234 commented Jan 11, 2020

my dynalite keypad send the presets so the timecover template monitors these presets and updates the level accordingly. It works in my setup so interested to see whether it works for you.
mine isn't configured with channels this way, as i dont have a direct control (or at least not aware of one) for the open and close channels of the cover itself, so i have to use the presets.
Let me know if the current one works for your setup. If not, i can try and program it, but since my setup works differently, will be very difficult to test...

@uzelac
Copy link
Author

uzelac commented Jan 13, 2020

Is this OK, to write in .yaml file ? (i use dynalite.yaml with !include in configuration.yaml)

'201':
name: Guest Room Cover
template: timecover
channel: 0
open: 1
close: 3
stop: 2
duration: 17
class: blind

@uzelac
Copy link
Author

uzelac commented Jan 13, 2020

Ok, got it, spent some time trying and reading your default configuration.yaml:
And yes, it is a bingo once more :).

Btw, I've put my dynalite.yaml here so someone can learn:
https://github.com/uzelac/hass-dynalite-component-support/blob/master/dynalite.yaml

@ziv1234
Copy link
Owner

ziv1234 commented Mar 2, 2020 via email

@ziv1234
Copy link
Owner

ziv1234 commented Mar 2, 2020 via email

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