I like to hide all of my timers, but when one becomes active I’d like it to appear when it starts and disappear when it stops. Is there a service for this?
Lovelace?
If so. depending on your needs/preferences you could look at an entity filter or a conditional card
1 Like
I do exactly that.
My setup is slightly overcomplicated but the principle is I think what you are looking for:
The Lovelace that does this is here (I hope it is helpful)…
#===========================
#=== Occupancy & House Mode
#===========================
- type: entities
title: Occupancy & House Mode
show_header_toggle: false
entities:
- device_tracker.person1_composite
- type: divider
style:
height: 1px
- device_tracker.person2_composite
- type: divider
style:
height: 5px
- sensor.house_mode
- type: custom:fold-entity-row
head:
entity: binary_sensor.holiday_mode
items:
- input_boolean.holiday_mode_forced
- type: custom:fold-entity-row
head:
entity: binary_sensor.guest_mode
items:
- type: divider
#=== Guest Schedules
#=== Schedule once
- type: custom:fold-entity-row
head:
entity: input_boolean.guest_mode_once
name: Guest mode once
icon: mdi:human-handsup
type: custom:toggle-lock-entity-row
items:
- input_number.guest_mode_once_duration
- type: divider
#=== Schedule 1
- type: custom:fold-entity-row
head:
entity: input_boolean.guest_mode_schedule_1
name: Guest schedule (1)
icon: mdi:numeric-1-box-outline
type: custom:toggle-lock-entity-row
items:
- input_text.guest_mode_schedule_1_name
- input_select.guest_mode_schedule_1_day
- type: custom:time-input-row
entity: input_datetime.guest_mode_schedule_1_start_time
- input_number.guest_mode_schedule_1_duration
- type: divider
#=== Schedule 2
- type: custom:fold-entity-row
head:
entity: input_boolean.guest_mode_schedule_2
name: Guest schedule (2)
icon: mdi:numeric-2-box-outline
type: custom:toggle-lock-entity-row
items:
- input_text.guest_mode_schedule_2_name
- input_select.guest_mode_schedule_2_day
- type: custom:time-input-row
entity: input_datetime.guest_mode_schedule_2_start_time
- input_number.guest_mode_schedule_2_duration
# - type: divider
#========================
#=== Active Guest Timers
#========================
- type: entity-filter
show_header_toggle: false
entities:
- timer.guest_mode_once_duration
- timer.guest_mode_schedule_1_duration
- timer.guest_mode_schedule_2_duration
state_filter:
- "active"
show_empty: false