-
Notifications
You must be signed in to change notification settings - Fork 833
/
IRtext.cpp
305 lines (292 loc) · 13.1 KB
/
IRtext.cpp
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
// Copyright 2019-2020 - David Conran (@crankyoldgit)
/// @file IRtext.cpp
/// @warning If you add or remove an entry in this file, you should run:
/// '../tools/generate_irtext_h.sh' to rebuild the `IRtext.h` file.
#ifndef UNIT_TEST
#include <Arduino.h>
#endif // UNIT_TEST
#include "IRremoteESP8266.h"
#include "i18n.h"
#ifndef PROGMEM
#define PROGMEM // Pretend we have the PROGMEM macro even if we really don't.
#endif
// Common
const PROGMEM char* kUnknownStr = D_STR_UNKNOWN; ///< "Unknown"
const PROGMEM char* kProtocolStr = D_STR_PROTOCOL; ///< "Protocol"
const PROGMEM char* kPowerStr = D_STR_POWER; ///< "Power"
const PROGMEM char* kOnStr = D_STR_ON; ///< "On"
const PROGMEM char* kOffStr = D_STR_OFF; ///< "Off"
const PROGMEM char* kModeStr = D_STR_MODE; ///< "Mode"
const PROGMEM char* kToggleStr = D_STR_TOGGLE; ///< "Toggle"
const PROGMEM char* kTurboStr = D_STR_TURBO; ///< "Turbo"
const PROGMEM char* kSuperStr = D_STR_SUPER; ///< "Super"
const PROGMEM char* kSleepStr = D_STR_SLEEP; ///< "Sleep"
const PROGMEM char* kLightStr = D_STR_LIGHT; ///< "Light"
const PROGMEM char* kPowerfulStr = D_STR_POWERFUL; ///< "Powerful"
const PROGMEM char* kQuietStr = D_STR_QUIET; ///< "Quiet"
const PROGMEM char* kEconoStr = D_STR_ECONO; ///< "Econo"
const PROGMEM char* kSwingStr = D_STR_SWING; ///< "Swing"
const PROGMEM char* kSwingHStr = D_STR_SWINGH; ///< "SwingH"
const PROGMEM char* kSwingVStr = D_STR_SWINGV; ///< "SwingV"
const PROGMEM char* kBeepStr = D_STR_BEEP; ///< "Beep"
const PROGMEM char* kZoneFollowStr = D_STR_ZONEFOLLOW; ///< "Zone Follow"
const PROGMEM char* kFixedStr = D_STR_FIXED; ///< "Fixed"
const PROGMEM char* kMouldStr = D_STR_MOULD; ///< "Mould"
const PROGMEM char* kCleanStr = D_STR_CLEAN; ///< "Clean"
const PROGMEM char* kPurifyStr = D_STR_PURIFY; ///< "Purify"
const PROGMEM char* kTimerStr = D_STR_TIMER; ///< "Timer"
const PROGMEM char* kOnTimerStr = D_STR_ONTIMER; ///< "On Timer"
const PROGMEM char* kOffTimerStr = D_STR_OFFTIMER; ///< "Off Timer"
const PROGMEM char* kTimerModeStr = D_STR_TIMERMODE; ///< "Timer Mode"
const PROGMEM char* kClockStr = D_STR_CLOCK; ///< "Clock"
const PROGMEM char* kCommandStr = D_STR_COMMAND; ///< "Command"
const PROGMEM char* kXFanStr = D_STR_XFAN; ///< "XFan"
const PROGMEM char* kHealthStr = D_STR_HEALTH; ///< "Health"
const PROGMEM char* kModelStr = D_STR_MODEL; ///< "Model"
const PROGMEM char* kTempStr = D_STR_TEMP; ///< "Temp"
const PROGMEM char* kIFeelStr = D_STR_IFEEL; ///< "IFeel"
const PROGMEM char* kHumidStr = D_STR_HUMID; ///< "Humid"
const PROGMEM char* kSaveStr = D_STR_SAVE; ///< "Save"
const PROGMEM char* kEyeStr = D_STR_EYE; ///< "Eye"
const PROGMEM char* kFollowStr = D_STR_FOLLOW; ///< "Follow"
const PROGMEM char* kIonStr = D_STR_ION; ///< "Ion"
const PROGMEM char* kFreshStr = D_STR_FRESH; ///< "Fresh"
const PROGMEM char* kHoldStr = D_STR_HOLD; ///< "Hold"
const PROGMEM char* kButtonStr = D_STR_BUTTON; ///< "Button"
const PROGMEM char* k8CHeatStr = D_STR_8C_HEAT; ///< "8C Heat"
const PROGMEM char* k10CHeatStr = D_STR_10C_HEAT; ///< "10C Heat"
const PROGMEM char* kNightStr = D_STR_NIGHT; ///< "Night"
const PROGMEM char* kSilentStr = D_STR_SILENT; ///< "Silent"
const PROGMEM char* kFilterStr = D_STR_FILTER; ///< "Filter"
const PROGMEM char* k3DStr = D_STR_3D; ///< "3D"
const PROGMEM char* kCelsiusStr = D_STR_CELSIUS; ///< "Celsius"
const PROGMEM char* kCelsiusFahrenheitStr = D_STR_CELSIUS_FAHRENHEIT; ///<
///< "Celsius/Fahrenheit"
const PROGMEM char* kTempUpStr = D_STR_TEMPUP; ///< "Temp Up"
const PROGMEM char* kTempDownStr = D_STR_TEMPDOWN; ///< "Temp Down"
const PROGMEM char* kStartStr = D_STR_START; ///< "Start"
const PROGMEM char* kStopStr = D_STR_STOP; ///< "Stop"
const PROGMEM char* kMoveStr = D_STR_MOVE; ///< "Move"
const PROGMEM char* kSetStr = D_STR_SET; ///< "Set"
const PROGMEM char* kCancelStr = D_STR_CANCEL; ///< "Cancel"
const PROGMEM char* kUpStr = D_STR_UP; ///< "Up"
const PROGMEM char* kDownStr = D_STR_DOWN; ///< "Down"
const PROGMEM char* kChangeStr = D_STR_CHANGE; ///< "Change"
const PROGMEM char* kComfortStr = D_STR_COMFORT; ///< "Comfort"
const PROGMEM char* kSensorStr = D_STR_SENSOR; ///< "Sensor"
const PROGMEM char* kWeeklyTimerStr = D_STR_WEEKLYTIMER; ///< "WeeklyTimer"
const PROGMEM char* kWifiStr = D_STR_WIFI; ///< "Wifi"
const PROGMEM char* kLastStr = D_STR_LAST; ///< "Last"
const PROGMEM char* kFastStr = D_STR_FAST; ///< "Fast"
const PROGMEM char* kSlowStr = D_STR_SLOW; ///< "Slow"
const PROGMEM char* kAirFlowStr = D_STR_AIRFLOW; ///< "Air Flow"
const PROGMEM char* kStepStr = D_STR_STEP; ///< "Step"
const PROGMEM char* kNAStr = D_STR_NA; ///< "N/A"
const PROGMEM char* kInsideStr = D_STR_INSIDE; ///< "Inside"
const PROGMEM char* kOutsideStr = D_STR_OUTSIDE; ///< "Outside"
const PROGMEM char* kLoudStr = D_STR_LOUD; ///< "Loud"
const PROGMEM char* kLowerStr = D_STR_LOWER; ///< "Lower"
const PROGMEM char* kUpperStr = D_STR_UPPER; ///< "Upper"
const PROGMEM char* kBreezeStr = D_STR_BREEZE; ///< "Breeze"
const PROGMEM char* kCirculateStr = D_STR_CIRCULATE; ///< "Circulate"
const PROGMEM char* kCeilingStr = D_STR_CEILING; ///< "Ceiling"
const PROGMEM char* kWallStr = D_STR_WALL; ///< "Wall"
const PROGMEM char* kRoomStr = D_STR_ROOM; ///< "Room"
const PROGMEM char* k6thSenseStr = D_STR_6THSENSE; ///< "6th Sense"
const PROGMEM char* kTypeStr = D_STR_TYPE; ///< "Type"
const PROGMEM char* kSpecialStr = D_STR_SPECIAL; ///< "Special"
const PROGMEM char* kIdStr = D_STR_ID; ///< "Id" / Device Identifier
const PROGMEM char* kVaneStr = D_STR_VANE; ///< "Vane"
const PROGMEM char* kAutoStr = D_STR_AUTO; ///< "Auto"
const PROGMEM char* kAutomaticStr = D_STR_AUTOMATIC; ///< "Automatic"
const PROGMEM char* kManualStr = D_STR_MANUAL; ///< "Manual"
const PROGMEM char* kCoolStr = D_STR_COOL; ///< "Cool"
const PROGMEM char* kHeatStr = D_STR_HEAT; ///< "Heat"
const PROGMEM char* kDryStr = D_STR_DRY; ///< "Dry"
const PROGMEM char* kFanStr = D_STR_FAN; ///< "Fan"
// The following Fans strings with "only" are required to help with
// HomeAssistant & Google Home Climate integration. For compatibility only.
// Ref: https://www.home-assistant.io/integrations/google_assistant/#climate-operation-modes
const PROGMEM char* kFanOnlyStr = D_STR_FANONLY; ///< "fan-only"
const PROGMEM char* kFan_OnlyStr = D_STR_FAN_ONLY; ///< "fan_only" (legacy use)
const PROGMEM char* kFanOnlyWithSpaceStr = D_STR_FANSPACEONLY; ///< "Fan Only"
const PROGMEM char* kFanOnlyNoSpaceStr = D_STR_FANONLYNOSPACE; ///< "FanOnly"
const PROGMEM char* kRecycleStr = D_STR_RECYCLE; ///< "Recycle"
const PROGMEM char* kMaxStr = D_STR_MAX; ///< "Max"
const PROGMEM char* kMaximumStr = D_STR_MAXIMUM; ///< "Maximum"
const PROGMEM char* kMinStr = D_STR_MIN; ///< "Min"
const PROGMEM char* kMinimumStr = D_STR_MINIMUM; ///< "Minimum"
const PROGMEM char* kMedStr = D_STR_MED; ///< "Med"
const PROGMEM char* kMediumStr = D_STR_MEDIUM; ///< "Medium"
const PROGMEM char* kHighestStr = D_STR_HIGHEST; ///< "Highest"
const PROGMEM char* kHighStr = D_STR_HIGH; ///< "High"
const PROGMEM char* kHiStr = D_STR_HI; ///< "Hi"
const PROGMEM char* kMidStr = D_STR_MID; ///< "Mid"
const PROGMEM char* kMiddleStr = D_STR_MIDDLE; ///< "Middle"
const PROGMEM char* kLowStr = D_STR_LOW; ///< "Low"
const PROGMEM char* kLoStr = D_STR_LO; ///< "Lo"
const PROGMEM char* kLowestStr = D_STR_LOWEST; ///< "Lowest"
const PROGMEM char* kMaxRightStr = D_STR_MAXRIGHT; ///< "Max Right"
const PROGMEM char* kRightMaxStr = D_STR_RIGHTMAX_NOSPACE; ///< "RightMax"
const PROGMEM char* kRightStr = D_STR_RIGHT; ///< "Right"
const PROGMEM char* kLeftStr = D_STR_LEFT; ///< "Left"
const PROGMEM char* kMaxLeftStr = D_STR_MAXLEFT; ///< "Max Left"
const PROGMEM char* kLeftMaxStr = D_STR_LEFTMAX_NOSPACE; ///< "LeftMax"
const PROGMEM char* kWideStr = D_STR_WIDE; ///< "Wide"
const PROGMEM char* kCentreStr = D_STR_CENTRE; ///< "Centre"
const PROGMEM char* kTopStr = D_STR_TOP; ///< "Top"
const PROGMEM char* kBottomStr = D_STR_BOTTOM; ///< "Bottom"
// Compound words/phrases/descriptions from pre-defined words.
const PROGMEM char* kEconoToggleStr = D_STR_ECONOTOGGLE; ///< "Econo Toggle"
const PROGMEM char* kEyeAutoStr = D_STR_EYEAUTO; ///< "Eye Auto"
const PROGMEM char* kLightToggleStr = D_STR_LIGHTTOGGLE; ///< "Light Toggle"
const PROGMEM char* kOutsideQuietStr = D_STR_OUTSIDEQUIET; ///< "Outside Quiet"
const PROGMEM char* kPowerToggleStr = D_STR_POWERTOGGLE; ///< "Power Toggle"
const PROGMEM char* kPowerButtonStr = D_STR_POWERBUTTON; ///< "Power Button"
const PROGMEM char* kPreviousPowerStr = D_STR_PREVIOUSPOWER; ///<
///< "Previous Power"
const PROGMEM char* kDisplayTempStr = D_STR_DISPLAYTEMP; ///< "Display Temp"
const PROGMEM char* kSensorTempStr = D_STR_SENSORTEMP; ///< "Sensor Temp"
const PROGMEM char* kSleepTimerStr = D_STR_SLEEP_TIMER; ///< "Sleep Timer"
const PROGMEM char* kSwingVModeStr = D_STR_SWINGVMODE; ///< "Swing(V) Mode"
const PROGMEM char* kSwingVToggleStr = D_STR_SWINGVTOGGLE; ///<
///< "Swing(V) Toggle"
const PROGMEM char* kTurboToggleStr = D_STR_TURBOTOGGLE; ///< "Turbo Toggle"
// Separators
char kTimeSep = D_CHR_TIME_SEP; ///< ':'
const PROGMEM char* kSpaceLBraceStr = D_STR_SPACELBRACE; ///< " ("
const PROGMEM char* kCommaSpaceStr = D_STR_COMMASPACE; ///< ", "
const PROGMEM char* kColonSpaceStr = D_STR_COLONSPACE; ///< ": "
// IRutils
// - Time
const PROGMEM char* kDayStr = D_STR_DAY; ///< "Day"
const PROGMEM char* kDaysStr = D_STR_DAYS; ///< "Days"
const PROGMEM char* kHourStr = D_STR_HOUR; ///< "Hour"
const PROGMEM char* kHoursStr = D_STR_HOURS; ///< "Hours"
const PROGMEM char* kMinuteStr = D_STR_MINUTE; ///< "Minute"
const PROGMEM char* kMinutesStr = D_STR_MINUTES; ///< "Minutes"
const PROGMEM char* kSecondStr = D_STR_SECOND; ///< "Second"
const PROGMEM char* kSecondsStr = D_STR_SECONDS; ///< "Seconds"
const PROGMEM char* kNowStr = D_STR_NOW; ///< "Now"
const PROGMEM char* kThreeLetterDayOfWeekStr = D_STR_THREELETTERDAYS; ///<
///< "SunMonTueWedThuFriSat"
const PROGMEM char* kYesStr = D_STR_YES; ///< "Yes"
const PROGMEM char* kNoStr = D_STR_NO; ///< "No"
const PROGMEM char* kTrueStr = D_STR_TRUE; ///< "True"
const PROGMEM char* kFalseStr = D_STR_FALSE; ///< "False"
const PROGMEM char* kRepeatStr = D_STR_REPEAT; ///< "Repeat"
const PROGMEM char* kCodeStr = D_STR_CODE; ///< "Code"
const PROGMEM char* kBitsStr = D_STR_BITS; ///< "Bits"
// Protocol Names
// Needs to be in decode_type_t order.
const PROGMEM char *kAllProtocolNamesStr =
D_STR_UNUSED "\x0"
D_STR_RC5 "\x0"
D_STR_RC6 "\x0"
D_STR_NEC "\x0"
D_STR_SONY "\x0"
D_STR_PANASONIC "\x0"
D_STR_JVC "\x0"
D_STR_SAMSUNG "\x0"
D_STR_WHYNTER "\x0"
D_STR_AIWA_RC_T501 "\x0"
D_STR_LG "\x0"
D_STR_SANYO "\x0"
D_STR_MITSUBISHI "\x0"
D_STR_DISH "\x0"
D_STR_SHARP "\x0"
D_STR_COOLIX "\x0"
D_STR_DAIKIN "\x0"
D_STR_DENON "\x0"
D_STR_KELVINATOR "\x0"
D_STR_SHERWOOD "\x0"
D_STR_MITSUBISHI_AC "\x0"
D_STR_RCMM "\x0"
D_STR_SANYO_LC7461 "\x0"
D_STR_RC5X "\x0"
D_STR_GREE "\x0"
D_STR_PRONTO "\x0"
D_STR_NEC_LIKE "\x0"
D_STR_ARGO "\x0"
D_STR_TROTEC "\x0"
D_STR_NIKAI "\x0"
D_STR_RAW "\x0"
D_STR_GLOBALCACHE "\x0"
D_STR_TOSHIBA_AC "\x0"
D_STR_FUJITSU_AC "\x0"
D_STR_MIDEA "\x0"
D_STR_MAGIQUEST "\x0"
D_STR_LASERTAG "\x0"
D_STR_CARRIER_AC "\x0"
D_STR_HAIER_AC "\x0"
D_STR_MITSUBISHI2 "\x0"
D_STR_HITACHI_AC "\x0"
D_STR_HITACHI_AC1 "\x0"
D_STR_HITACHI_AC2 "\x0"
D_STR_GICABLE "\x0"
D_STR_HAIER_AC_YRW02 "\x0"
D_STR_WHIRLPOOL_AC "\x0"
D_STR_SAMSUNG_AC "\x0"
D_STR_LUTRON "\x0"
D_STR_ELECTRA_AC "\x0"
D_STR_PANASONIC_AC "\x0"
D_STR_PIONEER "\x0"
D_STR_LG2 "\x0"
D_STR_MWM "\x0"
D_STR_DAIKIN2 "\x0"
D_STR_VESTEL_AC "\x0"
D_STR_TECO "\x0"
D_STR_SAMSUNG36 "\x0"
D_STR_TCL112AC "\x0"
D_STR_LEGOPF "\x0"
D_STR_MITSUBISHI_HEAVY_88 "\x0"
D_STR_MITSUBISHI_HEAVY_152 "\x0"
D_STR_DAIKIN216 "\x0"
D_STR_SHARP_AC "\x0"
D_STR_GOODWEATHER "\x0"
D_STR_INAX "\x0"
D_STR_DAIKIN160 "\x0"
D_STR_NEOCLIMA "\x0"
D_STR_DAIKIN176 "\x0"
D_STR_DAIKIN128 "\x0"
D_STR_AMCOR "\x0"
D_STR_DAIKIN152 "\x0"
D_STR_MITSUBISHI136 "\x0"
D_STR_MITSUBISHI112 "\x0"
D_STR_HITACHI_AC424 "\x0"
D_STR_SONY_38K "\x0"
D_STR_EPSON "\x0"
D_STR_SYMPHONY "\x0"
D_STR_HITACHI_AC3 "\x0"
D_STR_DAIKIN64 "\x0"
D_STR_AIRWELL "\x0"
D_STR_DELONGHI_AC "\x0"
D_STR_DOSHISHA "\x0"
D_STR_MULTIBRACKETS "\x0"
D_STR_CARRIER_AC40 "\x0"
D_STR_CARRIER_AC64 "\x0"
D_STR_HITACHI_AC344 "\x0"
D_STR_CORONA_AC "\x0"
D_STR_MIDEA24 "\x0"
D_STR_ZEPEAL "\x0"
D_STR_SANYO_AC "\x0"
D_STR_VOLTAS "\x0"
D_STR_METZ "\x0"
D_STR_TRANSCOLD "\x0"
D_STR_TECHNIBEL_AC "\x0"
D_STR_MIRAGE "\x0"
D_STR_ELITESCREENS "\x0"
D_STR_PANASONIC_AC32 "\x0"
D_STR_MILESTAG2 "\x0"
D_STR_ECOCLIM "\x0"
D_STR_XMP "\x0"
D_STR_TRUMA "\x0"
D_STR_HAIER_AC176 "\x0"
D_STR_TEKNOPOINT "\x0"
D_STR_KELON "\x0"
D_STR_TROTEC_3550 "\x0"
D_STR_SANYO_AC88 "\x0"
D_STR_BOSE "\x0"
D_STR_ARRIS "\x0"
///< New protocol strings should be added just above this line.
"\x0"; ///< This string requires double null termination.