forked from phrz/lg-washer-dryer-card
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
58 lines (51 loc) · 1.92 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
sensor:
- platform: template
sensors:
washer_door_lock:
friendly_name: "Washer Door Lock"
value_template: "{{ state_attr('sensor.washer','door_lock') }}"
mini_washer_door_lock:
friendly_name: "Mini Washer Door Lock"
value_template: "{{ state_attr('sensor.mini_washer','door_lock') }}"
dishwasher_door_open:
friendly_name: "Dish Washer Door Lock"
value_template: "{{ state_attr('sensor.dishwasher','door_open') }}"
washer_time_display:
friendly_name: "Washer Time Display"
value_template: >
{% if is_state('sensor.washer_run_state', '-') %}
{% elif is_state('sensor.washer_run_state', 'Standby') %}
-:--
{% else %}
{{ state_attr('sensor.washer', 'remain_time') }}
{% endif %}
mini_washer_time_display:
friendly_name: "Mini Washer Time Display"
value_template: >
{% if is_state('sensor.mini_washer_run_state', '-') %}
{% elif is_state('sensor.mini_washer_run_state', 'Standby') %}
-:--
{% else %}
{{ state_attr('sensor.mini_washer', 'remain_time') }}
{% endif %}
dryer_time_display:
friendly_name: "Dryer Time Display"
value_template: >
{% if is_state('sensor.dryer_run_state', '-') %}
{% elif is_state('sensor.dryer_run_state', 'Standby') %}
-:--
{% else %}
{{ state_attr('sensor.dryer', 'remain_time') }}
{% endif %}
dishwasher_time_display:
friendly_name: "Dish Washer Time Display"
value_template: >
{% if is_state('sensor.dishwasher_run_state', '-') %}
{% elif is_state('sensor.dishwasher_run_state', 'Standby') %}
-:--
{% else %}
{{ state_attr('sensor.dishwasher', 'remain_time') }}
{% endif %}
blank:
friendly_name: "Blank Sensor"
value_template: ""