-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsensors.yaml
60 lines (59 loc) · 2.02 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
51
52
53
54
55
56
57
58
59
60
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
- platform: template
sensors:
outdoor_temperature:
friendly_name: 'Utomhus'
icon_template: mdi:thermometer
unit_of_measurement: '°C'
value_template: >
{{ (state_attr('weather.met_hem','temperature') * 0.4 + state_attr('weather.smhi_hem','temperature') * 0.6) | round(1) }}
hallway_switch_updated:
friendly_name: 'Hallway switch updated'
value_template: >
{{ state_attr('remote.hallway_switch','last_updated') }}
bedroom_music_timer_duration:
value_template: >
{{ "00:%0.02d:00" | format(states('input_number.bedroom_music_timer_minutes') | int) }}
bedroom_music_timer_minutes:
friendly_name: 'Längd'
icon_template: mdi:timer-outline
unit_of_measurement: 'min'
value_template: >
{{ states('input_number.bedroom_music_timer_minutes') | round(0) }}
vacuum_mode_neato:
value_template: >
{% if is_state('input_boolean.vacuum_eco_mode','on') %}
{{ 1 }}
{% else %}
{{ 2 }}
{% endif %}
vacuum_extra_care_neato:
value_template: >
{% if is_state('input_boolean.vacuum_extra_care','on') %}
{{ 2 }}
{% else %}
{{ 1 }}
{% endif %}
ups_power_delivery:
friendly_name: UPS Power Delivery
icon_template: mdi:flash
unit_of_measurement: W
value_template: >
{{ ((states('sensor.ups_load') | int) * 0.01 * 330) | int }}
car_status:
friendly_name: Bilen
icon_template: mdi:car
value_template: >
{% if is_state('binary_sensor.sbw57s_engine','on') %}
Aktiv
{% elif not is_state('binary_sensor.sbw57s_engine','on') and is_state('device_tracker.sbw57s','not_home') %}
Borta
{% elif not is_state('binary_sensor.sbw57s_engine','on') and is_state('device_tracker.sbw57s','home') %}
Hemma
{% else %}
{{ states('device_tracker.sbw57s') }}
{% endif %}