| LightHub v4.0.0 Smarthome controller firmware

textconst.h
Go to the documentation of this file.
1 #pragma once
2
3 const char state_P[] PROGMEM = "$state";
4 const char disconnected_P[] PROGMEM = "disconnected";
5 const char ready_P[] PROGMEM = "ready";
6
7 const char homie_P[] PROGMEM = "$homie";
8 const char homiever_P[] PROGMEM = "3.0.1";
9
10 const char name_P[] PROGMEM = "$name";
11 const char nameval_P[] PROGMEM = "LightHub ";
12
13 const char nodes_P[] PROGMEM = "$nodes";
14 const char properties_P[] PROGMEM = "$properties";
15 const char propertiesVal_P[] PROGMEM = "set,cmd";
16 const char settable_P[] PROGMEM = "settable";
17 const char localip_P[] PROGMEM = "$localip";
18 const char mac_P[] PROGMEM = "$mac";
19 const char fwname_P[] PROGMEM = "$fw/name";
20 const char fwversion_P[] PROGMEM = "$fw/version";
21 const char implementation_P[] PROGMEM = "$implementation";
22 const char interval_P[] PROGMEM = "$stats/interval";
23 const char color_P[] PROGMEM = "color";
24
25 const char datatype_P[] PROGMEM = "$datatype";
26
27 const char float_P[] PROGMEM = "float";
28 const char hsv_P[] PROGMEM = "hsv";
29 const char int_P[] PROGMEM = "integer";
30 const char enum_P[] PROGMEM = "enum";
31 const char format_P[] PROGMEM = "$format";
32 const char true_P[] PROGMEM = "true";
33 const char false_P[] PROGMEM = "false";
34
35 const char enumformat_P[] PROGMEM = "ON,OFF,HALT,REST,XON,XOFF,TOGGLE";
36 const char intformat_P[] PROGMEM = "0-100";
37
38 const char stats_P[] PROGMEM = "$stats";
39 const char statsval_P[] PROGMEM = "uptime,freeheap";
40 const char uptime_P[] PROGMEM = "uptime";
41 const char freeheap_P[] PROGMEM = "freeheap";
42
43 /*
44
45 {"name": "Спальня LED",
46 "command_topic": "myhome/in/bedr/cmd",
47 "state_topic": "myhome/s_out/bedr/cmd",
48 "hs_command_topic": "myhome/in/bedr/set",
49 "hs_state_topic": "myhome/s_out/bedr/set",
50 "hs_value_template": "{%set a=value.split(',')%} {% if a[1] -%} {{a[0]+','+a[1]}} {%- endif %}",
51 "brightness_scale": 100,
52 "brightness_command_topic": "myhome/in/bedr/set",
53 "brightness_state_topic": "myhome/s_out/bedr/set",
54 "brightness_value_template": "{{ value.split(',')[2] }}"
55 }
56
57 {
58 "~":"myhome"
59 "name": "Спальня LED",
60 "cmd_t": "~/in/bedr/cmd",
61 "tat_t": "~/s_out/bedr/cmd",
62 "hs_cmd_t": "~/in/bedr/set",
63 "hs_stat_t": "~/s_out/bedr/set",
64 "hs_val_tpl": "{%set a=value.split(',')%}{% if a[1] -%}{{a[0]+','+a[1]}}{%- endif %}",
65 "bri_scl": 100,
66 "bri_cmd_t": "~/in/bedr/set",
67 "bri_stat_t": "~/s_out/bedr/set",
68 "bri_val_tpl": "{{ value.split(',')[2] }}"
69 }
70
71 */
72
73
74
75 //Commands
76
77 const char ON_P[] PROGMEM = "ON";
78 const char OFF_P[] PROGMEM = "OFF";
79 const char REST_P[] PROGMEM = "REST";
80 const char TOGGLE_P[] PROGMEM = "TOGGLE";
81 const char HALT_P[] PROGMEM = "HALT";
82 const char XON_P[] PROGMEM = "XON";
83 const char XOFF_P[] PROGMEM = "XOFF";
84 /*
85 const char INCREASE_P[] PROGMEM = "INCREASE";
86 const char DECREASE_P[] PROGMEM = "DECREASE";
87 const char TRUE_P[] PROGMEM = "TRUE";
88 const char FALSE_P[] PROGMEM = "FALSE";
89
90 const char ENABLED_P[] PROGMEM = "ENABLED";
91 const char DISABLED_P[] PROGMEM = "DISABLED";
92 */
93 const char HEAT_P[] PROGMEM = "HEAT";
94 const char COOL_P[] PROGMEM = "COOL";
95 const static char AUTO_P[] PROGMEM = "AUTO";
96
97
98 const char FAN_ONLY_P[] PROGMEM = "FAN_ONLY";
99 const char DRY_P[] PROGMEM = "DRY";
100 const char HIGH_P[] PROGMEM = "HIGH";
101 const char MED_P[] PROGMEM = "MEDIUM";
102 const char LOW_P[] PROGMEM = "LOW";
103 const char ERROR_P[] PROGMEM = "ERR";
104
105
106 // SubTopics
107 const char SET_P[] PROGMEM = "set";
108 const char ESET_P[] PROGMEM = "eset";
109 const char CMD_P[] PROGMEM = "cmd";
110 const char MODE_P[] PROGMEM = "mode";
111 const char FAN_P[] PROGMEM = "fan";
112 const char HUE_P[] PROGMEM = "hue";
113 const char SAT_P[] PROGMEM = "sat";
114 const char TEMP_P[] PROGMEM = "temp";
115 const char HSV_P[] PROGMEM = "HSV";
116 const char RGB_P[] PROGMEM = "RGB";
117 const char VAL_P[] PROGMEM = "val";
118 const char DEL_P[] PROGMEM = "del";
119 const char _RAW_P[] PROGMEM = "raw";
120
121 /*
122 const char RPM_P[] PROGMEM = "rpm";
123 const char STATE_P[] PROGMEM = "state";
124 */
125
PROGMEM
const char state_P[] PROGMEM
Definition: textconst.h:3