-
Notifications
You must be signed in to change notification settings - Fork 46
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
Assign labels to schedules #400
Comments
I was going to create a new feature request when I stumbled on this one. The scheduler component already supports tags which aren’t the same as labels which I think you’re referring to above? The component supplies an enable all schedules and a disable all schedules service. Would it be possible to add a variation to enable/disable all services with a tag? |
There is a workaround I'm using to turn on/off Schedules by label: - action: switch.turn_on
data: {}
target:
entity_id: >-
{{ label_entities('this_is_my_label') | select('match', 'switch.') | list }} |
And this is what I’m using to select all schedules with a tag containing a string
|
En "elegant" solution to this problem I think would be the allow the "disable_all" and "enable_all" service call to specify a tag (I mean the Scheduler Card tags, not the HA labels) |
Proposal
I wish to be able to assign labels to schedules. The end goal being that the
switch
entity for this schedule will also have this label. I will then be able to switch on/off a group of schedules based on labels.Example use case: my energy provider has "peak events" that are not predictable and thus can not be handle in one schedule.
I have two schedules: one for "standard" mode and one for "peak" mode (almost always off).
I want to setup an automation to turn off all "standard" schedules when a peak event starts, and turn on all "peak" schedules. At the end of the peak event, do the opposite.
The text was updated successfully, but these errors were encountered: