Looking great Tom
Hey @sunny could you post your card config for any one of your transparent stacked graph cards?
I’m trying to work out how to do that and get a card title.
@Yoinkz and @tom_l
Sorry for my late response, I was on holidays .
Well the Theme is from here: Clear Theme
And my config looks like this:
Note: I used some custom components!
cch:
hide_help: true
swipe: true
swipe_animate: fade
resources:
- type: js
url: /community_plugin/monster-card/monster-card.js
- type: module
url: /community_plugin/compact-custom-header/compact-custom-header.js
- type: js
url: /community_plugin/mini-media-player/mini-media-player.js
- type: js
url: /community_plugin/group-card/group-card.js
- type: js
url: /community_plugin/vertical-stack-in-card/vertical-stack-in-card.js
- type: module
url: /community_plugin/weather-card/weather-card.js
- type: module
url: /community_plugin/mini-graph-card/mini-graph-card.js
- type: js
url: /community_plugin/vertical-stack-in-card/vertical-stack-in-card.js
- type: js
url: /community_plugin/bar-card/bar-card.js
- background: var(--background-image)
title: System
icon: 'mdi:server-network'
path: system
badges: []
cards:
- cards:
- entities:
- entity: sensor.smarty_status
name: Status
type: entities
- entity: sensor.smarty_system_temperature
height: 30
severity:
- color: green
value: 33
- color: orange
value: 66
- color: red
value: 100
title: Temperatur
type: 'custom:bar-card'
width: 65%
- entity: sensor.smarty_cpu_temperature
height: 30
severity:
- color: green
value: 33
- color: orange
value: 66
- color: red
value: 100
title: CPU Temperatur
type: 'custom:bar-card'
width: 65%
- entity: sensor.smarty_cpu_usage
height: 30
severity:
- color: green
value: 33
- color: orange
value: 66
- color: red
value: 100
title: CPU
type: 'custom:bar-card'
width: 65%
- entity: sensor.smarty_memory_usage
height: 30
severity:
- color: green
value: 33
- color: orange
value: 66
- color: red
value: 100
title: RAM
type: 'custom:bar-card'
width: 65%
title: QNAP
type: 'custom:vertical-stack-in-card'
- cards:
- cards:
- entities:
- entity: sensor.smarty_smart_status_drive_0_1
name: HDD1 Status
type: entities
- entities:
- entity: sensor.smarty_smart_status_drive_0_2
name: HDD2 Status
type: entities
type: horizontal-stack
- entity: sensor.smarty_volume_used_hdd
height: 30
severity:
- color: green
value: 33
- color: orange
value: 66
- color: red
value: 100
title: Belegt
type: 'custom:bar-card'
width: 65%
- entity: sensor.smarty_temperature_drive_0_1
height: 30
severity:
- color: green
value: 33
- color: orange
value: 66
- color: red
value: 100
title: HDD1 Temperatur
type: 'custom:bar-card'
width: 65%
- entity: sensor.smarty_temperature_drive_0_2
height: 30
severity:
- color: green
value: 33
- color: orange
value: 66
- color: red
value: 100
title: HDD2 Temperatur
type: 'custom:bar-card'
width: 65%
- cards:
- entities:
- entity: sensor.smarty_smart_status_drive_23_1
name: SSD1
type: entities
- entities:
- entity: sensor.smarty_smart_status_drive_23_1
name: SSD2
type: entities
type: horizontal-stack
- entity: sensor.smarty_volume_used_ssd
height: 30
severity:
- color: green
value: 33
- color: orange
value: 66
- color: red
value: 100
title: Belegt
type: 'custom:bar-card'
width: 65%
- entity: sensor.smarty_temperature_drive_23_1
height: 30
severity:
- color: green
value: 33
- color: orange
value: 66
- color: red
value: 100
title: SSD1 Temperatur
type: 'custom:bar-card'
width: 65%
- entity: sensor.smarty_temperature_drive_23_2
height: 30
severity:
- color: green
value: 33
- color: orange
value: 66
- color: red
value: 100
title: SSD2 Temperatur
type: 'custom:bar-card'
width: 65%
title: QNAP Drives
type: 'custom:vertical-stack-in-card'
- cards:
- entities:
- entity: sensor.smarty_network_link_eth0
name: Network eth0
type: entities
- cards:
- color_thresholds_transition: smooth
entities:
- sensor.smarty_network_down_eth0
group: false
hour24: true
line_width: 6
lower_bound: 0
name: Download
points_per_hour: 1
show:
extrema: true
fill: fade
icon: true
labels: false
name: true
state: true
type: 'custom:mini-graph-card'
- color_thresholds_transition: smooth
entities:
- sensor.smarty_network_up_eth0
group: false
hour24: true
line_width: 6
lower_bound: 0
name: Upload
points_per_hour: 1
show:
extrema: true
fill: fade
icon: true
labels: false
name: true
state: true
type: 'custom:mini-graph-card'
type: horizontal-stack
- entities:
- entity: sensor.smarty_network_link_eth1
name: Network eth1
type: entities
- cards:
- color_thresholds_transition: smooth
entities:
- sensor.smarty_network_down_eth1
group: false
hour24: true
line_width: 6
lower_bound: 0
name: Download
points_per_hour: 1
show:
extrema: true
fill: fade
icon: true
labels: false
name: true
state: true
type: 'custom:mini-graph-card'
- color_thresholds_transition: smooth
entities:
- sensor.smarty_network_up_eth1
group: false
hour24: true
line_width: 6
lower_bound: 0
name: Upload
points_per_hour: 1
show:
extrema: true
fill: fade
icon: true
labels: false
name: true
state: true
type: 'custom:mini-graph-card'
type: horizontal-stack
title: QNAP Network
type: 'custom:vertical-stack-in-card'
- cards:
- entities:
- entity: sensor.fritzbox
icon: 'mdi:router-wireless'
- entity: sensor.fritzbox_external_ip
icon: 'mdi:wan'
- entity: sensor.fritzbox_uptime
icon: 'mdi:timelapse'
- entity: binary_sensor.remote_ui
icon: 'mdi:cloud'
- entity: sensor.hacs
icon: 'mdi:update'
name: Community Store
type: entities
- cards:
- color_thresholds_transition: smooth
entities:
- entity: sensor.speedtest_ping
name: Ping
font_size: 70
group: false
hour24: true
line_width: 6
lower_bound: 0
points_per_hour: 1
show:
extrema: true
fill: fade
icon: true
labels: false
name: true
state: true
type: 'custom:mini-graph-card'
- color_thresholds_transition: smooth
entities:
- entity: sensor.speedtest_download
name: Download
font_size: 70
group: false
hour24: true
line_width: 6
lower_bound: 0
points_per_hour: 1
show:
extrema: true
fill: fade
icon: true
labels: false
name: true
state: true
type: 'custom:mini-graph-card'
- color_thresholds_transition: smooth
entities:
- entity: sensor.speedtest_upload
name: Upload
font_size: 70
group: false
hour24: true
line_width: 6
lower_bound: 0
points_per_hour: 1
show:
extrema: true
fill: fade
icon: true
labels: false
name: true
state: true
type: 'custom:mini-graph-card'
name: Speedtest
type: horizontal-stack
title: System Status
type: 'custom:vertical-stack-in-card'
- cards:
- cards:
- entity: switch.adguard_filtering
hold_action:
action: more-info
name: Filtering
tap_action:
action: toggle
type: entity-button
- entity: switch.adguard_parental_control
hold_action:
action: more-info
name: Parental Control
tap_action:
action: toggle
type: entity-button
- entity: switch.adguard_protection
hold_action:
action: more-info
name: Protection
tap_action:
action: toggle
type: entity-button
type: horizontal-stack
- cards:
- entity: switch.adguard_query_log
hold_action:
action: more-info
name: Query Log
tap_action:
action: toggle
type: entity-button
- entity: switch.adguard_safe_browsing
hold_action:
action: more-info
name: Safe Browsing
tap_action:
action: toggle
type: entity-button
- entity: switch.adguard_safe_search
hold_action:
action: more-info
name: Safe Search
tap_action:
action: toggle
type: entity-button
type: horizontal-stack
title: AdGuard
type: 'custom:vertical-stack-in-card'
- cards:
- entities:
- entity: sensor.adguard_average_processing_speed
name: AdGuard Processing Speed
type: entities
- cards:
- color_thresholds_transition: smooth
entities:
- sensor.adguard_dns_queries
group: false
hour24: true
hours_to_show: 24
line_width: 6
lower_bound: 0
name: DNS Queries
points_per_hour: 1
show:
extrema: true
fill: fade
icon: true
labels: false
name: true
state: true
type: 'custom:mini-graph-card'
unit: ' '
- entities:
- sensor.adguard_rules_count
name: Rules Count
type: 'custom:mini-graph-card'
unit: ' '
type: horizontal-stack
- cards:
- entities:
- sensor.adguard_parental_control_blocked
name: Parental Control
type: 'custom:mini-graph-card'
unit: ' '
- entities:
- sensor.adguard_safe_browsing_blocked
name: Safe Browsing
type: 'custom:mini-graph-card'
unit: ' '
type: horizontal-stack
- color_thresholds_transition: smooth
entities:
- sensor.adguard_dns_queries_blocked
group: false
hour24: true
hours_to_show: 24
line_color: red
line_width: 6
lower_bound: 0
name: DNS Queries Blocked
points_per_hour: 1
show:
extrema: true
fill: fade
icon: true
labels: false
name: true
state: true
type: 'custom:mini-graph-card'
unit: ' '
title: AdGuard
type: 'custom:vertical-stack-in-card'
- entities:
- zwave.z_wave_sigma_designs_uzb_z_wave_usb_adapter
show_header_toggle: false
title: Z-Wave
type: entities
- card:
show_header_toggle: false
title: Shelly need update
type: entities
filter:
include:
- entity_id: '*firmware_update*'
type: 'custom:monster-card'
- entities:
- entity: zha.lumi_lumi_sensor_magnet_aq2_03217ca6_1_6
- entity: zha.lumi_lumi_sensor_magnet_aq2_03214427_1_6
- entity: zha.lumi_lumi_sensor_magnet_aq2_0321662d_1_6
show_header_toggle: false
title: ZigBee
type: entities
Thanks Sunny. You’re using the vertical-stack-in card. I tried that and now that I look really closely I see why I stopped using it. Not as obvious with the light colours you are using but the background alpha transparency doubles up. Also a lot more obvious if you use horizontal stacks in the vertical stack as well.
Can you share your cpu mini-graph-card yaml? I want to try something similar…
on second thought can you share the entire vertical-stack yaml for Hassio?
Here is my vertical-stack-in-card I use for monitoring server hardware. It’s based on the configuration of krovachek but updated to use the “Lovelace Card Mod” add-on.
cards:
- cards:
- animate: true
card: null
entities:
- sensor.processor_use
graph: line
hour24: true
name: Processor
show:
extrema: true
icon: false
name: false
style: |
ha-card {
border-radius: 15px;
transform: scale(0.95);
background-size: 100% 100%;
border-style: dotted;
border-width: 1px;
}
type: 'custom:mini-graph-card'
- animate: true
card: null
entities:
- sensor.memory_use_percent
graph: line
hour24: true
name: Processor
show:
extrema: true
icon: false
name: false
style: |
ha-card {
border-radius: 15px;
transform: scale(0.95);
background-size: 100% 100%;
border-style: dotted;
border-width: 1px;
}
type: 'custom:mini-graph-card'
type: horizontal-stack
- cards:
- entities:
- sensor.processor_use
title: CPU
title_position: inside
title_style:
font-size: 12px
type: 'custom:bar-card'
- entities:
- sensor.memory_use_percent
title: Memory
title_position: inside
title_style:
font-size: 12px
type: 'custom:bar-card'
type: horizontal-stack
- entities:
- sensor.disk_use_percent
title: Disk Usage
type: 'custom:bar-card'
- entities:
- sensor.last_boot
- sensor.uptime
- entity: sensor.certificate_hassio
name: Certificate Valididty
type: entity
- type: divider
- entity: sensor.hacs
name: Component Updates
type: entity
type: entities
title: Hassio
type: 'custom:vertical-stack-in-card'
Ah… That’s the ticket!! Time to install card-mod…
Thank you very much!
Mine is pretty basic, but here it is. The media and dev servers were tricky to set up (using Glances for the data) because media didn’t have a CPU temp, and the CPU temp for dev wasn’t correct. So I had to trial and error grabbing the core temps from the Glances API using the RESTful sensor and templates.
At the moment mine is very minimalist and basic, but it monitors HA, my NUC, let’s me know what’s broken/disconnected and if I have sensor batteries going dead. It works so far, though every day something changes (because I look at all these wonderful examples and take a little bit of inspiration from each one)!
I just wish I could get that gauge card to be the same size as the sensor card next to it
Looks good!
What Theme are you using?
Can you perhaps post it?
Thanks! (It’s changed a bunch in the last few days already.)
But I’m still using the same themes. I slightly modified PxMonoNight and PxMonoLight that I found while searching for themes a while back. I’ll post the my version shortly, and if I find the original place where I found it I’ll post that too. (Give credit where credit is due and all…)
What theme is that friend ? :o
Here are the themes: Px MonoLight (I use that one during the day), and the dark version, Px MonoNight.
I still haven’t been able to track down the link where I originally found them, but they’re not my work, and I’ll post if I find the originals too. Found the original creator… a member here… @PhysicalMagic !
Hey @PhysicalMagic! Thanks for these themes! You nailed it. I’ve been using these themes for as long as I’ve known what a HA theme is. Simple, clean… well done!
PmxMononight:
# Main colors #5294E2 #363941
primary-color: '#39679e' # Header
accent-color: '#919191' # Accent color
dark-primary-color: 'var(--accent-color)' # Hyperlinks
light-primary-color: 'var(--accent-color)' # Horizontal line in about
# Text colors
primary-text-color: '#FFFFFF' # Primary text colour, here is referencing dark-primary-color
text-primary-color: 'var(--primary-text-color)' # Primary text colour
secondary-text-color: '#5294E2' # For secondary titles in more info boxes etc.
disabled-text-color: '#7F848E' # Disabled text colour
label-badge-border-color: 'green' # Label badge border, just a reference value
# Background colors
primary-background-color: '#383C45' # Settings background
secondary-background-color: '#656e82' # Main card UI background
divider-color: 'rgba(0, 0, 0, .12)' # Divider
# Table rows
table-row-background-color: '#353840' # Table row
table-row-alternative-background-color: '#3E424B' # Table row alternative
# Nav Menu
paper-listbox-color: 'var(--accent-color)' # Navigation menu selection hoover
paper-listbox-background-color: '#2E333A' # Navigation menu background
paper-grey-50: 'var(--primary-text-color)'
paper-grey-200: '#414A59' # Navigation menu selection
# Paper card
paper-card-header-color: 'var(--accent-color)' # Card header text colour
paper-card-background-color: '#434954' # Card background colour
paper-dialog-background-color: '#434954' # Card dialog background colour
paper-item-icon-color: 'var(--primary-text-color)' # Icon color
paper-item-icon-active-color: '#F9C536' # Icon color active
paper-item-icon_-_color: 'green'
paper-item-selected_-_background-color: '#434954' # Popup item select
paper-tabs-selection-bar-color: 'green'
ha-card-border-radius: 5px
# Labels
label-badge-red: 'var(--accent-color)' # References the brand colour label badge border
label-badge-text-color: 'var(--primary-text-color)' # Now same as label badge border but that's a matter of taste
label-badge-background-color: '#2E333A' # Same, but can also be set to transparent here
# Switches
paper-toggle-button-checked-button-color: 'var(--accent-color)'
paper-toggle-button-checked-bar-color: 'var(--accent-color)'
paper-toggle-button-checked-ink-color: 'var(--accent-color)'
paper-toggle-button-unchecked-button-color: 'var(--disabled-text-color)'
paper-toggle-button-unchecked-bar-color: 'var(--disabled-text-color)'
paper-toggle-button-unchecked-ink-color: 'var(--disabled-text-color)'
# Sliders
paper-slider-knob-color: 'var(--accent-color)'
paper-slider-knob-start-color: 'var(--accent-color)'
paper-slider-pin-color: 'var(--accent-color)'
paper-slider-active-color: 'var(--accent-color)'
paper-slider-container-color: 'linear-gradient(var(--primary-background-color), var(--secondary-background-color)) no-repeat'
paper-slider-secondary-color: 'var(--secondary-background-color)'
paper-slider-disabled-active-color: 'var(--disabled-text-color)'
paper-slider-disabled-secondary-color: 'var(--disabled-text-color)'
# Google colors
google-red-500: '#E45E65'
google-green-500: '#39E949'
sidebar-selected-icon-color: 'var(--accent-color)'
sidebar-selected-text-color: 'var(--accent-color)'
PmxMonolight:
### Main Interface Colors ###
primary-color: "#93abca" #"#395274"
light-primary-color: "#5F81B0"
primary-background-color: "#F0F5FF" # "#F6F7F9"
secondary-background-color: var(--primary-background-color)
divider-color: "#D6DFEB"
### Text ###
primary-text-color: "#395274"
secondary-text-color: "#919191"
text-primary-color: "#FFFFFF"
disabled-text-color: "#88A1C4"
### Sidebar Menu ###
sidebar-icon-color: "#395274"
sidebar-text-color: var(--sidebar-icon-color)
sidebar-selected-background-color: var(--primary-background-color)
sidebar-selected-icon-color: "#919191"
sidebar-selected-text-color: var(--sidebar-selected-icon-color)
### States and Badges ###
state-icon-color: "#395274"
state-icon-active-color: "#FBCD41"
state-icon-unavailable-color: var(--disabled-text-color)
### Sliders ###
paper-slider-knob-color: "#919191"
paper-slider-knob-start-color: var(--paper-slider-knob-color)
paper-slider-pin-color: var(--paper-slider-knob-color)
paper-slider-active-color: var(--paper-slider-knob-color)
paper-slider-secondary-color: var(--light-primary-color)
### Labels ###
label-badge-background-color: "#FFFFFF"
label-badge-text-color: "#395274"
label-badge-red: "#FF8888"
### Cards ###
paper-card-background-color: "#FFFFFF"
paper-listbox-background-color: var(--primary-background-color)
### Toggles ###
paper-toggle-button-checked-button-color: "#919191"
paper-toggle-button-checked-bar-color: "#919191"
paper-toggle-button-unchecked-button-color: "#395274"
paper-toggle-button-unchecked-bar-color: "#9CB2CE"
### Table row ###
table-row-background-color: var(--primary-background-color)
table-row-alternative-background-color: var(--secondary-background-color)
ha-card-border-radius: 5px
Yum!
Out of curiosity, how does your automation look for switching between the two themes during the day?
Here’s the automation:
- id: ThemeChange
alias: System - Theme Change
trigger:
- event: start
platform: homeassistant
- entity_id: sun.sun
platform: state
to: above_horizon
- entity_id: sun.sun
platform: state
to: below_horizon
action:
- data_template:
name: "{% if states.sun.sun.state == \"above_horizon\" %}\n PmxMonolight\n\
{% else %}\n PmxMononight\n{% endif %}\n"
service_template: frontend.set_theme
Here you go, it’s rather messy at the moment. I plan to clean things up later when I put my config on GitHub, but have been occupied with other stuff, so haven’t spent much time on my own UI in a while.
Lovelace view:
title: System
icon: 'mdi:settings'
path: system
badges: []
cards:
- type: horizontal-stack
cards:
#### THEME SWITCHER
- type: "custom:button-card"
entity: input_select.theme_switcher
icon: mdi:cube-outline
show_state: true
show_name: false
# tapping on this button cycles through each theme
tap_action:
action: call-service
service: input_select.select_next
service_data:
entity_id: input_select.theme_switcher
haptic: selection
# long pressing on this button goes back to my primary theme (Slate)
hold_action:
action: call-service
service: input_select.select_option
service_data:
entity_id: input_select.theme_switcher
option: slate
size: 20%
color_type: icon
# this does the same as the above button, but goes backwards instead of forwards. might end up removing it, dunno.
- type: "custom:button-card"
entity: input_select.theme_switcher
icon: mdi:arrow-left-circle
name: Previous Theme
show_state: false
show_name: true
tap_action:
action: call-service
service: input_select.select_previous
service_data:
entity_id: input_select.theme_switcher
haptic: selection
size: 20%
color_type: icon
#### HOME ASSISTANT INFO AT A GLANCE
- type: vertical-stack
cards:
- type: glance
columns: 6 #tweak this later
show_name: true
entities:
- entity: sensor.total_sensors
name: Sensors
- entity: sensor.total_automations
name: Auto
hold_action:
action: call-service
service: automation.reload # reloads automations when long-pressed
- entity: sensor.total_scripts
hold_action:
action: call-service
service: script.reload # reloads scripts when long-pressed
- entity: sensor.total_devicetrackers
- entity: sensor.total_switches
- entity: sensor.total_lights
tap_action:
action: navigate # goes to my Lights page when tapped
navigation_path: /lovelace/lights/
- entity: sensor.total_zones
- entity: sensor.total_binary_sensors
- entity: sensor.total_input_booleans
name: Booleans
- entity: sensor.total_input_numbers
name: Numbers
- entity: sensor.total_input_texts
name: Texts
- entity: sensor.total_input_selects
name: Selects
- entity: sensor.total_media_players
name: Players
tap_action:
action: navigate # goes to my Media page when tapped
navigation_path: /lovelace/media/
- entity: sensor.total_cameras
- entity: sensor.total_zwave_devices
- entity: sensor.total_entities
hold_action:
action: call-service
service: automation.trigger
service_data:
entity_id: automation.system_update_template_sensors # long-pressing updates statistics
- type: glance
columns: 4
show_name: true
entities:
- entity: sensor.home_assistant_v2_db
name: Database
icon: mdi:database
hold_action:
action: call-service
service: recorder.purge # purges db keeping last 3 days only
data:
keep_days: 3
repack: true
- entity: sensor.home_assistant_log
name: Logfile
icon: mdi:file-alert-outline
tap_action:
action: navigate
navigation_path: /dev-info # goes to log in HA when tapped
hold_action:
action: call-service
service: system_log.clear # clears log in HA when long-pressed
- entity: sensor.time_online
name: Uptime
hold_action:
action: call-service
service: homeassistant.restart # restarts HA when long-pressed
- entity: sensor.version_installed
tap_action:
action: navigate
navigation_path: /hassio/dashboard # goes to Hassio update section when tapped
#### SPEEDETEST INTEGRATION WIP IMPROVE LATER
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
entities:
- sensor.speedtest_download
name: Download
line_color: lightblue
line_width: 8
- type: custom:mini-graph-card
entities:
- sensor.speedtest_upload
name: Upload
line_color: orange
line_width: 8
- type: custom:mini-graph-card
entities:
- sensor.speedtest_ping
name: Ping
line_color: lightgreen
line_width: 8
## Not sure if keeping this, if so it'd probably be a conditional card
- type: vertical-stack
cards:
- type: glance
show_header_toggle: false
entities:
- entity: sensor.external_ip
name: External IP
icon: mdi:earth
- entity: sensor.speedtest_last_updated
name: Last Speedtest
- entity: script.speedtest_update
name: Update Speedtest
# tap_action:
# action: toggle
And this is the code to count all the stuff.
# Thanks to petro
# NOT COUNTED yet - Counter, Timer, Person, Remote, Scene, Input DateTime
sensor:
- platform: template
sensors:
#----- Count All Entities
total_entities:
entity_id: []
friendly_name: 'Entities'
icon_template: mdi:code-tags
value_template: "{{ states | count }}"
#----- Count Automations
total_automations:
entity_id: []
friendly_name: 'Automations'
icon_template: mdi:robot
value_template: "{{ states.automation | list | length }}"
#----- Count Binary Sensors
total_binary_sensors:
entity_id: []
friendly_name: 'Binary Sensors'
icon_template: mdi:checkbox-multiple-marked-circle # mdi:unfold-less-horizontal
value_template: "{{ states.binary_sensor | list | length }}"
#----- Count Binary Sensors
total_cameras:
entity_id: []
friendly_name: 'Cameras'
icon_template: mdi:cctv
value_template: "{{ states.camera | list | length }}"
#----- Count Device Trackers
total_devicetrackers:
entity_id: []
friendly_name: 'Devices'
icon_template: mdi:cellphone-link
value_template: "{{ states.device_tracker | list | length }}"
#----- Count Input Booleans
total_input_booleans:
entity_id: []
friendly_name: 'Input Booleans'
icon_template: mdi:toggle-switch
value_template: "{{ states.input_boolean | list | length }}"
#----- Count Input Numbers
total_input_numbers:
entity_id: []
friendly_name: 'Input Numbers'
icon_template: mdi:numeric
value_template: "{{ states.input_number | list | length }}"
#----- Count Input Selects
total_input_selects:
entity_id: sensor.date
friendly_name: 'Input Selects'
icon_template: mdi:format-align-justify
value_template: "{{ states.input_select | list | length }}"
#----- Count Input Texts
total_input_texts:
entity_id: []
friendly_name: 'Input Texts'
icon_template: mdi:alphabetical
value_template: "{{ states.input_text | list | length }}"
#----- Count Lights
total_lights:
entity_id: sensor.date
friendly_name: 'Lights'
icon_template: mdi:lightbulb-on
value_template: "{{ states.light | list | length }}"
#----- Count Media Players
total_media_players:
entity_id: []
friendly_name: 'Media Players'
icon_template: mdi:cast-connected
value_template: "{{ states.media_player | list | length }}"
#----- Count Scripts
total_scripts:
entity_id: []
friendly_name: 'Scripts'
icon_template: mdi:script-text-outline
value_template: "{{ states.script | list | length }}"
#----- Count Sensors
total_sensors:
entity_id: []
friendly_name: 'Sensors'
icon_template: mdi:pulse
value_template: "{{ states.sensor | list | length }}"
#----- Count Switches
total_switches:
entity_id: []
friendly_name: 'Switches'
icon_template: mdi:power-socket-us
value_template: "{{ states.switch | list | length }}"
#----- Count Zones
total_zones:
entity_id: []
friendly_name: 'Zones'
icon_template: mdi:map-marker-radius
value_template: "{{ states.zone | list | length }}"
#----- Count Z-Wave Devices
total_zwave_devices:
entity_id: []
friendly_name: 'ZWave'
icon_template: mdi:z-wave
value_template: "{{ states.zwave | list | length }}"
automation:
###### UPDATE COUNTS
- alias: "System - Update Template Sensors"
initial_state: 'on'
trigger:
platform: time_pattern
minutes: '/25'
action:
- service: homeassistant.update_entity
entity_id:
- sensor.total_automations
- sensor.total_binary_sensors
- sensor.total_cameras
- sensor.total_devicetrackers
- sensor.total_entities
- sensor.total_input_booleans
- sensor.total_input_numbers
- sensor.total_input_selects
- sensor.total_input_texts
- sensor.total_lights
- sensor.total_media_players
- sensor.total_scripts
- sensor.total_sensors
- sensor.total_switches
- sensor.total_zones
- sensor.total_zwave_devices
Excellent. Thank you.