Certificate Expiry


The cert_expiry sensor fetches information from a configured URL and displays the certificate expiry in days.

Configuration

To add the Certificate Expiry sensor to your installation, add these options to configuration.yaml file:

# Example configuration.yaml entry
sensor:
  - platform: cert_expiry
    host: home-assistant.io

Configuration Variables

host

(string)(Required)The host FQDN (or IP) to retrieve certificate from.

port

(integer)(Optional)The port number where the server is running.

Default value: 443

name

(string)(Optional)The friendly name for the certificate.

Default value: SSL Certificate Expiry

Make sure that the URL exactly matches your endpoint or resource.