From 0aea667af77a90383c6590add93f3ed1e77af434 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Sun, 29 Mar 2020 12:32:51 +0200 Subject: [PATCH] Added Sensor for SSL --- customizations/system.yaml | 7 +++++++ sensor/system.yaml | 13 ++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 customizations/system.yaml diff --git a/customizations/system.yaml b/customizations/system.yaml new file mode 100644 index 00000000..cfc453ab --- /dev/null +++ b/customizations/system.yaml @@ -0,0 +1,7 @@ +###################################################################### +# Customization: System +###################################################################### + +sensor.ssl_certificate: + friendly_name: Scadenza Certificato SSL + unit_of_measurement: giorni diff --git a/sensor/system.yaml b/sensor/system.yaml index a5db0014..4ae7ce10 100644 --- a/sensor/system.yaml +++ b/sensor/system.yaml @@ -10,8 +10,11 @@ ###################################################################### # Sensor: Letsencrypt ###################################################################### -- platform: command_line - name: Scadenza Certificato SSL - unit_of_measurement: giorni - scan_interval: 86400 - command: "ssl-cert-check -b -c /etc/letsencrypt/live/server.giorgioravera.it/cert.pem | awk '{ print $NF }'" +#- platform: command_line +# name: Scadenza Certificato SSL +# unit_of_measurement: giorni +# scan_interval: 86400 +# command: "ssl-cert-check -b -c /etc/letsencrypt/live/server.giorgioravera.it/cert.pem | awk '{ print $NF }'" + +- platform: cert_expiry + host: home.giorgioravera.it -- 2.47.3