mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
commit
6401a93905
@ -209,6 +209,12 @@ the manufacturers of these devices.
|
||||
<td><a href='/components/sensor.openweathermap.html'>OpenWeatherMap</a></td>
|
||||
<td>Display current meteorological data from your location</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><a href='/components/time_date.html'>Time & Date</a></td>
|
||||
<td>Displays the time and the date.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p class='note'>
|
||||
|
30
source/components/sensor.time_date.markdown
Normal file
30
source/components/sensor.time_date.markdown
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
layout: page
|
||||
title: "Time & Date support"
|
||||
description: "Instructions how to integrate the time and the date within Home Assistant."
|
||||
date: 2015-05-08 17:15
|
||||
sidebar: false
|
||||
comments: false
|
||||
sharing: true
|
||||
footer: true
|
||||
---
|
||||
|
||||
The time and date platform simple displays the time, the date, or both.
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
sensor:
|
||||
platform: time_date
|
||||
monitored_variables:
|
||||
- type: 'time'
|
||||
- type: 'date'
|
||||
- type: 'date_time'
|
||||
- type: 'time_date'
|
||||
```
|
||||
|
||||
The types *date_time* and *time_date* shows the date and the time. The other two types just the time or the date.
|
||||
|
||||
<p class='img'>
|
||||
<img src='{{site_root}}/images/screenshots/time_date.png' />
|
||||
</p>
|
||||
|
BIN
source/images/screenshots/time_date.png
Normal file
BIN
source/images/screenshots/time_date.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 67 KiB |
Loading…
x
Reference in New Issue
Block a user