faspina
(Frank Spina)
1
Getting this error
2017-08-13 06:38:22 ERROR (Thread-5) [homeassistant.components.sensor.command_line] Command failed: ssl-cert-check -b -c /etc/letsencrypt/live/xxxxx.duckdns.org/cert.pem | awk { print $NF }
the ssl-cert-check command runs find from the command line.
costr
(Adam Costenbader)
2
I am having the same issue but when I run the command I get this response:
ssl-cert-check -b -c /etc/letsencrypt/live/xxxxxxx.com/cert.pem | awk { print $NF }
awk: line 2: missing } near end of file
If, however, I run it without the pipe awk then it works.
ssl-cert-check -b -c /etc/letsencrypt/live/xxxxxxx.com/cert.pem
FILE:/etc/letsencrypt/live/xxxxxxx.com/cert.pem Expiring Sep 12 2017 28
faspina
(Frank Spina)
3
I fixed my by adding a value_template
command: “ssl-cert-check -b -c /etc/letsencrypt/live/faspina.duckdns.org/cert.pem | awk ‘{ print $NF }’”
value_template: ‘{{ value }}’
this works now
1 Like