-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsensors.yaml
50 lines (50 loc) · 1.85 KB
/
sensors.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
45
46
47
48
49
50
- platform: history_stats
name: TV Hours
entity_id: device_tracker.living_room_tv
state: 'home'
type: time
start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
end: '{{ now() }}'
- platform: history_stats
name: Gym visits this week
entity_id: device_tracker.clt_l29
state: 'SATS'
type: count
start: '{{ as_timestamp( now().replace(hour=0).replace(minute=0).replace(second=0) ) - now().weekday() * 86400 }}'
end: '{{ now() }}'
- platform: template
sensors:
vacuum_cleaned_area:
friendly_name: "Cleaned area"
unit_of_measurement: 'm2'
value_template: "{{ state_attr('vacuum.xiaomi_vacuum_cleaner', 'cleaned_area') }}"
sun_elevation:
friendly_name: "Solposisjon"
unit_of_measurement: 'm'
value_template: "{{ state_attr('sun.sun', 'elevation') }}"
sun_azimuth:
friendly_name: "Solazimut"
unit_of_measurement: 'Az'
value_template: "{{ state_attr('sun.sun', 'azimuth') }}"
electricity_price_level:
friendly_name: "Prisnivå strøm"
value_template: "{{ state_attr('sensor.electricity_price_home', 'price_level') }}"
washer_program:
friendly_name: "Vaskeprogram"
value_template: "{{ state_attr('sensor.washer', 'current_course') }}"
washer_temp:
friendly_name: "Vasketemperatur"
value_template: "{{ state_attr('sensor.washer', 'watertemp_option_state') }}"
washer_state:
friendly_name: "Vaskemaskinstatus"
value_template: "{{ state_attr('sensor.washer', 'run_state') }}"
washer_remain_time:
friendly_name: "Gjenværende vasketid"
value_template: "{{ state_attr('sensor.washer', 'remain_time') }}"
- platform: yr
name: Vær
forecast: 12
monitored_conditions:
- temperature
- symbol
- precipitation