mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 18:28:43 +00:00
Add cobalt and titanium sensors
This commit is contained in:
@@ -32,15 +32,15 @@ cards:
|
|||||||
- title: Platinum
|
- title: Platinum
|
||||||
- icon: mdi:nas
|
- icon: mdi:nas
|
||||||
|
|
||||||
|
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
- type: entities
|
- type: entities
|
||||||
title: SARAH
|
title: SARAH
|
||||||
icon: mdi:home-assistant
|
icon: mdi:home-assistant
|
||||||
entities:
|
entities:
|
||||||
- binary_sensor.updater
|
- sensor.cobalt_cpu_temperature
|
||||||
- sensor.hacs
|
- sensor.hacs
|
||||||
|
- binary_sensor.updater
|
||||||
- sensor.uptime
|
- sensor.uptime
|
||||||
- entity: sensor.home_assistant_v2_db
|
- entity: sensor.home_assistant_v2_db
|
||||||
name: Database
|
name: Database
|
||||||
|
|||||||
@@ -13,8 +13,15 @@ titanium_card:
|
|||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
- type: entities
|
- type: entities
|
||||||
|
style:
|
||||||
|
"#states div": |
|
||||||
|
mini-graph-card {
|
||||||
|
margin: 0 -15px -15px
|
||||||
|
}
|
||||||
|
|
||||||
entities:
|
entities:
|
||||||
- sensor.titanium_uptime
|
- sensor.titanium_uptime
|
||||||
|
- sensor.titanium_idle_time
|
||||||
- binary_sensor.titanium_playing
|
- binary_sensor.titanium_playing
|
||||||
- sensor.titanium_volume
|
- sensor.titanium_volume
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
@@ -52,6 +59,28 @@ titanium_card:
|
|||||||
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: 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
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
|
|||||||
@@ -33,12 +33,32 @@ binary_sensor:
|
|||||||
sensor:
|
sensor:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Titanium uptime"
|
name: "Titanium uptime"
|
||||||
icon: mdi:clock-check-outline
|
icon: mdi:clock-check
|
||||||
availability_topic: "iotlink/workgroup/titanium/lwt"
|
availability_topic: "iotlink/workgroup/titanium/lwt"
|
||||||
payload_available: "ON"
|
payload_available: "ON"
|
||||||
payload_not_available: "OFF"
|
payload_not_available: "OFF"
|
||||||
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/system/uptime"
|
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
|
# Memory
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Titanium memory used"
|
name: "Titanium memory used"
|
||||||
|
|||||||
Reference in New Issue
Block a user