From 385102f467361e5eedd7ac71e70a406f3dceee79 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Sat, 9 Nov 2019 10:22:55 -0500 Subject: [PATCH] Removing old command line sensors --- config/packages/sysmon.yaml | 50 ++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/config/packages/sysmon.yaml b/config/packages/sysmon.yaml index 7046ce2..c11ae70 100755 --- a/config/packages/sysmon.yaml +++ b/config/packages/sysmon.yaml @@ -32,25 +32,25 @@ sensor: # - platform: cert_expiry # host: !secret ahsl_base_url # name: SSL Cert Expiration - - platform: command_line - name: "HA Uptime" - command: echo "$(($(date +%s) - $(date -d "$(head -n1 /home/homeassistant/.homeassistant/home-assistant.log | cut -d' ' -f-2)" +%s)))" - scan_interval: 720 - value_template: >- - {% set uptime = value | int %} - {% set seconds = uptime % 60 %} - {% set minutes = ((uptime % 3600) / 60) | int %} - {% set hours = ((uptime % 86400) / 3600) | int %} - {% set days = (uptime / 86400) | int %} - {%- if days > 0 -%} - {%- if days == 1 -%} - 1 day - {%- else -%} - {{ days }} days - {%- endif -%} - {{ ', ' }} - {%- endif -%} - {{ '%02d' % hours }}:{{ '%02d' % minutes }} + # - platform: command_line + # name: "HA Uptime" + # command: echo "$(($(date +%s) - $(date -d "$(head -n1 /home/homeassistant/.homeassistant/home-assistant.log | cut -d' ' -f-2)" +%s)))" + # scan_interval: 720 + # value_template: >- + # {% set uptime = value | int %} + # {% set seconds = uptime % 60 %} + # {% set minutes = ((uptime % 3600) / 60) | int %} + # {% set hours = ((uptime % 86400) / 3600) | int %} + # {% set days = (uptime / 86400) | int %} + # {%- if days > 0 -%} + # {%- if days == 1 -%} + # 1 day + # {%- else -%} + # {{ days }} days + # {%- endif -%} + # {{ ', ' }} + # {%- endif -%} + # {{ '%02d' % hours }}:{{ '%02d' % minutes }} - platform: template sensors: current_version_ha: @@ -68,12 +68,12 @@ sensor: - platform: version name: Released Hassio Ver source: hassio - - platform: command_line - name: ha_v2db - command: "ls -sh /home/homeassistant/.homeassistant/home-assistant_v2.db | cut -f1 -d ' '" - - platform: command_line - name: ha_log - command: "ls -sh /home/homeassistant/.homeassistant/home-assistant.log | cut -f1 -d ' '" + # - platform: command_line + # name: ha_v2db + # command: "ls -sh /home/homeassistant/.homeassistant/home-assistant_v2.db | cut -f1 -d ' '" + # - platform: command_line + # name: ha_log + # command: "ls -sh /home/homeassistant/.homeassistant/home-assistant.log | cut -f1 -d ' '" - platform: uptime name: Time Online unit_of_measurement: days