This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrm3.conf
110 lines (90 loc) · 8.99 KB
/
rm3.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
99
100
101
102
103
104
105
106
107
108
109
110
# OLA Trigger config to send infra-red commands using Broadlink RM 3 Mini
# Control Eurolite LED Puck Light multicolor IP68 and similar models with DMX
# https://www.steinigke.de/en/mpn50630236-eurolite-led-puck-light-multicolor-ip68.html
# Copyright (C) 2020 Johan Nilsson. https://gobo.ws
# DMX protocol
###############################################################################
# Channel 1 lamp on/off & dimmer. Value 0-50 off. Value 51-100 on. Value 101-120 brightness (10%-100%) or speed for the color mixes
# Channel 2 color ->
# Value: Name:
# 1-15 Red
# 16-31 Green
# 32-47 Blue
# 48-63 White
# 64-79 Orange Not working for unknown reason
# 80-95 Sea Green
# 96-111 Medium Blue Not working for unknown reason
# 112-127 Light Orange
# 128-143 Cyan
# 144-159 Purple
# 160-175 Dark Yellow
# 176-191 Sky Blue Not working for unknown reason
# 192-207 Medium Purple Not working for unknown reason
# 208-223 Yellow
# 224-239 Light Blue
# 240-255 Magenta
# Channel 3 effects ->
# 1-63 RGBW color mix 1 (Flash)
# 64-127 RGBW color mix 2 (Strobe)
# 128-190 RGBW color mix 3 (Fade)
# 191-255 RGB color mix (Smooth) Not working for unknown reason
# Comments
# If you want to use another remote and add your own codes you can for instance use:
# BlackBeanControl, https://github.com/TheGU/rm3_mini_controller
# Broadlink Manager, https://sourceforge.net/projects/broadlink-manager/files/
###############################################################################
# Configuration
###############################################################################
hostname='192.168.0.1:1880' # Node-RED hostname:port
# Broadlink RM 3 Mini IR codes:
off='2600580000012994131312131312131313121313121313121337133713371238123715351337133712371337133713371237131312131313121313121313121313131237133713371300051e00012a4a15000c5600012a4814000d05'
on='26005800000129941412141115111411180e1213131213131336143613371436133614361436143613361412133712371412131213131312131313361313131214361436133713361400051c00012e4913000c5400012d4914000d05'
bright_down='2600580000012794141213121412131213121313131213121436143613371336143614361337133614361411133713371337131213121412131214361312141212131337133614361400051d00012c4914000c5700012a4a13000d05'
bright_up='2600600000012a92151015111510151015111510151016101535153415351535153515341634153515351510151115341511151015111510151015351535151015351535153415351500051c00012d4815000c590001294815000c5700012b4815000d050000000000000000'
red='2600580000012a95141114131311141214111412141114131336153514351634143614361436143614361511131312361535141313121412131214341535151213121435153416341500051a00012f4815000c5300012d4814000d05'
green='2600600000012a93160f16101510161015121310151115101634153515351435153515351535143515351535151015351535151016101510151114111535151015111436143515351500051c00012b4a14000c5500012c4815000c5400012a4a14000d050000000000000000'
blue='2600580000012994131313131213131312131313131213131337123715351337133713381a2f123812371313131213131237131313121313131213371337133713121337133713371200051d00012c4a13000c5700012b4a12000d05'
white='260064000400043100012e94131214121312141213121412131214121336143614361436133713361436143614351412143614111436141213121412131214361312143614111436143614361300051e00012d4914000c4e0001314914000c4a0001294914000d0500000000'
orange='26004c00131214121312141114121312141114121336143911361337133614361436133713361436143613121436131213131312131214121312143612131436133713361400051d00012c4913000d05000000000000000000000000'
sea_green='2600500000012994141114121312141114121312141113131337133614361436133712371436143613121436141114121336141213121412133614121336143614111436143614361300051e00012a4a14000d050000000000000000'
medium_blue='26004c00141213121411141213121412131213121436143613371336143614361436133614121436133713121436141114121312143614121312143614111436143613371400051c00012c4a13000d05000000000000000000000000'
light_orange='2600580000012b93141213121411141213121412131213131336143614361436133713361436143614111412131214121312141213361412133713371336143614361436131214361400051d00012c4814000c5800012c4914000d05'
cyan='26005c0000012994131312131313131213131312131313121337133713371337133712371337133713131312133713371312131313371213133713371312131312371337131312371300017f0500039b00012a4913000c5900012a4913000d05000000000000000000000000'
purple='2600580000012a92151016101510151115101511151015101634153515351534153515351535153416101510153515101610151015111510153515341610153515341535153515351500051b00012d4815000c4800012c4815000d05'
dark_yellow='26005800000129931510160f1610151016101510160f16101534163416341535153416341535163414111535151016341510161113111510163416101435151115341535153515351500051c00012d4814000c5700012c4814000d05'
sky_blue='26005400121313131213131312131313121313141137143615351535153414361436153514131236153514361535141214121312143513121512131214121335153514351500051c00012f4716000c5300012c4815000d0500000000'
medium_purple='26005400141214111412131214121411141214111436143614361336143614361436143613121436133713361412141114121411143614121312141214351436143614361400051400012c4a13000c3f00012b4914000d0500000000'
yellow='2600580000012894131214121312131213131312141114121436133614361436143613361436143614111412143613361436141213121412133614361412131214111436143613371300051f00012d4713000c5600012b4a13000d05'
light_blue='26005c00040009530001299513121511141313101511141115101511153515341634163415341535153516341510160f153515111435161014111510153515351510163415101634153515341500051d00012c4815000c5500012a4a14000d05000000000000000000000000'
magenta='2600580000012993141214111412141114121312141213121436143613361436133714361337133614361436143613371312141114121312141213121411141213361436143614361300051e00012a4a14000c5500012b4914000d05'
flash='2600580000012895141113131213131213131312131312131337133712371337133713371237133714361312133713371213141212371313131214361411141213371237131312371300051900012d4a13000c560001294914000d05'
strobe='2600580000012993151015111411151114111510151114111535153514351535153515351436143416111411151015111510151114111510153515351535153515341535153514351500051f00012a4815000c5600012a4a12000d05'
fade='2600600000012a92151114111510151114111511141115111435153515351535153416341634163415121434151016341535151015101511143614111634151016101435153515351500051b00012d4912000c5700012d4815000c4300012b4a13000d050000000000000000'
smooth='26005c00141114121314121114131313121213131336143514361535143615341436143615121213133614351512131312131213133614351512141213351436143514361400051b00012d4915000c4800012c4914000c5700012b4913000d05000000000000000000000000'
# Triggers
###############################################################################
# Slot Values Action
1 0-50 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${off}'`
1 51-100 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${on}'`
1 101-110 -`curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${bright_down}'`
1 111-120 +`curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${bright_up}'`
2 1-15 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${red}'`
2 16-31 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${green}'`
2 32-47 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${blue}'`
2 48-63 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${white}'`
2 64-79 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${orange}'`
2 80-95 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${sea_green}'`
2 96-111 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${medium_blue}'`
2 112-127 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${light_orange}'`
2 128-143 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${cyan}'`
2 144-159 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${purple}'`
2 160-175 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${dark_yellow}'`
2 176-191 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${sky_blue}'`
2 192-207 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${medium_purple}'`
2 208-223 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${yellow}'`
2 224-239 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${light_blue}'`
2 240-255 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${magenta}'`
3 1-63 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${flash}'`
3 64-127 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${strobe}'`
3 128-190 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${fade}'`
3 191-255 `curl '-s' '-o /dev/null' '-k' 'http://${hostname}/rgb-remote?code=${smooth}'`