Static Public Attributes | |
| None | |
Static Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| bool | |
| EntityPlatform | |
| HomeAssistant | |
| None | |
| StateInfo | |
| StateType | |
| str | |
Private Member Functions | |
| None | _async_subscription_ended (self, Literal["daily", "hourly", "twice_daily"] forecast_type) |
| None | _async_subscription_started (self, Literal["daily", "hourly", "twice_daily"] forecast_type) |
| list[JsonValueType] | _convert_forecast (self, list[Forecast] native_forecast_list) |
| str | _default_precipitation_unit (self) |
| str | _default_pressure_unit (self) |
| str | _default_temperature_unit (self) |
| str | _default_visibility_unit (self) |
| str | _default_wind_speed_unit (self) |
| str | _precipitation_unit (self) |
| str | _pressure_unit (self) |
| str | _temperature_unit (self) |
| str | _visibility_unit (self) |
| str | _wind_speed_unit (self) |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| device_entry | |
| entity_id | |
| hass | |
| parallel_updates | |
| platform | |
| registry_entry | |
ABC for weather data.
Definition at line 274 of file __init__.py.
| None homeassistant.components.weather.WeatherEntity.__post_init__ | ( | self, | |
| *Any | args, | ||
| **Any | kwargs | ||
| ) |
Finish initializing.
Reimplemented from homeassistant.components.weather.PostInit.
Definition at line 311 of file __init__.py.
|
private |
End subscription to forecast_type.
Reimplemented in homeassistant.components.weather.CoordinatorWeatherEntity.
Definition at line 928 of file __init__.py.
|
private |
Start subscription to forecast_type.
Reimplemented in homeassistant.components.weather.CoordinatorWeatherEntity.
Definition at line 921 of file __init__.py.
|
private |
Convert a forecast in native units to the unit configured by the user.
Definition at line 683 of file __init__.py.
|
private |
Return the default unit of measurement for precipitation. Should not be set by integrations.
Definition at line 517 of file __init__.py.
|
private |
Return the default unit of measurement for pressure. Should not be set by integrations.
Definition at line 377 of file __init__.py.
|
private |
Return the default unit of measurement for temperature. Should not be set by integrations.
Definition at line 344 of file __init__.py.
|
private |
Return the default unit of measurement for visibility. Should not be set by integrations.
Definition at line 477 of file __init__.py.
|
private |
Return the default unit of measurement for wind speed. Should not be set by integrations.
Definition at line 422 of file __init__.py.
|
private |
Return the converted unit of measurement for precipitation. Should not be set by integrations.
Definition at line 526 of file __init__.py.
|
private |
Return the converted unit of measurement for pressure. Should not be set by integrations.
Definition at line 388 of file __init__.py.
|
private |
Return the converted unit of measurement for temperature. Should not be set by integrations.
Definition at line 353 of file __init__.py.
|
private |
Return the converted unit of measurement for visibility. Should not be set by integrations.
Definition at line 486 of file __init__.py.
|
private |
Return the converted unit of measurement for wind speed. Should not be set by integrations.
Definition at line 433 of file __init__.py.
Return the daily forecast in native units.
Reimplemented in homeassistant.components.weather.CoordinatorWeatherEntity, homeassistant.components.template.weather.TriggerWeatherEntity, homeassistant.components.template.weather.WeatherTemplate, homeassistant.components.smhi.weather.SmhiWeather, homeassistant.components.meteo_france.weather.MeteoFranceWeather, homeassistant.components.kitchen_sink.weather.DemoWeather, homeassistant.components.ipma.weather.IPMAWeather, homeassistant.components.hko.weather.HKOEntity, homeassistant.components.ecobee.weather.EcobeeWeather, homeassistant.components.demo.weather.DemoWeather, and homeassistant.components.buienradar.weather.BrWeather.
Definition at line 498 of file __init__.py.
Return the hourly forecast in native units.
Reimplemented in homeassistant.components.weather.CoordinatorWeatherEntity, homeassistant.components.template.weather.TriggerWeatherEntity, homeassistant.components.template.weather.WeatherTemplate, homeassistant.components.smhi.weather.SmhiWeather, homeassistant.components.meteo_france.weather.MeteoFranceWeather, homeassistant.components.kitchen_sink.weather.DemoWeather, homeassistant.components.ipma.weather.IPMAWeather, and homeassistant.components.demo.weather.DemoWeather.
Definition at line 506 of file __init__.py.
| list[Forecast] | None homeassistant.components.weather.WeatherEntity.async_forecast_twice_daily | ( | self | ) |
Return the daily forecast in native units.
Reimplemented in homeassistant.components.weather.CoordinatorWeatherEntity, homeassistant.components.template.weather.TriggerWeatherEntity, homeassistant.components.template.weather.WeatherTemplate, homeassistant.components.kitchen_sink.weather.DemoWeather, and homeassistant.components.demo.weather.DemoWeather.
Definition at line 502 of file __init__.py.
| None homeassistant.components.weather.WeatherEntity.async_internal_added_to_hass | ( | self | ) |
Call when the weather entity is added to hass.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 315 of file __init__.py.
| None homeassistant.components.weather.WeatherEntity.async_registry_entry_updated | ( | self | ) |
Run when the entity registry entry has been updated.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 880 of file __init__.py.
| CALLBACK_TYPE homeassistant.components.weather.WeatherEntity.async_subscribe_forecast | ( | self, | |
| Literal["daily", "hourly", "twice_daily"] | forecast_type, | ||
| Callable[[list[JsonValueType] | None], None] | forecast_listener | ||
| ) |
Subscribe to forecast updates. Called by websocket API.
Definition at line 936 of file __init__.py.
| None homeassistant.components.weather.WeatherEntity.async_update_listeners | ( | self, | |
| Iterable[Literal["daily", "hourly", "twice_daily"]] | None | forecast_types | ||
| ) |
Push updated forecast to all listeners.
Definition at line 959 of file __init__.py.
| float | None homeassistant.components.weather.WeatherEntity.cloud_coverage | ( | self | ) |
Return the Cloud coverage in %.
Reimplemented in homeassistant.components.weatherkit.weather.WeatherKitWeather, homeassistant.components.template.weather.TriggerWeatherEntity, homeassistant.components.template.weather.WeatherTemplate, homeassistant.components.openweathermap.weather.OpenWeatherMapWeather, homeassistant.components.met.weather.MetWeather, and homeassistant.components.accuweather.weather.AccuWeatherEntity.
Definition at line 456 of file __init__.py.
Return the current condition.
Reimplemented in homeassistant.components.weatherkit.weather.WeatherKitWeather, homeassistant.components.weatherflow_cloud.weather.WeatherFlowWeather, homeassistant.components.tomorrowio.weather.TomorrowioWeatherEntity, homeassistant.components.template.weather.TriggerWeatherEntity, homeassistant.components.template.weather.WeatherTemplate, homeassistant.components.openweathermap.weather.OpenWeatherMapWeather, homeassistant.components.open_meteo.weather.OpenMeteoWeatherEntity, homeassistant.components.nws.weather.NWSWeather, homeassistant.components.metoffice.weather.MetOfficeWeather, homeassistant.components.meteoclimatic.weather.MeteoclimaticWeather, homeassistant.components.meteo_france.weather.MeteoFranceWeather, homeassistant.components.met_eireann.weather.MetEireannWeather, homeassistant.components.met.weather.MetWeather, homeassistant.components.knx.weather.KNXWeather, homeassistant.components.kitchen_sink.weather.DemoWeather, homeassistant.components.ipma.weather.IPMAWeather, homeassistant.components.homematicip_cloud.weather.HomematicipHomeWeather, homeassistant.components.homematicip_cloud.weather.HomematicipWeatherSensor, homeassistant.components.hko.weather.HKOEntity, homeassistant.components.environment_canada.weather.ECWeather, homeassistant.components.ecobee.weather.EcobeeWeather, homeassistant.components.demo.weather.DemoWeather, homeassistant.components.aemet.weather.AemetWeather, and homeassistant.components.accuweather.weather.AccuWeatherEntity.
Definition at line 875 of file __init__.py.
| float | None homeassistant.components.weather.WeatherEntity.humidity | ( | self | ) |
Return the humidity in native units.
Reimplemented in homeassistant.components.zamg.weather.ZamgWeather, homeassistant.components.weatherkit.weather.WeatherKitWeather, homeassistant.components.weatherflow_cloud.weather.WeatherFlowWeather, homeassistant.components.tomorrowio.weather.TomorrowioWeatherEntity, homeassistant.components.template.weather.TriggerWeatherEntity, homeassistant.components.template.weather.WeatherTemplate, homeassistant.components.openweathermap.weather.OpenWeatherMapWeather, homeassistant.components.nws.weather.NWSWeather, homeassistant.components.metoffice.weather.MetOfficeWeather, homeassistant.components.meteoclimatic.weather.MeteoclimaticWeather, homeassistant.components.meteo_france.weather.MeteoFranceWeather, homeassistant.components.met_eireann.weather.MetEireannWeather, homeassistant.components.met.weather.MetWeather, homeassistant.components.knx.weather.KNXWeather, homeassistant.components.kitchen_sink.weather.DemoWeather, homeassistant.components.ipma.weather.IPMAWeather, homeassistant.components.homematicip_cloud.weather.HomematicipHomeWeather, homeassistant.components.homematicip_cloud.weather.HomematicipWeatherSensor, homeassistant.components.hko.weather.HKOEntity, homeassistant.components.environment_canada.weather.ECWeather, homeassistant.components.ecobee.weather.EcobeeWeather, homeassistant.components.demo.weather.DemoWeather, homeassistant.components.aemet.weather.AemetWeather, and homeassistant.components.accuweather.weather.AccuWeatherEntity.
Definition at line 401 of file __init__.py.
| float | None homeassistant.components.weather.WeatherEntity.native_apparent_temperature | ( | self | ) |
Return the apparent temperature in native units.
Reimplemented in homeassistant.components.weatherkit.weather.WeatherKitWeather, homeassistant.components.template.weather.TriggerWeatherEntity, homeassistant.components.template.weather.WeatherTemplate, homeassistant.components.openweathermap.weather.OpenWeatherMapWeather, and homeassistant.components.accuweather.weather.AccuWeatherEntity.
Definition at line 323 of file __init__.py.
| float | None homeassistant.components.weather.WeatherEntity.native_dew_point | ( | self | ) |
Return the dew point temperature in native units.
Reimplemented in homeassistant.components.weatherkit.weather.WeatherKitWeather, homeassistant.components.weatherflow_cloud.weather.WeatherFlowWeather, homeassistant.components.template.weather.TriggerWeatherEntity, homeassistant.components.template.weather.WeatherTemplate, homeassistant.components.openweathermap.weather.OpenWeatherMapWeather, homeassistant.components.met.weather.MetWeather, and homeassistant.components.accuweather.weather.AccuWeatherEntity.
Definition at line 338 of file __init__.py.
Return the native unit of measurement for accumulated precipitation.
Definition at line 511 of file __init__.py.
| float | None homeassistant.components.weather.WeatherEntity.native_pressure | ( | self | ) |
Return the pressure in native units.
Reimplemented in homeassistant.components.zamg.weather.ZamgWeather, homeassistant.components.weatherkit.weather.WeatherKitWeather, homeassistant.components.weatherflow_cloud.weather.WeatherFlowWeather, homeassistant.components.tomorrowio.weather.TomorrowioWeatherEntity, homeassistant.components.template.weather.TriggerWeatherEntity, homeassistant.components.template.weather.WeatherTemplate, homeassistant.components.openweathermap.weather.OpenWeatherMapWeather, homeassistant.components.nws.weather.NWSWeather, homeassistant.components.metoffice.weather.MetOfficeWeather, homeassistant.components.meteoclimatic.weather.MeteoclimaticWeather, homeassistant.components.meteo_france.weather.MeteoFranceWeather, homeassistant.components.met_eireann.weather.MetEireannWeather, homeassistant.components.met.weather.MetWeather, homeassistant.components.knx.weather.KNXWeather, homeassistant.components.kitchen_sink.weather.DemoWeather, homeassistant.components.ipma.weather.IPMAWeather, homeassistant.components.environment_canada.weather.ECWeather, homeassistant.components.ecobee.weather.EcobeeWeather, homeassistant.components.demo.weather.DemoWeather, homeassistant.components.aemet.weather.AemetWeather, and homeassistant.components.accuweather.weather.AccuWeatherEntity.
Definition at line 366 of file __init__.py.
Return the native unit of measurement for pressure.
Reimplemented in homeassistant.components.kitchen_sink.weather.DemoWeather, and homeassistant.components.demo.weather.DemoWeather.
Definition at line 371 of file __init__.py.
| float | None homeassistant.components.weather.WeatherEntity.native_temperature | ( | self | ) |
Return the temperature in native units.
Reimplemented in homeassistant.components.zamg.weather.ZamgWeather, homeassistant.components.weatherkit.weather.WeatherKitWeather, homeassistant.components.weatherflow_cloud.weather.WeatherFlowWeather, homeassistant.components.tomorrowio.weather.TomorrowioWeatherEntity, homeassistant.components.template.weather.TriggerWeatherEntity, homeassistant.components.template.weather.WeatherTemplate, homeassistant.components.openweathermap.weather.OpenWeatherMapWeather, homeassistant.components.open_meteo.weather.OpenMeteoWeatherEntity, homeassistant.components.nws.weather.NWSWeather, homeassistant.components.metoffice.weather.MetOfficeWeather, homeassistant.components.meteoclimatic.weather.MeteoclimaticWeather, homeassistant.components.meteo_france.weather.MeteoFranceWeather, homeassistant.components.met_eireann.weather.MetEireannWeather, homeassistant.components.met.weather.MetWeather, homeassistant.components.knx.weather.KNXWeather, homeassistant.components.kitchen_sink.weather.DemoWeather, homeassistant.components.ipma.weather.IPMAWeather, homeassistant.components.homematicip_cloud.weather.HomematicipHomeWeather, homeassistant.components.homematicip_cloud.weather.HomematicipWeatherSensor, homeassistant.components.hko.weather.HKOEntity, homeassistant.components.environment_canada.weather.ECWeather, homeassistant.components.ecobee.weather.EcobeeWeather, homeassistant.components.demo.weather.DemoWeather, homeassistant.components.aemet.weather.AemetWeather, and homeassistant.components.accuweather.weather.AccuWeatherEntity.
Definition at line 328 of file __init__.py.
Return the native unit of measurement for temperature.
Reimplemented in homeassistant.components.kitchen_sink.weather.DemoWeather, and homeassistant.components.demo.weather.DemoWeather.
Definition at line 333 of file __init__.py.
| float | None homeassistant.components.weather.WeatherEntity.native_visibility | ( | self | ) |
Return the visibility in native units.
Reimplemented in homeassistant.components.weatherkit.weather.WeatherKitWeather, homeassistant.components.tomorrowio.weather.TomorrowioWeatherEntity, homeassistant.components.template.weather.TriggerWeatherEntity, homeassistant.components.template.weather.WeatherTemplate, homeassistant.components.nws.weather.NWSWeather, homeassistant.components.environment_canada.weather.ECWeather, homeassistant.components.ecobee.weather.EcobeeWeather, and homeassistant.components.accuweather.weather.AccuWeatherEntity.
Definition at line 466 of file __init__.py.
Return the native unit of measurement for visibility.
Definition at line 471 of file __init__.py.
| float | None homeassistant.components.weather.WeatherEntity.native_wind_gust_speed | ( | self | ) |
Return the wind gust speed in native units.
Reimplemented in homeassistant.components.weatherkit.weather.WeatherKitWeather, homeassistant.components.weatherflow_cloud.weather.WeatherFlowWeather, homeassistant.components.template.weather.TriggerWeatherEntity, homeassistant.components.template.weather.WeatherTemplate, homeassistant.components.openweathermap.weather.OpenWeatherMapWeather, homeassistant.components.met.weather.MetWeather, homeassistant.components.aemet.weather.AemetWeather, and homeassistant.components.accuweather.weather.AccuWeatherEntity.
Definition at line 406 of file __init__.py.
| float | None homeassistant.components.weather.WeatherEntity.native_wind_speed | ( | self | ) |
Return the wind speed in native units.
Reimplemented in homeassistant.components.zamg.weather.ZamgWeather, homeassistant.components.weatherkit.weather.WeatherKitWeather, homeassistant.components.weatherflow_cloud.weather.WeatherFlowWeather, homeassistant.components.tomorrowio.weather.TomorrowioWeatherEntity, homeassistant.components.template.weather.TriggerWeatherEntity, homeassistant.components.template.weather.WeatherTemplate, homeassistant.components.openweathermap.weather.OpenWeatherMapWeather, homeassistant.components.open_meteo.weather.OpenMeteoWeatherEntity, homeassistant.components.nws.weather.NWSWeather, homeassistant.components.metoffice.weather.MetOfficeWeather, homeassistant.components.meteoclimatic.weather.MeteoclimaticWeather, homeassistant.components.meteo_france.weather.MeteoFranceWeather, homeassistant.components.met_eireann.weather.MetEireannWeather, homeassistant.components.met.weather.MetWeather, homeassistant.components.knx.weather.KNXWeather, homeassistant.components.kitchen_sink.weather.DemoWeather, homeassistant.components.ipma.weather.IPMAWeather, homeassistant.components.homematicip_cloud.weather.HomematicipHomeWeather, homeassistant.components.homematicip_cloud.weather.HomematicipWeatherSensor, homeassistant.components.environment_canada.weather.ECWeather, homeassistant.components.ecobee.weather.EcobeeWeather, homeassistant.components.demo.weather.DemoWeather, homeassistant.components.aemet.weather.AemetWeather, and homeassistant.components.accuweather.weather.AccuWeatherEntity.
Definition at line 411 of file __init__.py.
Return the native unit of measurement for wind speed.
Reimplemented in homeassistant.components.kitchen_sink.weather.DemoWeather, and homeassistant.components.demo.weather.DemoWeather.
Definition at line 416 of file __init__.py.
| float | None homeassistant.components.weather.WeatherEntity.ozone | ( | self | ) |
Return the ozone level.
Reimplemented in homeassistant.components.tomorrowio.weather.TomorrowioWeatherEntity, homeassistant.components.template.weather.TriggerWeatherEntity, and homeassistant.components.template.weather.WeatherTemplate.
Definition at line 451 of file __init__.py.
| float homeassistant.components.weather.WeatherEntity.precision | ( | self | ) |
Return the precision of the temperature value, after unit conversion.
Definition at line 539 of file __init__.py.
Return the current state.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 870 of file __init__.py.
| dict[str, Any] homeassistant.components.weather.WeatherEntity.state_attributes | ( | self | ) |
Return the state attributes, converted. Attributes are configured from native units to user-configured units.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 551 of file __init__.py.
| float | None homeassistant.components.weather.WeatherEntity.uv_index | ( | self | ) |
Return the UV index.
Reimplemented in homeassistant.components.weatherkit.weather.WeatherKitWeather, homeassistant.components.weatherflow_cloud.weather.WeatherFlowWeather, homeassistant.components.met.weather.MetWeather, and homeassistant.components.accuweather.weather.AccuWeatherEntity.
Definition at line 461 of file __init__.py.
Return the wind bearing.
Reimplemented in homeassistant.components.zamg.weather.ZamgWeather, homeassistant.components.weatherkit.weather.WeatherKitWeather, homeassistant.components.weatherflow_cloud.weather.WeatherFlowWeather, homeassistant.components.tomorrowio.weather.TomorrowioWeatherEntity, homeassistant.components.template.weather.TriggerWeatherEntity, homeassistant.components.template.weather.WeatherTemplate, homeassistant.components.openweathermap.weather.OpenWeatherMapWeather, homeassistant.components.open_meteo.weather.OpenMeteoWeatherEntity, homeassistant.components.nws.weather.NWSWeather, homeassistant.components.metoffice.weather.MetOfficeWeather, homeassistant.components.meteoclimatic.weather.MeteoclimaticWeather, homeassistant.components.meteo_france.weather.MeteoFranceWeather, homeassistant.components.met_eireann.weather.MetEireannWeather, homeassistant.components.met.weather.MetWeather, homeassistant.components.knx.weather.KNXWeather, homeassistant.components.ipma.weather.IPMAWeather, homeassistant.components.homematicip_cloud.weather.HomematicipHomeWeather, homeassistant.components.homematicip_cloud.weather.HomematicipWeatherSensorPro, homeassistant.components.environment_canada.weather.ECWeather, homeassistant.components.ecobee.weather.EcobeeWeather, homeassistant.components.aemet.weather.AemetWeather, and homeassistant.components.accuweather.weather.AccuWeatherEntity.
Definition at line 446 of file __init__.py.
|
private |
Definition at line 313 of file __init__.py.
|
private |
Definition at line 545 of file __init__.py.
|
private |
Definition at line 885 of file __init__.py.
|
private |
Definition at line 884 of file __init__.py.
|
private |
Definition at line 883 of file __init__.py.
|
private |
Definition at line 887 of file __init__.py.
|
private |
Definition at line 886 of file __init__.py.
|
static |
ABC for weather data.
Definition at line 278 of file __init__.py.