decompil3d / lovelace-hourly-weather

Hourly weather card for Home Assistant. Visualize upcoming weather conditions as a colored horizontal bar.
MIT License
290 stars 30 forks source link

Support night icons and colour when weather entity does not #619

Closed alexeiw123 closed 7 months ago

alexeiw123 commented 7 months ago

Is your feature request related to a problem? Please describe. My weather entity does not provide night values in it's forecast, so there is no night formatting in the output.

See my screen grab compared to the one on this repository. image image

Describe the solution you'd like use the state of sun.sun to show forecasts as their night time equivalent

decompil3d commented 7 months ago

I wish it were that easy. But sun.sun doesn't provide forecast data. Just current value. And even with current day sunrise/set data, we can't determine sun state for subsequent days. HA would need to expose a service call to retrieve sunrise/set times for a given day.