Skip to content

Commit

Permalink
[DISC] uv/uvi discovery fix and device classes added
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiH committed Apr 4, 2024
1 parent 3a91934 commit 0ef7710
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main/config_RF.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ const char parameters[40][4][24] = {
{"noise", "noise", "dB", ""},
{"depth_cm", "depth", "cm", ""},
{"power_W", "power", "W", "power"},
{"light_lux", "light", "lx", ""},
{"lux", "lux", "lx", ""},
{"uv", "uv", "UV index", ""},
{"uvi", "uvi", "UV index", ""},
{"light_lux", "light", "lx", "illuminance"},
{"lux", "lux", "lx", "illuminance"},
{"uvi", "UVI", "UV index", ""},
{"uv", "UV", "UV level", ""},
{"storm_dist", "storm distance", "mi", ""},
{"strike_distance", "strike distance", "mi", ""},
{"tamper", "tamper", "", ""},
Expand Down
3 changes: 3 additions & 0 deletions main/config_mqttDiscovery.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ const char* availableHASSClasses[] = {"battery",
"pm25",
"power",
"power_factor",
"precipitation",
"precipitation_intensity",
"pressure",
"problem",
"restart",
Expand All @@ -211,6 +213,7 @@ const char* availableHASSClasses[] = {"battery",
"voltage",
"water",
"weight",
"wind_speed",
"window"};

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

0 comments on commit 0ef7710

Please sign in to comment.