(Re-)implement Titanium as Cadmium

This commit is contained in:
2022-06-22 09:25:33 +03:00
parent 423489df69
commit cfa6be86e4
13 changed files with 300 additions and 358 deletions
@@ -1,4 +1,4 @@
titanium_card:
cadmium_card:
default:
- title:
- icon:
@@ -9,7 +9,7 @@ titanium_card:
title: "[[title]]"
icon: "[[icon]]"
entities:
- switch.titanium
- switch.cadmium
- type: vertical-stack
cards:
- type: entities
@@ -20,26 +20,24 @@ titanium_card:
}
entities:
- sensor.titanium_uptime
- sensor.titanium_idle_time
- binary_sensor.titanium_playing
- sensor.titanium_volume
- sensor.cadmium_uptime
- sensor.cadmium_idle_time
- type: custom:fold-entity-row
head:
type: custom:decluttering-card
template: percentage_card
variables:
- name: Memory
- entity: sensor.titanium_memory_used_percent
- entity: sensor.cadmium_memory_used_percent
- icon: mdi:memory
- orange: 70
- red: 85
entities:
- entity: sensor.titanium_memory_used
- entity: sensor.cadmium_memory_used
name: Memory used
- entity: sensor.titanium_memory_available
- entity: sensor.cadmium_memory_available
name: Memory available
- entity: sensor.titanium_memory_total
- entity: sensor.cadmium_memory_total
name: Memory total
- type: custom:fold-entity-row
@@ -48,24 +46,24 @@ titanium_card:
template: percentage_card
variables:
- name: "C: Drive"
- entity: sensor.titanium_c_usage
- entity: sensor.cadmium_c_usage
- icon: mdi:harddisk
- orange: 70
- red: 85
entities:
- entity: sensor.titanium_c_used_space
- entity: sensor.cadmium_c_used_space
name: "C: Drive used"
- entity: sensor.titanium_c_free_space
- entity: sensor.cadmium_c_free_space
name: "C: Drive available"
- entity: sensor.titanium_c_total_space
- entity: sensor.cadmium_c_total_space
name: "C: Drive total"
- type: custom:mini-graph-card
align_state: left
entities:
- color: var(--accent-color)
entity: sensor.titanium_cpu_usage
entity: sensor.cadmium_cpu_usage
- color: green
entity: sensor.titanium_memory_used_percent
entity: sensor.cadmium_memory_used_percent
points_per_hour: 1
line_width: 3
hour24: true
@@ -86,60 +84,29 @@ titanium_card:
cards:
- type: custom:button-card
template: default
entity: script.titanium_lock
entity: script.cadmium_lock
name: Lock
icon: mdi:lock
tap_action:
action: toggle
- type: custom:button-card
template: default
entity: script.titanium_vol_mute
name: Mute
icon: mdi:volume-mute
tap_action:
action: toggle
- type: custom:button-card
template: default
entity: script.titanium_set_volume
name: Set volume
icon: mdi:volume-medium
tap_action:
action: toggle
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
entity: script.titanium_displays_on
entity: script.cadmium_displays_on
name: Displays on
icon: mdi:monitor-dashboard
tap_action:
action: toggle
- type: custom:button-card
template: default
entity: script.titanium_displays_off
entity: script.cadmium_displays_off
name: Displays off
icon: mdi:monitor-off
tap_action:
action: toggle
- type: custom:button-card
template: default
entity: script.titanium_refresh
entity: script.cadmium_refresh
name: Refresh
icon: mdi:refresh
tap_action:
action: toggle
- type: horizontal-stack
cards:
- type: picture-entity
aspect_ratio: 50%
entity: camera.titanium_screen_1
show_name: false
show_state: false
- type: picture-entity
aspect_ratio: 50%
entity: camera.titanium_screen_0
show_name: false
show_state: false