mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 12:26:50 +00:00
Create sensor.cert_expiry.markdown (#2497)
This commit is contained in:
parent
005ab6f366
commit
b9ff90340e
33
source/_components/sensor.cert_expiry.markdown
Normal file
33
source/_components/sensor.cert_expiry.markdown
Normal file
@ -0,0 +1,33 @@
|
||||
---
|
||||
layout: page
|
||||
title: "Certificate Expiry"
|
||||
description: "Track HTTPS (SSL) certificate expiry as HomeAssistant sensor."
|
||||
date: 2017-04-24 14:14
|
||||
sidebar: true
|
||||
comments: false
|
||||
sharing: true
|
||||
footer: true
|
||||
logo: home-assistant.png
|
||||
ha_category: Sensor
|
||||
ha_release: 0.43
|
||||
---
|
||||
|
||||
This sensor fetches information from a configured URL and displays the certificate expiry (in days). The `host` and `port` must lead to a working SSL website.
|
||||
|
||||
To add the Certificate Expiry sensor to your installation, add these options to `configuration.yaml` file:
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
sensor:
|
||||
- platform: cert_expiry
|
||||
host: home-assistant.io
|
||||
```
|
||||
|
||||
Configuration variables:
|
||||
|
||||
- **host** (*Required*): The host FQDN (or IP) to retrieve certificate from
|
||||
- **port** array (*Optional*): Port number (default **443**).
|
||||
|
||||
<p class='note warning'>
|
||||
Make sure that the URL exactly matches your endpoint or resource.
|
||||
</p>
|
Loading…
x
Reference in New Issue
Block a user