briis / weatherflow_forecast

Home Assistant integration for WeatherFlow Forecast
MIT License
60 stars 3 forks source link

Daily Solar Radiation Sensor #121

Open jata1 opened 1 month ago

jata1 commented 1 month ago

Is your feature request related to a problem? Please describe. Both this and the core weatherflow integrations include solar radiation in W/M2 I need this data to aggregate over the day like the sensor you have created for Precipitation Today

Describe the solution you'd like I'd like a additional sensor that holds the running total for total solar radiation so far today. It should reset daily.

Describe alternatives you've considered I have setup a Utility Meter Helper that calculates this but I keep getting a very strange issue where the solar radiation source data does not seem correct.

Additional context See below for a history chart that shows this weirdness. Data highlighted is from today. The data is too perfect. Something is wierd.

image

If I overlay data from Utility Meter for daily total solar radiation - the issue is highlighted

image

jata1 commented 1 month ago

The more I think about this - maybe its a bug not a feature request...

briis commented 1 month ago

This all comes down to if this is setup as MEASUREMENT sensor or a TOTAL_INCREASING State Class. A sensor cannot be both. For the rain sensor it is obvious that this is a Total Increasing per day, but not for this sensor as it fluctuates over the day how much your Solar rad is.

I have Solar Power on my house and I like to compare the Solar Radiation to actual Watt's produced in realtime. If I had this as Total Increasing I could not do that.

The only solution is either create a new Sensor in the Integration with the same input, but State Class set to TOTAL_INCREASING or do as you do, and create a Utility Helper. (I still need to figure out how exactly to configure this, to meet your use case)

jata1 commented 1 month ago

Thank you. I understand and appreciate you looking into this.

Do you see what is happening with my solar radiation sensor on some days? This does not look normal. Do you see this on your own equipment/setup?

briis commented 1 month ago

Mine also has some strange curves some days. We have had a very sunny May until now (Not normal for Denmark 😎 ) As you can see from the below 4 1/2 day history, the curves are not the same. Some are more rounded than others. Clouds of course affect this curve very much.

Skærmbillede 2024-05-22 kl  15 49 34

jata1 commented 1 month ago

Then the issue might be upstream with the tempest itself.

Any chance you could create a utility meter helper off your solar radiation to see if you get the same issue as me on days with perfect data?

briis commented 1 month ago

I have setup a few with different configs now. They need a day or two to populate data

jata1 commented 1 month ago

Thank you. Really appreciate your help. I have a feeling the data comes through strange when the sky is clear/sunny.

I will also monitor myself. Speak soon.