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

Support Unit/Output/Flag timers. #75

Open
boc-tothefuture opened this issue Jul 8, 2017 · 2 comments
Open

Support Unit/Output/Flag timers. #75

boc-tothefuture opened this issue Jul 8, 2017 · 2 comments

Comments

@boc-tothefuture
Copy link

Presently we don't (at least that I see) have support for turning and omni unit type (flag, output, light, etc) on/off for a duration. This is supported by the API for omni - but not represented in the binding.

There are some advantages to using this method (in certain cases) vs. just using timers in openhab.

The API is a bit weird (go figure), so its unclear to me what the channel definition should look like. Hoping for @craigham and @digitaldan to weigh in here with some thoughts.
You can set a unit on or off for a duration of time. That duration can be
1 to 99 seconds
OR
1 to 99 minutes
OR
1 to 18 hours

Because each type of duration has its own min and max, I am thinking we need to make distinct channels types for each?
Then for each unit/flag/output have 6 new channels?
on_for_seconds
on_for_minutes
on_for_hours
off_for_seconds
off_for_minutes
off_for_hours

I am not a channel design expert.. So I eagerly await better solutions.

@digitaldan
Copy link

I'm not sure there is a better way. The APi as you say is weird :-)

@craigham
Copy link

@boc-tothefuture those channels are what I was thinking as I was reading your comments. Seems like a reasonable starting point.

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

3 participants