Skip to content

Commit

Permalink
[DISC] HA discovery device classes and units additions (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiH committed Nov 16, 2023
1 parent 48ebddc commit 2b08151
Showing 1 changed file with 41 additions and 6 deletions.
47 changes: 41 additions & 6 deletions TheengsGateway/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,39 +30,74 @@

ha_dev_classes = [
"battery",
"carbon_monoxide",
"carbon_dioxide",
"carbon_monoxide",
"current",
"data_size",
"distance",
"door",
"duration",
"energy",
"enum",
"gas",
"humidity",
"illuminance",
"irradiance",
"motion",
"moving",
"pm10",
"pm25",
"power",
"power_factor",
"pressure",
"problem",
"restart",
"signal_strength",
"temperature",
"timestamp",
"pressure",
"power",
"current",
"energy",
"power_factor",
"voltage",
"water",
"weight",
"window",
]

ha_dev_units = [
"W",
"kW",
"V",
"kWh",
"A",
"W",
"°C",
"°F",
"ms",
"s",
"min",
"hPa",
"L",
"kg",
"lb",
"µS/cm",
"ppm",
"μg/m³",
"m³",
"mg/m³",
"m/s²",
"lx",
"Ω",
"%",
"bar",
"bpm",
"dB",
"dBm",
"B",
"UV index",
"m/s",
"km/h",
"°",
"mm",
"mm/h",
"cm",
]


Expand Down

0 comments on commit 2b08151

Please sign in to comment.