-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathceiling_select.yaml
38 lines (34 loc) · 930 Bytes
/
ceiling_select.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
#
# Manually select a LIFX cloud effect for the ceiling wash lights
#
# @subscribe input_select.ceiling_effect
#
# @publish variable.ceiling_effect
#
# @see /scenes/lifx_cloud.yaml
#
- id: ceiling_select
alias: "Ceiling SELECT"
trigger:
# When an effect has been selected.
- platform: state
entity_id: input_select.ceiling_effect
# When an item which was off comes back online.
- platform: state
entity_id:
- light.bedroom
- light.lounge
- light.middle
to: 'on'
condition:
# If an actual effect is selected, not the default.
- condition: template
value_template: >-
{{ not is_state('input_select.ceiling_effect', 'Auto') }}
action:
# Update the ceiling effect variables.
- service: variable.set_variable
data:
variable: ceiling_effect
value_template: >-
{{ states('input_select.ceiling_effect') }}