GithubHelp home page GithubHelp logo

Comments (19)

ziv1234 avatar ziv1234 commented on July 28, 2024

from hass_dynalite_component.

uzelac avatar uzelac commented on July 28, 2024

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.

from hass_dynalite_component.

ziv1234 avatar ziv1234 commented on July 28, 2024

from hass_dynalite_component.

uzelac avatar uzelac commented on July 28, 2024

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

from hass_dynalite_component.

uzelac avatar uzelac commented on July 28, 2024

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.

from hass_dynalite_component.

ziv1234 avatar ziv1234 commented on July 28, 2024

from hass_dynalite_component.

ziv1234 avatar ziv1234 commented on July 28, 2024

from hass_dynalite_component.

uzelac avatar uzelac commented on July 28, 2024

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.

from hass_dynalite_component.

ziv1234 avatar ziv1234 commented on July 28, 2024

from hass_dynalite_component.

uzelac avatar uzelac commented on July 28, 2024

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

from hass_dynalite_component.

uzelac avatar uzelac commented on July 28, 2024

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

from hass_dynalite_component.

ziv1234 avatar ziv1234 commented on July 28, 2024

from hass_dynalite_component.

uzelac avatar uzelac commented on July 28, 2024

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

from hass_dynalite_component.

uzelac avatar uzelac commented on July 28, 2024

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 ?

from hass_dynalite_component.

ziv1234 avatar ziv1234 commented on July 28, 2024

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...

from hass_dynalite_component.

uzelac avatar uzelac commented on July 28, 2024

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

from hass_dynalite_component.

uzelac avatar uzelac commented on July 28, 2024

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

from hass_dynalite_component.

ziv1234 avatar ziv1234 commented on July 28, 2024

from hass_dynalite_component.

ziv1234 avatar ziv1234 commented on July 28, 2024

from hass_dynalite_component.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.