-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathconfiguration.yaml
40 lines (34 loc) · 982 Bytes
/
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
# https://www.home-assistant.io/integrations/default_config/
default_config:
# https://www.home-assistant.io/integrations/homeassistant/
homeassistant:
debug: true
# https://www.home-assistant.io/integrations/logger/
logger:
default: info
logs:
custom_components.average: debug
# https://www.home-assistant.io/integrations/debugpy/
# If you need to debug uncomment the line below
#debugpy:
sensor:
- platform: template
sensors:
test1:
value_template: "{{ state_attr('sun.sun', 'elevation') }}"
unit_of_measurement: '°C'
device_class: 'temperature'
test2:
value_template: "{{ 2 }}"
unit_of_measurement: '°C'
device_class: 'temperature'
- platform: average
entities:
- sensor.test1
- sensor.test2
- platform: average
name: 'Average History'
entities:
- sensor.test1
start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
end: '{{ now() }}'