Base weather widget for appdaemon homeassistant dashboards.
Based on the appdaemon weather official widget, this extends it by allowing to get weather from a weather entity in addition to sensors. This avoids having to declare sensors, often specifics to each provider, and use directly the homeassistant weather entity. This makes the feature more generic (currently tested with openweathermap).
In addition, this version also adds the feature to display up to 4 days/hours of forecast. This is fully compliant with the official base widget, so any working configuration will also work with this widget.
Note: For 2x2 widget, only 1 forecast should be used with a 120x120 widget. Up to four can be used in 3x2.
The configuration is almost identical to the official daemon, with the following differences:
entity
: Can be specified in place ofentities
to use a weather entities instead of a sensor listshow_forecast
can be set to the number of forecasts to display (up to 4, 0 = no forecast)forecast_daily
can e set to enable hourly or daily forecast. Defaults to daily. Must be configured accordingly in homeassistant to have appsaemon receive the correct forecast data.forecast_precip_unit
to specify the precipitation unit for accumulated precip,: "mm" for metric system or "in" for imperial. This only changes the displayed text, the value is configured in homehassistant. If set to "%" the precipitation probability will be displayed instead.forecast_date_format
to specify the date format for forecast weather. Defaults to "MM/DD". Non padded dates can be used with single letters, e.g. "D/MM" to get non padded days.
openweathermap:
title: Now
widget_type: weatherentity
entity: weather.openweathermap
show_forecast: 4
forecast_daily: 1
forecast_date_format: "DD/MM"
prefer_icons: 1
# Units as configured in homeassistant
units: "°C"
wind_unit: "km/h"
pressure_unit: "hPa"
rain_unit: "%"
forecast_precip_unit: "mm"
layout:
- label(2x2),openweathermap(3x2)