-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.yaml
More file actions
22 lines (22 loc) · 808 Bytes
/
scripts.yaml
File metadata and controls
22 lines (22 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
update_build_light_color:
alias: Update build light
sequence:
- data_template:
brightness: 255
entity_id: light.osram_lightify_br_rgbw_00a5c1f9_3
rgb_color:
- '{{ states("sensor.build_light_color")[0:2]|int(0,16) }}'
- '{{ states("sensor.build_light_color")[2:4]|int(0,16) }}'
- '{{ states("sensor.build_light_color")[4:6]|int(0,16) }}'
service: light.turn_on
update_incident_light_color:
alias: Update incident light
sequence:
- data_template:
brightness: 255
entity_id: light.incident_light
rgb_color:
- '{{ states("sensor.incident_light_color")[0:2]|int(0,16) }}'
- '{{ states("sensor.incident_light_color")[2:4]|int(0,16) }}'
- '{{ states("sensor.incident_light_color")[4:6]|int(0,16) }}'
service: light.turn_on