davidusb-geek / emhass

emhass: Energy Management for Home Assistant, is a Python module designed to optimize your home energy interfacing with Home Assistant.
MIT License
265 stars 51 forks source link

Solcast shows values at night #323

Open a8291 opened 2 weeks ago

a8291 commented 2 weeks ago

Hey, When doing a dayahead optimization at noon with configured Solcast EMHASS is showing me PV production for the coming night. Doesn't emhass take into account what time it is or am I doing sth wrong?

The one on the screenshot was triggered just now at 11am. Screenshot_20240707_104957_Home Assistant

GeoDerp commented 2 weeks ago

Hey, When doing a dayahead optimization at noon with configured Solcast EMHASS is showing me PV production for the coming night. Doesn't emhass take into account what time it is or am I doing sth wrong?

The one on the screenshot was triggered just now at 11am. Screenshot_20240707_104957_Home Assistant

Greetings @a8291 , I'm not quite sure 100%. Maybe check your timezones on HA and/or the configuration. If your running EMHASS not in HA (in standalone) you may need to pass in the -e TZ=Country/State in the docker run. Other then that maybe the Solcast rooftop is set up wrong? Let me know once you check these thing if they are still wrong and I will have a look at the code.

a8291 commented 2 weeks ago

I am running as an addon of HA. My time zone settings are correct in HA. The rooftop location of Solcast is correctly setup.

GeoDerp commented 2 weeks ago

Sorry forgive me, I have just re-read your message. Looking at the screenshot seems fine by me time wise. Is it okay if you can elaborate on what "for the coming night" means?

The first element looks like 11:00am to me +2:00 indicating UTC+2:00 and I'm guessing your Freq is set to 60, so once every hr for a day?

I'm I right to say the confusion is why the PV forecast is so high even during the night? If so, I would agree thats quite a interesting result. Usually you would see a bunch of 0's when the sun drops out. I'll have a look at this when I have some time.

If you want to test before hand, you might like to try and set the freq to 30 and see if that helps. Otherwise, if you are comfortable, sending over your config would be appreciated.

a8291 commented 2 weeks ago

After setting the freq to 30 minutes it makes more sense. Now I don't get any PV production when it's dark. That was what I meant with night. Sorry the confusion. So it seems to be related to the frequency. Screenshot_20240707_193926_Home Assistant