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

@ -652,7 +652,7 @@ Dog Bark script - /config/automation/guard_dog.yaml</a><br>
[GE ZWave Outdoor Power Module](http://amzn.to/2q17R4S)
</td><td align="center">
[Phyn Smart Water Main ShutOff/Leak Detector](http://www.phyn.com/)
[Phyn Smart Water Main ShutOff/Leak Detector](http://phyn.refr.cc/carlocostanzo)
</td><td align="center">
[Outdoor LED Lighting](http://www.vCloudInfo.com/2017/08/diy-outdoor-smart-home-led-strips.html)
@ -660,7 +660,7 @@ Dog Bark script - /config/automation/guard_dog.yaml</a><br>
<tr><td align="center"><a href="https://www.amazon.com/gp/product/B01D1NMLJU/ref=as_li_ss_il?ie=UTF8&linkCode=li1&tag=vmw0a-20&linkId=32eaaee1a47e3f0841694b2f65b33f20" target="_blank"><img border="0" src="https://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=B01D1NMLJU&Format=_SL110_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=vmw0a-20" ></a><img src="https://ir-na.amazon-adsystem.com/e/ir?t=vmw0a-20&l=li1&o=1&a=B01D1NMLJU" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</td><td align="center"><a href="https://www.amazon.com/GE-Wireless-Lighting-Control-12720/dp/B0013V8K3O/ref=as_li_ss_il?ie=UTF8&qid=1494360163&sr=8-1&keywords=ge+zwave+outdoor&linkCode=li1&tag=vmw0a-20&linkId=14fea62a5ea952ae7e575d3ec9f83d8f" target="_blank"><img border="0" src="https://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=B0013V8K3O&Format=_SL110_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=vmw0a-20" ></a><img src="https://ir-na.amazon-adsystem.com/e/ir?t=vmw0a-20&l=li1&o=1&a=B0013V8K3O" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</td><td align="center"><a href="http://www.phyn.com/" target="_blank"><img border="0" src="http://www.phyn.com/wp-content/uploads/2017/12/1920_01_product_intro-1.png" height="110" ></a><img src="https://ir-na.amazon-adsystem.com/e/ir?t=vmw0a-20&l=li2&o=1&a=B01HDC236Q" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</td><td align="center"><a href="http://phyn.refr.cc/carlocostanzo" target="_blank"><img border="0" src="http://www.phyn.com/wp-content/uploads/2017/12/1920_01_product_intro-1.png" height="110" ></a><img src="https://ir-na.amazon-adsystem.com/e/ir?t=vmw0a-20&l=li2&o=1&a=B01HDC236Q" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</td><td align="center"><a href="http://www.vCloudInfo.com/2017/08/diy-outdoor-smart-home-led-strips.html" target="_blank"><img border="0" src="https://lh3.googleusercontent.com/-RfNOR7YThbY/WZnY6Gjw4zI/AAAAAAADYrw/IxBE2KmxW9YuLMtj9qgxAWyb5vHdgSrBACHMYCw/IMG_2660_thumb%255B9%255D" height="110" ></a><img src="https://ir-na.amazon-adsystem.com/e/ir?t=vmw0a-20&l=li2&o=1&a=B01HDC236Q" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></td></tr>
<tr><td colspan="4">

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