Skip to content

Commit b9ff903

Browse files
fabfurnarifabaff
authored andcommitted
Create sensor.cert_expiry.markdown (home-assistant#2497)
1 parent 005ab6f commit b9ff903

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: page
3+
title: "Certificate Expiry"
4+
description: "Track HTTPS (SSL) certificate expiry as HomeAssistant sensor."
5+
date: 2017-04-24 14:14
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: home-assistant.png
11+
ha_category: Sensor
12+
ha_release: 0.43
13+
---
14+
15+
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.
16+
17+
To add the Certificate Expiry sensor to your installation, add these options to `configuration.yaml` file:
18+
19+
```yaml
20+
# Example configuration.yaml entry
21+
sensor:
22+
- platform: cert_expiry
23+
host: home-assistant.io
24+
```
25+
26+
Configuration variables:
27+
28+
- **host** (*Required*): The host FQDN (or IP) to retrieve certificate from
29+
- **port** array (*Optional*): Port number (default **443**).
30+
31+
<p class='note warning'>
32+
Make sure that the URL exactly matches your endpoint or resource.
33+
</p>

0 commit comments

Comments
 (0)