mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 02:18:43 +00:00
Use conditional in titanium card
This commit is contained in:
@@ -10,89 +10,99 @@ titanium_card:
|
|||||||
icon: "[[icon]]"
|
icon: "[[icon]]"
|
||||||
entities:
|
entities:
|
||||||
- switch.titanium_power
|
- switch.titanium_power
|
||||||
- sensor.titanium_uptime
|
- type: conditional
|
||||||
- binary_sensor.titanium_playing
|
conditions:
|
||||||
- sensor.titanium_volume
|
- condition: state
|
||||||
- type: custom:fold-entity-row
|
entity: switch.titanium_power
|
||||||
head:
|
state: on
|
||||||
type: custom:decluttering-card
|
card:
|
||||||
template: percentage_card
|
type: vertical-stack
|
||||||
variables:
|
cards:
|
||||||
- name: Memory
|
- type: entities
|
||||||
- entity: sensor.titanium_memory_used_percent
|
entities:
|
||||||
- icon: mdi:memory
|
- sensor.titanium_uptime
|
||||||
- orange: 70
|
- binary_sensor.titanium_playing
|
||||||
- red: 85
|
- sensor.titanium_volume
|
||||||
entities:
|
- type: custom:fold-entity-row
|
||||||
- entity: sensor.titanium_memory_used
|
head:
|
||||||
name: Memory used
|
type: custom:decluttering-card
|
||||||
- entity: sensor.titanium_memory_available
|
template: percentage_card
|
||||||
name: Memory available
|
variables:
|
||||||
- entity: sensor.titanium_memory_total
|
- name: Memory
|
||||||
name: Memory total
|
- entity: sensor.titanium_memory_used_percent
|
||||||
|
- icon: mdi:memory
|
||||||
|
- orange: 70
|
||||||
|
- red: 85
|
||||||
|
entities:
|
||||||
|
- entity: sensor.titanium_memory_used
|
||||||
|
name: Memory used
|
||||||
|
- entity: sensor.titanium_memory_available
|
||||||
|
name: Memory available
|
||||||
|
- entity: sensor.titanium_memory_total
|
||||||
|
name: Memory total
|
||||||
|
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
head:
|
head:
|
||||||
type: custom:decluttering-card
|
type: custom:decluttering-card
|
||||||
template: percentage_card
|
template: percentage_card
|
||||||
variables:
|
variables:
|
||||||
- name: "C: Drive"
|
- name: "C: Drive"
|
||||||
- entity: sensor.titanium_c_usage
|
- entity: sensor.titanium_c_usage
|
||||||
- icon: mdi:harddisk
|
- icon: mdi:harddisk
|
||||||
- orange: 70
|
- orange: 70
|
||||||
- red: 85
|
- red: 85
|
||||||
entities:
|
entities:
|
||||||
- entity: sensor.titanium_c_used_space
|
- entity: sensor.titanium_c_used_space
|
||||||
name: "C: Drive used"
|
name: "C: Drive used"
|
||||||
- entity: sensor.titanium_c_free_space
|
- entity: sensor.titanium_c_free_space
|
||||||
name: "C: Drive available"
|
name: "C: Drive available"
|
||||||
- entity: sensor.titanium_c_total_space
|
- entity: sensor.titanium_c_total_space
|
||||||
name: "C: Drive total"
|
name: "C: Drive total"
|
||||||
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
entity: script.titanium_lock
|
entity: script.titanium_lock
|
||||||
name: Lock
|
name: Lock
|
||||||
icon: mdi:lock
|
icon: mdi:lock
|
||||||
tap_action:
|
tap_action:
|
||||||
action: toggle
|
action: toggle
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
entity: script.titanium_vol_mute
|
entity: script.titanium_vol_mute
|
||||||
name: Mute
|
name: Mute
|
||||||
icon: mdi:volume-mute
|
icon: mdi:volume-mute
|
||||||
tap_action:
|
tap_action:
|
||||||
action: toggle
|
action: toggle
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
entity: script.titanium_set_volume
|
entity: script.titanium_set_volume
|
||||||
name: Set volume
|
name: Set volume
|
||||||
icon: mdi:volume-medium
|
icon: mdi:volume-medium
|
||||||
tap_action:
|
tap_action:
|
||||||
action: toggle
|
action: toggle
|
||||||
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
entity: script.titanium_displays_on
|
entity: script.titanium_displays_on
|
||||||
name: Displays on
|
name: Displays on
|
||||||
icon: mdi:monitor-dashboard
|
icon: mdi:monitor-dashboard
|
||||||
tap_action:
|
tap_action:
|
||||||
action: toggle
|
action: toggle
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
entity: script.titanium_displays_off
|
entity: script.titanium_displays_off
|
||||||
name: Displays off
|
name: Displays off
|
||||||
icon: mdi:monitor-off
|
icon: mdi:monitor-off
|
||||||
tap_action:
|
tap_action:
|
||||||
action: toggle
|
action: toggle
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
entity: script.titanium_refresh
|
entity: script.titanium_refresh
|
||||||
name: Refresh
|
name: Refresh
|
||||||
icon: mdi:refresh
|
icon: mdi:refresh
|
||||||
tap_action:
|
tap_action:
|
||||||
action: toggle
|
action: toggle
|
||||||
|
|||||||
Reference in New Issue
Block a user