-
Notifications
You must be signed in to change notification settings - Fork 0
/
tradfri.conf
42 lines (26 loc) · 1.67 KB
/
tradfri.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
# OLA Trigger config to control IKEA Trådfri lights
# Copyright (C) 2017 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 color temperature. Value 0-84 2700K (Warm white), value 85-170 4000K (Cool white), value 171-255 2200K (Warm glow)
# 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
#ttime='x' # Set the soft fade time from the light's current state to the new state (not yet implemented)
# Variables (does not usually need to be changed)
ww='"f1e0b5"'
cw='"f5faf6"'
wg='"efd275"'
# Triggers
###############################################################################
# Slot Values Action
1 0-254 `sh tradfri.sh 'dimmer' '${identity}' '${psk}' '${slot_value}' '${hostname}' '${light_id}'`
1 255 `sh tradfri.sh 'dimmer' '${identity}' '${psk}' '254' '${hostname}' '${light_id}'`
2 0-84 `sh tradfri.sh 'color' '${identity}' '${psk}' '${ww}' '${hostname}' '${light_id}'`
2 85-170 `sh tradfri.sh 'color' '${identity}' '${psk}' '${cw}' '${hostname}' '${light_id}'`
2 171-255 `sh tradfri.sh 'color' '${identity}' '${psk}' '${wg}' '${hostname}' '${light_id}'`