-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathconfig.example.h
120 lines (94 loc) · 4.33 KB
/
config.example.h
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
111
112
113
114
115
116
117
118
119
120
// Uncomment the block for your model
// Begin LC01 block, uncomment starting below this line
// #define RGB
// #define DEVICE_MODEL "LC01"
// End LC01 block, stop uncommenting above this line
// Begin LC02 block, uncomment starting below this line
// #define RGBW
// #define DEVICE_MODEL "LC02"
// End LC02 block, stop uncommenting above this line
// Begin LC03 block, uncomment starting below this line
// #define RGB
// #define IR_REMOTE
// #define DEVICE_MODEL "LC03"
// End LC03 block, stop uncommenting above this line
// Begin LC04 block, uncomment starting below this line
// #define RGBW
// #define IR_REMOTE
// #define DEVICE_MODEL "LC04"
// End LC04 block, stop uncommenting above this line
// Begin LC08 block, uncomment starting below this line
// #define RGBWW
// #define DEVICE_MODEL "LC08"
// End LC08 block, stop uncommenting above this line
// Begin LC09 block, uncomment starting below this line
// #define RGB
// #define RF_REMOTE
// #define DEVICE_MODEL "LC09"
// End LC09 block, stop uncommenting above this line
// Begin LC10 block, uncomment starting below this line
// #define RGBW
// #define RF_REMOTE
// #define DEVICE_MODEL "LC10"
// End LC10 block, stop uncommenting above this line
// Begin LC11 block, uncomment starting below this line
// #define RGBWW
// #define RF_REMOTE
// #define DEVICE_MODEL "LC11"
// End LC11 block, stop uncommenting above this line
// If you can't find your model above, you can use the defines below instead.
// #define RGB
// #define RGBW
// #define RGBWW
// #define IR_REMOTE
// #define RF_REMOTE
// #define DEVICE_MODEL "LC0X"
// Wi-Fi
#define WIFI_SSID ""
#define WIFI_PASSWORD ""
// MQTT server settings, leave username/password blank if no authentication required
#define MQTT_SERVER "m21.cloudmqtt.com"
#define MQTT_PORT 12345
#define MQTT_USER "user"
#define MQTT_PASS "pass"
// MQTT topics
// Leaving this as default will prefix all MQTT topics with RGB(W/WW)/<chipid>
#define MQTT_TOPIC_PREFIX_TEMPLATE "%s/%s"
// Last Will and Testament topic
#define MQTT_STATUS_TOPIC_TEMPLATE "%s/status"
// Enable Home Assistant MQTT discovery support. Requires ArduinoJSON library to be installed.
// #define HOME_ASSISTANT_MQTT_DISCOVERY
// #define HOME_ASSISTANT_MQTT_DISCOVERY_PREFIX "homeassistant"
// Enable Home Assistant JSON Attributes support. Requires ArduinoJSON library to be installed.
// #define HOME_ASSISTANT_MQTT_ATTRIBUTES
// #define HOME_ASSISTANT_MQTT_ATTRIBUTES_TOPIC_TEMPLATE "%s/attributes"
// Enable JSON. Requires ArduinoJSON library to be installed.
// Home Assistant supports more features such as transitions, effects and flashing via JSON only.
// #define JSON
// Leave %s at the front if you wish to use the MQTT Topic Prefix configured above
#ifdef JSON
#define MQTT_JSON_STATE_TOPIC_TEMPLATE "%s/json/state"
#define MQTT_JSON_COMMAND_TOPIC_TEMPLATE "%s/json/set"
#else
#define MQTT_STATE_STATE_TOPIC_TEMPLATE "%s/state/state"
#define MQTT_STATE_COMMAND_TOPIC_TEMPLATE "%s/state/set"
#define MQTT_BRIGHTNESS_STATE_TOPIC_TEMPLATE "%s/brightness/state"
#define MQTT_BRIGHTNESS_COMMAND_TOPIC_TEMPLATE "%s/brightness/set"
#define MQTT_COLOR_STATE_TOPIC_TEMPLATE "%s/color/state"
#define MQTT_COLOR_COMMAND_TOPIC_TEMPLATE "%s/color/set"
#if defined(RGBW) || defined (RGBWW)
#define MQTT_WHITE_STATE_TOPIC_TEMPLATE "%s/white/state"
#define MQTT_WHITE_COMMAND_TOPIC_TEMPLATE "%s/white/set"
#endif
// MQTT payloads
#define MQTT_STATE_ON_PAYLOAD "ON"
#define MQTT_STATE_OFF_PAYLOAD "OFF"
#endif
// Base hostname, used for the MQTT Client ID and OTA hostname
#define HOST "ARILUX%s"
// Enable console output via telnet
// #define DEBUG_TELNET
// TLS support, make sure to edit the fingerprint and the MQTT broker IP address if
// you are not using CloudMQTT
// #define TLS
// #define TLS_FINGERPRINT "A5 02 FF 13 99 9F 8B 39 8E F1 83 4F 11 23 65 0B 32 36 FC 07"