Add 'lights on' count to floor separators

This commit is contained in:
2025-07-27 22:19:30 -04:00
parent 996de9175e
commit d3b14bf832

View File

@@ -166,6 +166,16 @@ streamline_templates:
show_state: false
tap_action:
action: toggle
modules:
- badgy-condition-helper
badgy-condition-helper:
entity_badges:
'1':
entity: '[[floor_lights_count]]'
condition:
- condition: state
entity_id: '[[lights_entity]]'
state: 'on'
popup_temperature_button:
defaults:
- name: ''
@@ -989,10 +999,11 @@ views:
- type: custom:streamline-card
template: floors_separator
variables:
- name: Basement
- icon: mdi:home-floor-b
- power_entity: sensor.basement_total_power_sensor
- lights_entity: light.basement_lights
name: Basement
icon: mdi:home-floor-b
power_entity: sensor.basement_total_power_sensor
lights_entity: light.basement_lights
floor_lights_count: sensor.basement_lights_on
- type: custom:streamline-card
template: main_button_floors
variables:
@@ -1007,10 +1018,11 @@ views:
- type: custom:streamline-card
template: floors_separator
variables:
- name: First Floor
- icon: mdi:home-floor-1
- power_entity: sensor.first_floor_total_power_sensor
- lights_entity: light.first_floor_lights
name: First Floor
icon: mdi:home-floor-1
power_entity: sensor.first_floor_total_power_sensor
lights_entity: light.first_floor_lights
floor_lights_count: sensor.first_floor_lights_on
- type: custom:streamline-card
template: main_button_floors
variables:
@@ -1086,10 +1098,11 @@ views:
- type: custom:streamline-card
template: floors_separator
variables:
- name: Second Floor
- icon: mdi:home-floor-2
- power_entity: sensor.second_floor_total_power_sensor
- lights_entity: light.second_floor_lights
name: Second Floor
icon: mdi:home-floor-2
power_entity: sensor.second_floor_total_power_sensor
lights_entity: light.second_floor_lights
floor_lights_count: sensor.second_floor_lights_on
- type: custom:streamline-card
template: main_button_floors
variables: