-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
44 lines (36 loc) · 1.29 KB
/
configuration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# API activation
api:
# Depending on your needs
mqtt:
broker: mqtt
sensor:
# Minimal configuration of the standard time and date sensor
- platform: time_date
display_options:
- 'date_time_iso'
- platform: template
sensors:
# The time and date like you prefer it
time_formatted:
friendly_name: "Date and time"
value_template: >
{{ as_timestamp(states('sensor.date_time_iso')) | timestamp_custom('%-Hh%M', False) }}
icon_template: mdi:calendar-clock
# Custom sensors to format Sunrise and have it in local time
nextsunrise:
friendly_name: 'Lever'
value_template: >
{{ as_timestamp(state_attr('sun.sun', 'next_rising')) | timestamp_custom('%-Hh%M', True) }}
icon_template: mdi:weather-sunset-up
# Custom sensors to format Sunset and have it in local time
nextsunset:
friendly_name: 'Coucher'
value_template: >
{{ as_timestamp(state_attr('sun.sun', 'next_setting')) | timestamp_custom('%-Hh%M', True) }}
icon_template: mdi:weather-sunset-down
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml