Commit graph

5 commits

Author SHA1 Message Date
Stephen Ludgate
b270fed855
Update sensor.yaml
error with using && - changed to and.
2022-07-09 09:10:40 +01:00
Stephen Ludgate
42b8176ed1
Update sensor.yaml
typo - missing brackets
2022-07-08 21:07:11 +01:00
Stephen Ludgate
dada2d74d5
Update sensor.yaml
Updated the checks to check between sunrise and sunset for the forecast time - looks better!
2022-07-08 20:46:15 +01:00
Stephen Ludgate
5c83360b83
Night Time Clear (sunny) and Partly Cloudy Updates
With met.no weather feed to Home Assistant - there's no difference in night time weather and daytime - specifically a clear night and partly clear night. 

A Clear sky is classed as a "sunny" state, even at night. I have added some checks in the HA yaml template to check if the Sun sensor (You need Sun in your Home Assistant install) is state = "below_horizon" and update "sunny" and "partlycloudy" to be "night" and "night-partly-cloudy". This then requests icons in the ESPHome yaml to include the Moon - which makes it look right when you are looking at the display at night, or when the upcoming forecast hours are night time - a clear night sky = the Moon, not the Sun.

Or at least it makes more sense in my eyes to see the Moon icons at night that seeing a clear Sunny day predicted for 2AM(!!) :)
2022-07-08 11:50:36 +01:00
Madelena Mak
a4e5bb224f Add weatherman and sensor code 2022-06-28 00:27:32 -04:00