nielsfaber / scheduler-component

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

Restrict tags to only one schedule (enabled) at the time #331

Closed Fabrizz closed 4 months ago

Fabrizz commented 5 months ago

Checklist

Proposal

To add more value to the module, it would be nice to restrict tags to only one schedule enabled at the time, this would be great for irrigation systems as well as exterior lighting for example.

Additional info

This can be achieved using automations or a select helper to have only one enabled at the same time, but this breaks the convenience of this module of having all the timers/schedulers centralized.

As this schedules control the same devices, its not required to do anything with the previous status, the new schedule should override whatever state was the last.

Edit: As tags and cards can be combined in many ways and configuration options like discover_existing: false are not tied to tags, this could be difficult to implement, maybe one schedule is inside a card with multiple tags or with other non tagged schedules.

github-actions[bot] commented 4 months 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