bruxy70 / Home-Assistant-ESPHome-Weather-Station

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

sun_elevation feature #8

Closed pniewiadowski closed 4 years ago

pniewiadowski commented 4 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 4 years ago

Oh, thanks! Fixed!