supla-device
Loading...
Searching...
No Matches
config_tags.h
1/*
2 Copyright (C) AC SOFTWARE SP. Z O.O
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17*/
18
19#ifndef SRC_SUPLA_STORAGE_CONFIG_TAGS_H_
20#define SRC_SUPLA_STORAGE_CONFIG_TAGS_H_
21
22namespace Supla {
23namespace ConfigTag {
24
25const char DeviceConfigChangeCfgTag[] = "devcfg_chng";
26
27const char ChannelFunctionTag[] = "fnc";
28const char ChannelConfigChangedFlagTag[] = "cfg_chng";
29
30const char ScreenBrightnessCfgTag[] = "bright";
31const char ScreenAdjustmentForAutomaticCfgTag[] = "adj_auto_br";
32const char HomeScreenContentTag[] = "home_screen";
33const char ScreenDelayTypeCfgTag[] = "scr_delay_t";
34const char ScreenDelayCfgTag[] = "scr_delay";
35const char DisableUserInterfaceCfgTag[] = "disable_ui";
36const char MinTempUICfgTag[] = "min_temp_ui";
37const char MaxTempUICfgTag[] = "max_temp_ui";
38const char MinBrightTag[] = "min_bright";
39
40const char PowerStatusLedCfgTag[] = "pwr_led";
41const char StatusLedCfgTag[] = "statusled";
42
43const char BtnTypeTag[] = "btn_type";
44const char BtnHoldTag[] = "btn_hold";
45const char BtnMulticlickTag[] = "btn_multiclick";
46const char BtnConfigTag[] = "btn_cfg";
47const char BtnActionTriggerCfgTagPrefix[] = "mqtt_at";
48
49const char VolumeCfgTag[] = "volume";
50
51const char EmCtTypeTag[] = "em_ct";
52const char EmPhaseLedTag[] = "em_led";
53const char EmPhaseLedVoltageLowTag[] = "em_led_vl";
54const char EmPhaseLedVoltageHighTag[] = "em_led_vh";
55const char EmPhaseLedPowerLowTag[] = "em_led_pl";
56const char EmPhaseLedPowerHighTag[] = "em_led_ph";
57
58const char RgbwButtonTag[] = "rgbw_btn";
59
60const char RollerShutterTag[] = "rs_cfg";
61const char RollerShutterMotorUpsideDownTag[] = "usd";
62const char RollerShutterButtonsUpsideDownTag[] = "bud";
63const char RollerShutterTimeMarginTag[] = "rs_margin";
64const char RollerShutterOpeningTimeTag[] = "rs_ot";
65const char RollerShutterClosingTimeTag[] = "rs_ct";
66
67const char RelayOvercurrentThreshold[] = "oc_thr";
68
69const char HvacCfgTag[] = "hvac_cfg";
70const char HvacWeeklyCfgTag[] = "hvac_weekly";
71const char HvacAltWeeklyCfgTag[] = "hvac_aweekly";
72
73const char BinarySensorServerInvertedLogicTag[] = "srv_invrt";
74const char BinarySensorCfgTag[] = "bs_cfg";
75
76const char ContainerTag[] = "container";
77
78const char ValveCfgTag[] = "valve_cfg";
79
80const char ModbusCfgTag[] = "modbus_cfg";
81
82const char OtaModeTag[] = "ota_mode";
83
84static_assert(sizeof(DeviceConfigChangeCfgTag) < 16);
85static_assert(sizeof(ChannelFunctionTag) < 16);
86static_assert(sizeof(ChannelConfigChangedFlagTag) < 16);
87static_assert(sizeof(ScreenBrightnessCfgTag) < 16);
88static_assert(sizeof(ScreenAdjustmentForAutomaticCfgTag) < 16);
89static_assert(sizeof(HomeScreenContentTag) < 16);
90static_assert(sizeof(ScreenDelayTypeCfgTag) < 16);
91static_assert(sizeof(ScreenDelayCfgTag) < 16);
92static_assert(sizeof(DisableUserInterfaceCfgTag) < 16);
93static_assert(sizeof(MinTempUICfgTag) < 16);
94static_assert(sizeof(MaxTempUICfgTag) < 16);
95static_assert(sizeof(MinBrightTag) < 16);
96static_assert(sizeof(PowerStatusLedCfgTag) < 16);
97static_assert(sizeof(StatusLedCfgTag) < 16);
98static_assert(sizeof(BtnTypeTag) < 16);
99static_assert(sizeof(BtnHoldTag) < 16);
100static_assert(sizeof(BtnMulticlickTag) < 16);
101static_assert(sizeof(BtnConfigTag) < 16);
102static_assert(sizeof(BtnActionTriggerCfgTagPrefix) < 16);
103static_assert(sizeof(VolumeCfgTag) < 16);
104static_assert(sizeof(EmCtTypeTag) < 16);
105static_assert(sizeof(EmPhaseLedTag) < 16);
106static_assert(sizeof(EmPhaseLedVoltageLowTag) < 16);
107static_assert(sizeof(EmPhaseLedVoltageHighTag) < 16);
108static_assert(sizeof(EmPhaseLedPowerLowTag) < 16);
109static_assert(sizeof(EmPhaseLedPowerHighTag) < 16);
110static_assert(sizeof(RgbwButtonTag) < 16);
111static_assert(sizeof(RollerShutterTag) < 16);
112static_assert(sizeof(RollerShutterMotorUpsideDownTag) < 16);
113static_assert(sizeof(RollerShutterButtonsUpsideDownTag) < 16);
114static_assert(sizeof(RollerShutterTimeMarginTag) < 16);
115static_assert(sizeof(RollerShutterOpeningTimeTag) < 16);
116static_assert(sizeof(RollerShutterClosingTimeTag) < 16);
117static_assert(sizeof(RelayOvercurrentThreshold) < 16);
118static_assert(sizeof(HvacCfgTag) < 16);
119static_assert(sizeof(HvacWeeklyCfgTag) < 16);
120static_assert(sizeof(HvacAltWeeklyCfgTag) < 16);
121static_assert(sizeof(BinarySensorServerInvertedLogicTag) < 16);
122static_assert(sizeof(BinarySensorCfgTag) < 16);
123static_assert(sizeof(ContainerTag) < 16);
124static_assert(sizeof(ValveCfgTag) < 16);
125static_assert(sizeof(ModbusCfgTag) < 16);
126static_assert(sizeof(OtaModeTag) < 16);
127
128} // namespace ConfigTag
129} // namespace Supla
130
131#endif // SRC_SUPLA_STORAGE_CONFIG_TAGS_H_