vche / appdaemon_weatherentity

Appdaemon widget for displaying homeassistant weather entities in dashboards
GNU General Public License v3.0
11 stars 5 forks source link

entities #3

Closed Sborkahome closed 3 years ago

Sborkahome commented 3 years ago

Good day! Tell me, please, how to set the parameters for "entities:" correctly? That's not how it works:

entities: temperature: sensor.openweathermap_temperature humidity: sensor.openweathermap_humidity

vche commented 3 years ago

Hi,

I assume you're talking about the appdaemon dashboard configuration. First this is a yaml file, so you need indentation, your example wouldn't work like that. Then refer to the main widget documentation for examples to use sensors, I believe the entities was changed to sensor.

Here's my own configuration that doesn't use sensors but the normal widget:

weather:
  title: Now
  widget_type: weatherentity
  entity: weather.openweathermap
  show_forecast: 4
  forecast_daily: 1
  prefer_icons: 1
  # Units as configured in homeassistant
  units: "°C"
  wind_unit: "km/h"
  pressure_unit: "hPa"
  rain_unit: "%"