-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlight.yaml
57 lines (52 loc) · 1.36 KB
/
light.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
- platform: group
name: Kitchen
entities:
- light.kitchen_1
- light.kitchen_2
- platform: group
name: Loungeroom
entities:
- light.loungeroom_1
- light.loungeroom_2
- light.loungeroom_3
- light.loungeroom_4
# - platform: group
# name: Hallway
# entities:
# - light.hallway_1
# - light.hallway_2
#
# - platform: group
# name: Bedroom
# entities:
# - light.bedroom_1
# - light.bedroom_2
# - light.bedroom_3
# - light.bedroom_4
# - platform: group
# name: Bedroom Night Lamps
# entities:
# - light.bedroom_2
# - light.bedroom_1
- platform: template
lights:
outside:
friendly_name: Outside
value_template: >-
{% if states('light.outside_real') == 'unknown' %}
off
{% elif is_state('light.outside_real','unavailable') %}
off
{% else %}
{{ states('light.outside_real') }}
{% endif %}
turn_on:
- service: light.turn_on
entity_id: light.outside_real
- service: input_boolean.turn_on
entity_id: input_boolean.outside_triggered
turn_off:
- service: light.turn_off
entity_id: light.outside_real
- service: input_boolean.turn_off
entity_id: input_boolean.outside_triggered