home-assistant.io/source/_components/cert_expiry.markdown
Franck Nijhof 1833c32a2c Cleans up front matter (#9835)
* Sets front matter defaults

* Removes default front matter from section templates/pages

* Removes default front matter from addon pages

* Removes default front matter from integration pages

* Removes default front matter from posts

* Removes default front matter from docs pages

* Removes default front matter from other pages

* Fixes blog category pages
2019-07-11 14:35:08 -07:00

1.1 KiB

title, description, logo, ha_category, ha_release, ha_iot_class, redirect_from
title description logo ha_category ha_release ha_iot_class redirect_from
Certificate Expiry Instructions on how to set up HTTPS (SSL) certificate expiry sensors within Home Assistant. home-assistant.png
Network
0.44 Configurable
/components/sensor.cert_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 %} host: description: The host FQDN (or IP) to retrieve certificate from. required: true type: string port: description: The port number where the server is running. required: false default: 443 type: integer name: description: The friendly name for the certificate. required: false default: SSL Certificate Expiry type: string {% endconfiguration %}

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