(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
@@ -32,8 +32,7 @@ cards:
service: automation.reload
- entity: sensor.automations_count
icon: mdi:pound
- automation.titanium_turn_off_when_idle
- automation.titanium_notify_on_vibration_sensor_move
- automation.cadmium_turn_off_when_idle
- automation.slack_meeting_starts
- automation.slack_meeting_ends
- automation.hallway_tablet_set_to_home_after_10_minutes
@@ -23,9 +23,9 @@ cards:
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: titanium_card
template: cadmium_card
variables:
- title: Titanium
- title: Cadmium
- icon: mdi:desktop-tower
- type: custom:decluttering-card
@@ -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
@@ -6,11 +6,11 @@
# Living room ───────────────────────────────────────────────────────────────────────────
# Titanium
# Cadmium
- type: custom:decluttering-card
template: floorplan_state_icon
variables:
- entity: switch.titanium
- entity: switch.cadmium
- top: 62%
- left: 81%
@@ -121,6 +121,9 @@ card:
template: [v3_button_tv, v3_tablet_button]
entity: media_player.living_room_tv
name: TV
- type: custom:button-card
template: v3_tablet_button
entity: switch.cadmium
- type: horizontal-stack
cards:
- type: custom:button-card
@@ -137,9 +137,13 @@ card:
tap_action:
action: toggle
- type: custom:button-card
template: [v3_button_tv, v3_tablet_button]
entity: media_player.living_room_tv
name: TV
template: [v3_button_cover, v3_tablet_button]
entity: cover.living_room
name: LR Blinds
tap_action:
action: call-service
service: script.toggle_living_room_cover
- type: horizontal-stack
cards:
- type: custom:button-card
@@ -164,12 +168,12 @@ card:
- type: horizontal-stack
cards:
- type: custom:button-card
template: [v3_button_cover, v3_tablet_button]
entity: cover.living_room
name: LR Blinds
tap_action:
action: call-service
service: script.toggle_living_room_cover
template: [v3_button_tv, v3_tablet_button]
entity: media_player.living_room_tv
name: TV
- type: custom:button-card
template: v3_tablet_button
entity: switch.cadmium
- type: custom:button-card
template: [v3_button_purifier, v3_tablet_button]
entity: fan.philips_airpurifier
@@ -62,22 +62,24 @@
template: v3_section_title
variables:
- title: Scenes
- type: vertical-stack
cards:
- type: custom:button-card
template: v3_scene
entity: scene.living_room_ambient_neon
name: Neon
variables:
scene_color_1: rgba(255, 0, 190, 1)
scene_color_2: rgba(0, 255, 190, 1)
- type: custom:button-card
template: v3_scene
entity: scene.living_room_ambient_default
name: Warm
variables:
scene_color_1: rgba(240, 240, 190, 1)
scene_color_2: rgba(255, 210, 170, 1)
- type: custom:decluttering-card
template: v3_horizontal_stack_card
variables:
- cards:
- type: custom:button-card
template: v3_scene
entity: scene.living_room_ambient_neon
name: Neon
variables:
scene_color_1: rgba(255, 0, 190, 1)
scene_color_2: rgba(0, 255, 190, 1)
- type: custom:button-card
template: v3_scene
entity: scene.living_room_ambient_default
name: Warm
variables:
scene_color_1: rgba(240, 240, 190, 1)
scene_color_2: rgba(255, 210, 170, 1)
- type: custom:decluttering-card
template: v3_section_title
variables:
@@ -127,6 +129,12 @@
template: v3_button_tv
entity: media_player.living_room_tv
name: TV
- type: custom:button-card
template: v3_button
entity: switch.cadmium
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button_cover
entity: cover.living_room
@@ -134,9 +142,6 @@
tap_action:
action: call-service
service: script.toggle_living_room_cover
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button_radiator
entity: climate.living_room_radiator_mode
@@ -149,6 +154,8 @@
action: call-service
service: script.toshiba_ac_toggle
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button_power
entity: switch.desk_outlet
+3 -3
View File
@@ -418,11 +418,11 @@ fan.philips_airpurifier:
type: custom:decluttering-card
template: philips_airpurifier_card
switch.titanium:
title: Titanium
switch.cadmium:
title: Cadmium
card:
type: custom:decluttering-card
template: titanium_card
template: cadmium_card
sensor.fast_com_download:
title: Network Speed