I saw a video where someone was showing what they did with their Lovelace screens and on the main page they had a row of nothing. And then when they would turn on lights, it would show in that box of nothing. The more lights they turned on the more icons showed there. Then you could turn those lights off using the dynamic icons and when you turned each off they would go away from that screen. Any idea how to do that?
Probably used and Entity Filter, that’s what I use for this purpose. I also include my garage door in the list so I know when it’s open.
I am on my phone so I can’t paste my example but looking up the documentation it is very easy to follow.
Brilliant. Thanks for the idea. Below is what I did. I can’t test the second one as my family is crabbing not to open the garage at night but any reason HA keeps stripping out the single quotes around open but not around on?
type: entity-filter
title: lights and switches currently on
show_header_toggle: false
entities:
- switch.staircase_light_switch
- switch.basement_light_switch
- switch.basement_sink_light_switch
- switch.basement_crawlspace_light_switch
- light.basement_sump_pump_light
- light.spare_room_light_switch_dimmer
- light.john_room_light_switch_dimmer
- light.family_room_light_switch_dimmer
- sensor.garage_door_status
state_filter:
- 'on'
- open
show_empty: false
card:
type: glance
title: lights and switches currently on
I use open for the garage door rather than on.
Also any way to get the icons for each on ligtht to be used as a off switch? Right now when I click on any of the on lights it pops up another screen and then i have to click it off from there.
Yeah mine doesn’t have the quotes on the open either but does on the on.
Remove the card/type at the bottom and it will just be entity switches instead of a glance button.
It then should have a toggle switch to the side for 5he lights and then a open/close/stop switch for the garage.
Took a different approach, just figured it out. Only thing I’m wondering now if there can be a global shutoff option for all on lights. I didn’t see it in the directions.
type: entity-filter
title: Lights Currently On
show_header_toggle: false
entities:
- entity: switch.staircase_light_switch
name: Base Stairs
tap_action:
action: toggle
- entity: switch.basement_light_switch
name: Basement
tap_action:
action: toggle
- entity: switch.basement_sink_light_switch
name: Base Sink
tap_action:
action: toggle
- entity: switch.basement_crawlspace_light_switch
name: Base Crawl
tap_action:
action: toggle
- entity: light.basement_sump_pump_light
name: Sump Pump
tap_action:
action: toggle
- entity: light.spare_room_light_switch_dimmer
name: Spare Room
tap_action:
action: toggle
- entity: light.john_room_light_switch_dimmer
name: John Room
tap_action:
action: toggle
- entity: light.family_room_light_switch_dimmer
name: Family Room
tap_action:
action: toggle
- entity: sensor.garage_door_status
name: Garage
tap_action:
action: toggle
state_filter:
- 'on'
- open
show_empty: false
card:
type: glance
title: Lights Currently On
Created new names for each of them as well as then it allowed more switches before creating another row.
Also seems this may be flaky. I woke up this morning and turned on a light and nothing. That block never activated anything. EDIT: Ewww. Just noticed the lights are on but HA doesn’t think they are which is the problem.