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

Create collections of events #2

Closed
madb1lly opened this issue Dec 3, 2019 · 2 comments
Closed

Create collections of events #2

madb1lly opened this issue Dec 3, 2019 · 2 comments
Assignees

Comments

@madb1lly
Copy link

madb1lly commented Dec 3, 2019

Hi @tim-hellhake,

At present each cron event exists in isolation and is created as a separate Thing on the UI. This may be fine for events which don't have any relation to any other time-based events, but when a set of events belong together then it makes the Things page very overcrowded.

For example, I have created 8 events for controlling my heaters at different times during a normal week. 4 events turn the heaters on and 4 turn them off.

An improvement to the Cron add-on would be to allow all 4 On events to be grouped together so that they all appear as one Thing on the Things page. Same for the 4 Off events.

Even better would be to associate On and Off events into pairs so that they create True and False periods which can then be used as inputs to rules rather than the base Cron events. Pairs of On/Off events could be grouped as above so instead of having a Thing for On events and a Thing for Off events there would just be one Thing for On/Off periods. However, I realise that this last paragraph moves away from Cron syntax and is more like a timer, so may not be appropriate for this add-on.

Cheers :)

@tim-hellhake
Copy link
Owner

I see your problem.
I'm adding groups of cron jobs.
The hardest part is to migrate from the old config format to the new one without breaking existing cron job definitions.

tim-hellhake added a commit that referenced this issue Dec 4, 2019
tim-hellhake added a commit that referenced this issue Dec 4, 2019
tim-hellhake added a commit that referenced this issue Dec 4, 2019
Add groups (#2)
Add manifest.json (#1)
tim-hellhake added a commit to tim-hellhake/addon-list that referenced this issue Dec 4, 2019
tim-hellhake added a commit that referenced this issue Dec 4, 2019
tim-hellhake added a commit that referenced this issue Dec 4, 2019
Migrate to GitHub actions
Add config.js to files array (#2)
tim-hellhake added a commit to tim-hellhake/addon-list that referenced this issue Dec 4, 2019
@tim-hellhake
Copy link
Owner

tim-hellhake commented Dec 4, 2019

The new update is out :)

Even better would be to associate On and Off events into pairs so that they create True and False periods which can then be used as inputs to rules rather than the base Cron events

I agree, but I think a dedicated addon for this would be a better option.
I'm closing this now as there is already an issue for this:

WebThingsIO/gateway#2347

If you have any problems with the update, please let me now.

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