Daily Energy doesn't reset
srslykev opened this issue ยท 9 comments
Hi there,
so far, everything is working great except the daily energy meter. It won't reset at midnight. I'm using the regular code with no changes apart from the led on pulse part:
on_value:
then:
- light.turn_on:
id: led_red
- delay: 0.5s
- light.turn_off:
id: led_red
Any idea what could be wrong?
I had the same problem. If you are using sntp for the time platform then you need DNS entries in your wifi: section. I changed to using:
time:
- platform: homeassistant
id: my_time
as this doesn't need DNS or Internet access from the ESP.
Great, thanks! Will try that ๐
And has it helped? ๐
Sorry, Yes, works great, now! ๐
In that case I will close the issue, maybe adding this also to the FAQ ๐ค
Would it not be better to change the time: platform: to homeassistant in the yaml ?
The problem I run into is that when I use that platform my daily entity will not reset, which is why it has not yet been modified in the yaml file.
Strange, the reset works fine now. So let's just modify it and name the sntp as an alternative.
Strange, the reset works fine now. So let's just modify it and name the sntp as an alternative.
Probably worth adding that if using sntp as an alternative then if you are using Manual IPs make sure to configure a DNS Server (dns1, dns2) or use only IP addresses for the NTP servers.