Skip to content

Commit

Permalink
[DISC] Additional HA device classes (#1805)
Browse files Browse the repository at this point in the history
Additional HA device classes and alphabetical sorting
  • Loading branch information
DigiH authored Nov 15, 2023
1 parent 28b9718 commit 3c1bd83
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions main/config_mqttDiscovery.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,25 +182,29 @@ void announceDeviceTrigger(bool use_gateway_info,
// From https://github.com/home-assistant/core/blob/d7ac4bd65379e11461c7ce0893d3533d8d8b8cbf/homeassistant/const.py#L225
// List of classes available in Home Assistant
const char* availableHASSClasses[] = {"battery",
"carbon_monoxide",
"carbon_dioxide",
"carbon_monoxide",
"current",
"data_size",
"distance",
"door",
"duration",
"energy",
"enum",
"pm10",
"pm25",
"humidity",
"illuminance",
"pm10",
"pm25",
"power",
"power_factor",
"pressure",
"problem",
"signal_strength",
"duration",
"data_size",
"temperature",
"timestamp",
"pressure",
"power",
"current",
"energy",
"power_factor",
"voltage",
"water",
"weight",
"window"};

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

0 comments on commit 3c1bd83

Please sign in to comment.