Skip to content

Commit ddcccde

Browse files
committed
[DISC] Additional HA device classes
Additional HA device classes and alphabetical sorting
1 parent 28b9718 commit ddcccde

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

main/config_mqttDiscovery.h

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -182,25 +182,29 @@ void announceDeviceTrigger(bool use_gateway_info,
182182
// From https://github.com/home-assistant/core/blob/d7ac4bd65379e11461c7ce0893d3533d8d8b8cbf/homeassistant/const.py#L225
183183
// List of classes available in Home Assistant
184184
const char* availableHASSClasses[] = {"battery",
185-
"carbon_monoxide",
186185
"carbon_dioxide",
186+
"carbon_monoxide",
187+
"current",
188+
"data_size",
189+
"distance",
187190
"door",
191+
"duration",
192+
"energy",
188193
"enum",
189-
"pm10",
190-
"pm25",
191194
"humidity",
192195
"illuminance",
196+
"pm10",
197+
"pm25",
198+
"power",
199+
"power_factor",
200+
"pressure",
201+
"problem",
193202
"signal_strength",
194-
"duration",
195-
"data_size",
196203
"temperature",
197204
"timestamp",
198-
"pressure",
199-
"power",
200-
"current",
201-
"energy",
202-
"power_factor",
203205
"voltage",
206+
"water",
207+
"weight",
204208
"window"};
205209

206210
// From https://github.com/home-assistant/core/blob/d7ac4bd65379e11461c7ce0893d3533d8d8b8cbf/homeassistant/const.py#L379

0 commit comments

Comments
 (0)