scheduler-component icon indicating copy to clipboard operation
scheduler-component copied to clipboard

Add a little randomness to time slots

Open michaelsidenius opened this issue 1 year ago • 14 comments

Would it be possible to indicate the time slots with a bit of random variation (within a limit), so the repetition was not always on the exact same time (for e.g. away-from home lighning)

michaelsidenius avatar Jul 29 '23 18:07 michaelsidenius

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Aug 29 '23 00:08 github-actions[bot]

Me too. Only thing missing.

basrieter avatar Sep 05 '23 22:09 basrieter

This feature has been requested multiple times but I have always considered it out of scope. Maybe this can be reconsidered. Any suggestions on how this should look like in the card, and how it should work in the background? Having a clear idea on the functionality would be a good jump start to make it happen.

nielsfaber avatar Sep 17 '23 17:09 nielsfaber

The most simple implementation would be a check-box that enables a randomness for a schedule. The result would be that for each next scheduled action (regardless of how it was scheduled) a random value (15 minutes or so) added to the scheduled time.

So whether I use a scheme or any of the other options, that would not matter. If an entity has an action at time x it then has that action somewhere between x-15 and x+15. And this is recalculated each time. So it might be x-5 first and x+3 the next time.

Perhaps the randomness (the delta in time) could be a config value. So you can set a randomness of 15 minutes or 10, or.....

basrieter avatar Sep 17 '23 22:09 basrieter

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Oct 18 '23 00:10 github-actions[bot]

Could this be implemented with Jinja2 code in the YAML config? something like setting time with: + {{ range(-15,15) | random }} (I am not an Jinja2 expert, obviously)

michaelsidenius avatar Oct 18 '23 08:10 michaelsidenius

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Nov 18 '23 00:11 github-actions[bot]

Any update?

basrieter avatar Nov 18 '23 12:11 basrieter

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Dec 20 '23 00:12 github-actions[bot]

@nielsfaber is this still something you are considering?

basrieter avatar Dec 20 '23 08:12 basrieter

Hi Niels (very long time not seen, but here again, fine), I would also vote for that to have a simple away-lights schedule. Another nifty random thing would be a condition aka "switch the light on with a chance of 50%". Should I open an issue?

greentux avatar Dec 21 '23 22:12 greentux

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jan 21 '24 00:01 github-actions[bot]

I'd love this feature so my here is my upvote

hagen-p avatar Jan 22 '24 09:01 hagen-p

bump

bigFin avatar Feb 16 '24 23:02 bigFin

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Mar 18 '24 00:03 github-actions[bot]