Fixed the Breaking Change for SYstemMonitor.

This commit is contained in:
ccostan
2018-12-23 15:44:46 -05:00
parent 78ae1cc4b5
commit 3d31ed7e9a
11 changed files with 16 additions and 16 deletions

View File

@@ -1 +1 @@
0.84.1
0.84.3

View File

@@ -159,8 +159,8 @@ logbook:
- group.garage_doors
- media_player.LivingRoomCC
- py.warnings
- sensor.since_last_boot
- sensor.since_last_boot_templated
- sensor.last_boot
- sensor.last_boot_templated
- sensor.small_garage_status
- sensor.large_garage_status
- sensor.small_garage_time_in_state
@@ -195,8 +195,8 @@ history:
- sensor.pihole_ads_blocked_today
- sensor.pihole_ads_percentage_blocked_today
- sensor.pihole_dns_queries_today
- sensor.since_last_boot
- sensor.since_last_boot_templated
- sensor.last_boot
- sensor.last_boot_templated
- sensor.floorplan_date
- sensor.floorplan_time
- sensor.ha_uptime

View File

@@ -544,7 +544,7 @@ sensor.samsungtv:
sensor.since_last_boot:
sensor.last_boot:
friendly_name: 'Since Last Boot'
hidden: True
@@ -553,7 +553,7 @@ sensor.since_last_boot:
sensor.since_last_boot_templated:
sensor.last_boot_templated:
friendly_name: 'Raspberry Pi Uptime'
hidden: False

View File

@@ -74,7 +74,7 @@ group:
- sensor.github_stats
- sensor.ccostanhomeassistantconfig_state
- sensor.ha_uptime
- sensor.since_last_boot_templated
- sensor.last_boot_templated
- sensor.disk_use_percent_
- sensor.homeassistant_v2db
- sensor.speedtest_download

View File

@@ -14,7 +14,7 @@ sensor:
- platform: systemmonitor
resources:
# - type: last_boot
- type: since_last_boot
- type: last_boot
- type: disk_use_percent
arg: /

View File

@@ -37,8 +37,8 @@ exclude:
- sensor.pihole_ads_blocked_today
- sensor.pihole_ads_percentage_blocked_today
- sensor.pihole_dns_queries_today
- sensor.since_last_boot
- sensor.since_last_boot_templated
- sensor.last_boot
- sensor.last_boot_templated
- sensor.skybell_stone_door_chime_level
- sensor.small_garage_reflection_rate
- sensor.small_garage_time_in_state

View File

@@ -45,7 +45,7 @@ tweet_engine_setup:
"Beep. Bop. Beep. Boop. I am a #roBOT run by @CCostan",
"I have spoken for about {{ states.sensor.speech_time.attributes.value|replace('m', '') }} minutes in the last 24 hours.",
"When you add it all up, I have spoken for about {{ states.sensor.speech_time.attributes.value|replace('m', '') }} minutes in the last 24 hours!",
"The #Docker Host has been running for {{ states('sensor.since_last_boot_templated') }} (http://www.vmwareinfo.com/2018/02/journey-to-docker.html)",
"The #Docker Host has been running for {{ states('sensor.last_boot_templated') }} (http://www.vmwareinfo.com/2018/02/journey-to-docker.html)",
"The #Docker Host for Home Assistant is using {{ states('sensor.disk_use_percent_') }}% of the hard drive currently. (http://www.vmwareinfo.com/2018/02/journey-to-docker.html)",
"I am running Home Assistant version {{ states('sensor.ha_installed_version') }} (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
"Home Assistant has been running for {{ states('sensor.ha_uptime') }}. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",

View File

@@ -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] -%}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 99 KiB