mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-02 23:54:25 +00:00
Add cobalt and titanium sensors
This commit is contained in:
@@ -32,15 +32,15 @@ cards:
|
||||
- title: Platinum
|
||||
- icon: mdi:nas
|
||||
|
||||
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- type: entities
|
||||
title: SARAH
|
||||
icon: mdi:home-assistant
|
||||
entities:
|
||||
- binary_sensor.updater
|
||||
- sensor.cobalt_cpu_temperature
|
||||
- sensor.hacs
|
||||
- binary_sensor.updater
|
||||
- sensor.uptime
|
||||
- entity: sensor.home_assistant_v2_db
|
||||
name: Database
|
||||
|
||||
@@ -13,8 +13,15 @@ titanium_card:
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- type: entities
|
||||
style:
|
||||
"#states div": |
|
||||
mini-graph-card {
|
||||
margin: 0 -15px -15px
|
||||
}
|
||||
|
||||
entities:
|
||||
- sensor.titanium_uptime
|
||||
- sensor.titanium_idle_time
|
||||
- binary_sensor.titanium_playing
|
||||
- sensor.titanium_volume
|
||||
- type: custom:fold-entity-row
|
||||
@@ -52,6 +59,28 @@ titanium_card:
|
||||
name: "C: Drive available"
|
||||
- entity: sensor.titanium_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
|
||||
- color: green
|
||||
entity: sensor.titanium_memory_used_percent
|
||||
group: false
|
||||
points_per_hour: 1
|
||||
line_width: 3
|
||||
hour24: true
|
||||
hours_to_show: 24
|
||||
show:
|
||||
fill: fade
|
||||
icon: true
|
||||
name: true
|
||||
state: true
|
||||
name_adaptive_color: false
|
||||
labels: hover
|
||||
legend: false
|
||||
tap_action:
|
||||
action: none
|
||||
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
|
||||
@@ -33,12 +33,32 @@ binary_sensor:
|
||||
sensor:
|
||||
- platform: mqtt
|
||||
name: "Titanium uptime"
|
||||
icon: mdi:clock-check-outline
|
||||
icon: mdi:clock-check
|
||||
availability_topic: "iotlink/workgroup/titanium/lwt"
|
||||
payload_available: "ON"
|
||||
payload_not_available: "OFF"
|
||||
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/system/uptime"
|
||||
|
||||
- platform: mqtt
|
||||
name: "Titanium idle time"
|
||||
icon: mdi:clock-alert
|
||||
availability_topic: "iotlink/workgroup/titanium/lwt"
|
||||
payload_available: "ON"
|
||||
payload_not_available: "OFF"
|
||||
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/system/idle-time"
|
||||
value_template: "{{ value | multiply(1/60) | round(0) }}"
|
||||
unit_of_measurement: "minutes"
|
||||
|
||||
# CPU
|
||||
- platform: mqtt
|
||||
name: "Titanium CPU usage"
|
||||
icon: mdi:chip
|
||||
availability_topic: "iotlink/workgroup/titanium/lwt"
|
||||
payload_available: "ON"
|
||||
payload_not_available: "OFF"
|
||||
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/cpu/usage"
|
||||
unit_of_measurement: "%"
|
||||
|
||||
# Memory
|
||||
- platform: mqtt
|
||||
name: "Titanium memory used"
|
||||
|
||||
Reference in New Issue
Block a user