From: Giorgio Ravera Date: Wed, 18 Mar 2020 17:53:43 +0000 (+0100) Subject: Added sensor for SSL certificate X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=c20c87771c4cbf2ee92064f458b954a5b953db5a;p=homeassistant.git Added sensor for SSL certificate --- diff --git a/history.yaml b/history.yaml index fbe683cb..387915a9 100644 --- a/history.yaml +++ b/history.yaml @@ -50,6 +50,8 @@ exclude: - sensor.ff590mr_tire_pressure_rear_left - sensor.ff590mr_tire_pressure_rear_right - sensor.ff590mr_trunk + # System + - sensor.scadenza_certificato_ssl # Shelly - sensor.shelly1_status - sensor.shelly2_status diff --git a/logbook.yaml b/logbook.yaml index 78b5bf59..8fee0da3 100644 --- a/logbook.yaml +++ b/logbook.yaml @@ -50,6 +50,8 @@ exclude: - sensor.ff590mr_tire_pressure_rear_left - sensor.ff590mr_tire_pressure_rear_right - sensor.ff590mr_trunk + # System + - sensor.scadenza_certificato_ssl # Shelly - sensor.shelly1_status - sensor.shelly2_status diff --git a/recorder.yaml b/recorder.yaml index 40043067..cfb3bafe 100644 --- a/recorder.yaml +++ b/recorder.yaml @@ -52,6 +52,8 @@ exclude: - sensor.ff590mr_tire_pressure_rear_left - sensor.ff590mr_tire_pressure_rear_right - sensor.ff590mr_trunk + # System + - sensor.scadenza_certificato_ssl # Shelly - sensor.shelly1_status - sensor.shelly2_status diff --git a/sensor/system.yaml b/sensor/system.yaml new file mode 100644 index 00000000..a5db0014 --- /dev/null +++ b/sensor/system.yaml @@ -0,0 +1,17 @@ +###################################################################### +# Sensor: Uptime +###################################################################### +#- platform: command_line +# name: Server Uptime +# unit_of_measurement: giorni +# scan_interval: 900 +# command: "uptime | awk '{ print $3 }' |sed \"s/,//\"" + +###################################################################### +# 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 }'" diff --git a/sensor/system.yaml.disabled b/sensor/system.yaml.disabled deleted file mode 100644 index a5db0014..00000000 --- a/sensor/system.yaml.disabled +++ /dev/null @@ -1,17 +0,0 @@ -###################################################################### -# Sensor: Uptime -###################################################################### -#- platform: command_line -# name: Server Uptime -# unit_of_measurement: giorni -# scan_interval: 900 -# command: "uptime | awk '{ print $3 }' |sed \"s/,//\"" - -###################################################################### -# 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 }'"