-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtradfri_beta.conf
98 lines (82 loc) · 4.71 KB
/
tradfri_beta.conf
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# OLA Trigger config to control IKEA Trådfri lights
# Copyright (C) 2017-2018 Johan Nilsson. www.gobo.ws
# Resources used from https://github.com/bwssytems/ha-bridge/issues/570
# DMX protocol
###############################################################################
# Channel 1 dimmer. Value 0-255 (0%-100%)
# Channel 2 fade time. Value 0-255 (0-255 ms) Set the soft fade time from the light's current state to the new state
# Channel 3 color -> (not supported by single color lamps. Color temperature lamps only support warm glow, warm white and cool white)
# Value: Name:
# 0-12 Blue
# 13-25 Light Blue
# 26-38 Saturated Purple
# 39-51 Lime
# 52-64 Light Purple
# 65-77 Yellow
# 78-90 Saturated Pink
# 91-103 Dark Peach
# 104-116 Saturated Red
# 117-129 Cold sky
# 130-142 Pink
# 143-155 Peach
# 156-168 Warm Amber
# 169-181 Light Pink
# 182-194 Cool daylight
# 195-207 Candlelight
# 208-220 Warm glow 2200K
# 221-233 Warm white 2700K
# 234-246 Sunrise
# 247-255 Cool white 4000K
# Configuration
###############################################################################
hostname='192.168.0.1' # Trådfri gateway hostname or IP address
identity='TRADFRIDMX' # Trådfri DTLS Identity
psk='1a2b3c4d5e6f7g8h' # Trådfri DTLS Identity pre shared key
light_id='65537' # Light ID number
# Variables (does not usually need to be changed)
blue='"4a418a"'
light_blue='"6c83ba"'
saturated_purple='"8f2686"'
lime='"a9d62b"'
light_purple='"c984bb"'
yellow='"d6e44b"'
saturated_pink='"d9337c"'
dark_peach='"da5d41"'
saturated_red='"dc4b31"'
cold_sky='"dcf0f8"'
pink='"e491af"'
peach='"e57345"'
warm_amber='"e78834"'
light_pink='"e8bedd"'
cool_daylight='"eaf6fb"'
candlelight='"ebb63e"'
warm_glow='"efd275"'
warm_white='"f1e0b5"'
sunrise='"f2eccf"'
cool_white='"f5faf6"'
# Triggers
###############################################################################
# Slot Values Action
2 % ttime=${slot_value}
1 0-254 `sh tradfri_beta.sh 'dimmer' '${identity}' '${psk}' '${slot_value}' '${hostname}' '${light_id}' '${ttime}'`
1 255 `sh tradfri_beta.sh 'dimmer' '${identity}' '${psk}' '254' '${hostname}' '${light_id}' '${ttime}'`
3 0-12 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${blue}' '${hostname}' '${light_id}' '${ttime}'`
3 13-25 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${light_blue}' '${hostname}' '${light_id}' '${ttime}'`
3 26-38 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${saturated_purple}' '${hostname}' '${light_id}' '${ttime}'`
3 39-51 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${lime}' '${hostname}' '${light_id}' '${ttime}'`
3 52-64 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${light_purple}' '${hostname}' '${light_id}' '${ttime}'`
3 65-77 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${yellow}' '${hostname}' '${light_id}' '${ttime}'`
3 78-90 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${saturated_pink}' '${hostname}' '${light_id}' '${ttime}'`
3 91-103 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${dark_peach}' '${hostname}' '${light_id}' '${ttime}'`
3 104-116 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${saturated_red}' '${hostname}' '${light_id}' '${ttime}'`
3 117-129 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${cold_sky}' '${hostname}' '${light_id}' '${ttime}'`
3 130-142 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${pink}' '${hostname}' '${light_id}' '${ttime}'`
3 143-155 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${peach}' '${hostname}' '${light_id}' '${ttime}'`
3 156-168 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${warm_amber}' '${hostname}' '${light_id}' '${ttime}'`
3 169-181 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${light_pink}' '${hostname}' '${light_id}' '${ttime}'`
3 182-194 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${cool_daylight}' '${hostname}' '${light_id}' '${ttime}'`
3 195-207 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${candlelight}' '${hostname}' '${light_id}' '${ttime}'`
3 208-220 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${warm_glow}' '${hostname}' '${light_id}' '${ttime}'`
3 221-233 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${warm_white}' '${hostname}' '${light_id}' '${ttime}'`
3 234-246 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${sunrise}' '${hostname}' '${light_id}' '${ttime}'`
3 247-255 `sh tradfri_beta.sh 'color' '${identity}' '${psk}' '${cool_white}' '${hostname}' '${light_id}' '${ttime}'`