nielsfaber / scheduler-component

Custom component for HA that enables the creation of scheduler entities
GNU General Public License v3.0
631 stars 41 forks source link

Schema with do-nothing timeslots #229

Closed xeor closed 1 year ago

xeor commented 1 year ago

Checklist

Usecase

I want to control the value of an inputbox based on what time of day it is. This is what a schema is used for. In addition, I want some of the timeslots to do nothing untill I call the scheduler.run_action service.

Example

So, 00, it will be set to a, but at 06, nothing will happen until I call run_action. At 15, it will be c.

Proposal

Create an option when adding a timeslot to schema to make it "non-automatic", ie, it is defined, but not triggered.

Additional info

This enables some very neat functionality where you want something to normally be set, but you want some other action to decide when it should happen.

github-actions[bot] commented 1 year ago

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

nielsfaber commented 1 year ago

I’m sorry for the late response. The only way to achieve what you want is by temporarily disabling the schedule. So from 6:00 to 15:00 the schedule switch entity has to remain disabled until you want to execute it. I don’t have any plans for adding functionality to help your usage.