As mentioned I use the custom āroom-cardā marcokreeft87/room-card: Show multiple entity states, attributes and icons in a single card in Home Assistantās Lovelace UI (github.com) and added it inside the new Sections. Below is the content for Study and Living, others are similar style.
- title: sections
path: sections
type: sections
sections:
- type: grid
cards:
- type: custom:room-card
title: Study
show_icon: true
show_name: false
icon: mdi:desk
templates:
- name: onoff
template:
show_icon: true
show_name: true
show_state: false
state_color: true
- name: power
template:
show_icon: true
show_state: true
show_name: false
format: precision0
icon:
template:
styles: |
if (entity.state > 0) return 'color: #FFEF00';
rows:
- entities:
- entity: sensor.plug_study_airco_power
show_icon: true
show_state: true
show_name: false
icon:
template:
styles: >
if (entity.state >= 30) return 'color: #FFEF00'; if
(entity.state >= 750) return 'color: orange'; if
(entity.state >= 1000) return 'color: red';
icon: |
return "ghi:airco3";
format: precision0
- entity: sensor.plug_study_heating_feet_power
show_icon: true
show_state: true
show_name: false
icon:
template:
styles: >
if (entity.state >= 30) return 'color: #FFEF00'; if
(entity.state >= 750) return 'color: orange'; if
(entity.state >= 1000) return 'color: red';
icon: |
return "ghi:heating-long";
format: precision0
- entity: sensor.study_lights_on
show_icon: true
show_state: true
show_name: false
icon:
template:
styles: |
if (entity.state >0) return 'color: #FFEF00';
- entities:
- entity: sensor.plug_study_jumbo_dock_power
template: power
tap_action:
action: call-service
service: switch.toggle
target:
entity_id: switch.plug_study_jumbo_dock
- entity: sensor.plug_study_monitor_power
template: power
- entity: sensor.plug_study_pc_power
template: power
- entity: sensor.plug_study_devices_power
template: power
- entity: switch.plug_study_speakers
show_name: false
show_icon: true
show_state: true
state_color: true
tap_action:
action: toggle
- entity: sensor.mfc_l8690cdw_status
show_name: false
show_icon: true
show_state: true
state_color: true
info_entities:
- entity: binary_sensor.security_study_door_contact
show_icon: true
state_color: true
- entity: binary_sensor.study_sensor_occupancy
show_icon: true
state_color: true
- entity: sensor.study_sensor_illuminance_lux
format: precision0
- entity: sensor.climate_study_humidity
format: precision1
- entity: sensor.climate_study_temperature
format: precision1
cards:
- type: entities
entities:
- entity: timer.study_heating_feet_on
hide_if:
conditions:
- condition: equals
entity: timer.study_heating_feet_on
value: idle
- type: tile
entity: media_player.heos_study
state_content:
- state
- volume_level
- source
- type: grid
square: false
columns: 3
cards:
- type: tile
entity: light.study_ceiling
name: []
- type: tile
entity: light.study_strip
name: []
- type: tile
entity: light.study_signal
name: []
hide_if:
conditions:
- condition: equals
entity: sensor.study_lights_on
value: 0
- type: grid
cards:
- type: custom:room-card
title: Living
show_icon: true
show_name: false
icon: mdi:desk
templates:
- name: onoff
template:
show_icon: true
show_name: true
show_state: false
state_color: true
- name: power
template:
show_icon: true
show_state: true
show_name: false
format: precision0
icon:
template:
styles: |
if (entity.state > 0) return 'color: #FFEF00';
rows:
- entities:
- entity: sensor.plug_living_airco_power
show_icon: true
show_state: true
show_name: false
icon:
template:
styles: >
if (entity.state >= 35) return 'color: #FFEF00'; if
(entity.state >= 750) return 'color: orange'; if
(entity.state >= 1000) return 'color: red';
icon: |
return "ghi:airco3";
format: precision0
- entity: sensor.living_lights_on
show_icon: true
show_state: true
show_name: false
icon:
template:
styles: |
if (entity.state >0) return 'color: #FFEF00';
- entities:
- entity: media_player.denon
show_icon: true
show_state: false
show_name: true
icon: mdi:music-box
- entity: media_player.zgemma
show_icon: true
show_state: false
show_name: true
icon: mdi:music-box
- entity: media_player.viera_vt60_series
show_icon: true
show_state: false
show_name: true
name: VieraTV
icon: mdi:music-box
- entity: media_player.heos_left
show_icon: true
show_state: false
show_name: true
name: HEOS left
icon: mdi:music-box
- entity: media_player.heos_right
show_icon: true
show_state: false
show_name: true
name: HEOS right
icon: mdi:music-box
info_entities:
- entity: binary_sensor.security_garden_door_contact
show_icon: true
state_color: true
- entity: sensor.airq_living_noise
format: precision0
- entity: sensor.airq_living_humidity
format: precision1
- entity: sensor.airq_living_temperature
format: precision1
cards:
- type: tile
entity: media_player.denon
state_content:
- state
- volume_level
- source
- type: grid
square: false
columns: 3
cards:
- type: tile
entity: light.living_ceiling
name: []
- type: tile
entity: light.living_signe_left
name: []
- type: tile
entity: switch.plug_living_houses
name: []
- type: tile
entity: light.reading_down
name: []
- type: tile
entity: light.reading_up
name: []
- type: tile
entity: light.table_down
name: []
- type: tile
entity: light.table_up
name: []
- type: tile
entity: light.media_left
name: []
- type: tile
entity: light.media_strip
name: []
hide_if:
conditions:
- condition: equals
entity: sensor.living_lights_on
value: 0