mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 12:10:28 +00:00
Fixed the Breaking Change for SYstemMonitor.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
- platform: template
|
||||
sensors:
|
||||
since_last_boot_templated:
|
||||
last_boot_templated:
|
||||
value_template: >-
|
||||
{%- set slb = states.sensor.since_last_boot.state.split(' ') -%}
|
||||
{%- set slb = states.sensor.last_boot.state.split(' ') -%}
|
||||
{%- set count = slb | length -%}
|
||||
{%- set hms = slb[count - 1] -%}
|
||||
{%- set hms_trimmed = hms.split('.')[0] -%}
|
||||
|
Reference in New Issue
Block a user