Hi!
When I look at the log of Let’s Encrypt I can see what happened (the output of certbot?) and at what time, but not the date. I have the add-on set to run once a week, and I’d like to know the date of events in the log.
Thanks!
Hi!
When I look at the log of Let’s Encrypt I can see what happened (the output of certbot?) and at what time, but not the date. I have the add-on set to run once a week, and I’d like to know the date of events in the log.
Thanks!
Can you please post the log (from /config/homeassistant.log) showing the entry?
Does this help?
alias: "@Let's encrypt certificate check"
description: Will expire in 3 weeks
trigger:
- platform: time
at: "07:00:00"
condition:
- condition: template
value_template: >-
{{ (states('sensor.cert_expiry_timestamp_ha.domain.mine') | as_datetime -
timedelta(days=21)) < now() }}
action:
- data:
title: Let's Encrypt
message: HA Certificate will expire in 3 weeks, trying to renew, please verify
action: notify.mobile_app_myiphone
- data:
addon: core_letsencrypt
action: hassio.addon_start
mode: single
Nota that this uses Certificate Expiry - Home Assistant