Fix ecobee weather platform (#27369)
* Fix ecobee weather platform * Remove custom forecast attributes * Tidy up process forecast method * Fix lint complaints * Add missed weather symbol
This commit is contained in:
1 parent
baa750a3c7
commit
829cffd5de
2 files changed
+83
-39
No files matched your search
@@ -24,3 +24,31 @@ ECOBEE_MODEL_TO_NAME = {
|
||||
ECOBEE_PLATFORMS = ["binary_sensor", "climate", "sensor", "weather"]
|
||||
|
||||
MANUFACTURER = "ecobee"
|
||||
|
||||
# Translates ecobee API weatherSymbol to HASS usable names
|
||||
# https://www.ecobee.com/home/developer/api/documentation/v1/objects/WeatherForecast.shtml
|
||||
ECOBEE_WEATHER_SYMBOL_TO_HASS = {
|
||||
0: "sunny",
|
||||
1: "partlycloudy",
|
||||
2: "partlycloudy",
|
||||
3: "cloudy",
|
||||
4: "cloudy",
|
||||
5: "cloudy",
|
||||
6: "rainy",
|
||||
7: "snowy-rainy",
|
||||
8: "pouring",
|
||||
9: "hail",
|
||||
10: "snowy",
|
||||
11: "snowy",
|
||||
12: "snowy-rainy",
|
||||
13: "snowy-heavy",
|
||||
14: "hail",
|
||||
15: "lightning-rainy",
|
||||
16: "windy",
|
||||
17: "tornado",
|
||||
18: "fog",
|
||||
19: "hazy",
|
||||
20: "hazy",
|
||||
21: "hazy",
|
||||
-2: None,
|
||||
}
|
||||
Reference in new issue
Block a user