#SOLVED: Toggle Scheduler Card Header Toggle via Automation

1 messages · Page 1 of 1 (latest)

velvet gate
#

My scheudler Cards get rather croweded, and I have different cards for summer, winter, vacation, etc.

This makes it sometimes hard to grasp whats running and what not currently. Hence I would like to disable whole cards via an automatin so I dont have to manage the active schedules myself. Has someone managed to do that? Thanks!

velvet gate
#

I solved this not by toggeling the main switch, but filtered for all scheudles assigned to a tag (the different scheudles are defined by a tag)

alias: Schedules nach Tag/Kategorie schalten
sequence:

  • target:
    entity_id: |
    {{ states.switch
    | selectattr('entity_id','search','schedule_')
    | selectattr('attributes.tags','defined')
    | selectattr('attributes.tags','search',tag_name)
    | map(attribute='entity_id') | list }}
    action: switch.turn_{{ tag_state }}
    mode: single
    fields:
    tag_name:
    description: Tag/Kategorie (z.B. 'wohnzimmer', 'montag')
    example: wohnzimmer
    tag_state:
    description: on oder off
    example: "on"
    description: ""
#

Well done Perplexity