[DISC] Additional HA device classes (#1805)
Additional HA device classes and alphabetical sorting
This commit is contained in:
1 parent
28b97183be
commit
3c1bd83227
1 file changed
+14
-10
+14
-10
@@ -182,25 +182,29 @@ void announceDeviceTrigger(bool use_gateway_info,
|
|||||||
// From https://github.com/home-assistant/core/blob/d7ac4bd65379e11461c7ce0893d3533d8d8b8cbf/homeassistant/const.py#L225
|
// From https://github.com/home-assistant/core/blob/d7ac4bd65379e11461c7ce0893d3533d8d8b8cbf/homeassistant/const.py#L225
|
||||||
// List of classes available in Home Assistant
|
// List of classes available in Home Assistant
|
||||||
const char* availableHASSClasses[] = {"battery",
|
const char* availableHASSClasses[] = {"battery",
|
||||||
"carbon_monoxide",
|
|
||||||
"carbon_dioxide",
|
"carbon_dioxide",
|
||||||
|
"carbon_monoxide",
|
||||||
|
"current",
|
||||||
|
"data_size",
|
||||||
|
"distance",
|
||||||
"door",
|
"door",
|
||||||
|
"duration",
|
||||||
|
"energy",
|
||||||
"enum",
|
"enum",
|
||||||
"pm10",
|
|
||||||
"pm25",
|
|
||||||
"humidity",
|
"humidity",
|
||||||
"illuminance",
|
"illuminance",
|
||||||
|
"pm10",
|
||||||
|
"pm25",
|
||||||
|
"power",
|
||||||
|
"power_factor",
|
||||||
|
"pressure",
|
||||||
|
"problem",
|
||||||
"signal_strength",
|
"signal_strength",
|
||||||
"duration",
|
|
||||||
"data_size",
|
|
||||||
"temperature",
|
"temperature",
|
||||||
"timestamp",
|
"timestamp",
|
||||||
"pressure",
|
|
||||||
"power",
|
|
||||||
"current",
|
|
||||||
"energy",
|
|
||||||
"power_factor",
|
|
||||||
"voltage",
|
"voltage",
|
||||||
|
"water",
|
||||||
|
"weight",
|
||||||
"window"};
|
"window"};
|
||||||
|
|
||||||
// From https://github.com/home-assistant/core/blob/d7ac4bd65379e11461c7ce0893d3533d8d8b8cbf/homeassistant/const.py#L379
|
// From https://github.com/home-assistant/core/blob/d7ac4bd65379e11461c7ce0893d3533d8d8b8cbf/homeassistant/const.py#L379
|
||||||
|
|||||||
Reference in new issue
Block a user