bruxy70 / Home-Assistant-ESPHome-Weather-Station

Nextion display with ESP8266 microcontroller (Wemos D1 mini) showing Home Assistant temperature sensors and weather forecast
MIT License
171 stars 30 forks source link

sun_elevation feature #8

Closed pniewiadowski closed 3 years ago

pniewiadowski commented 3 years ago

Trying to fit your code with my needs I found this:

if (id(sun_elevation)>0) {

It seems it doesn't work for me unless I add here:

if (id(sun_elevation).state>0) {

PS. Finally I replaced this with the Xiaomi illuminance value, which I find more suited for this functionality.

bruxy70 commented 3 years ago

Oh, thanks! Fixed!