Replies: 9 comments 15 replies
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
I have just read through the Advanced options https://github.com/BJReplay/ha-solcast-solar/blob/main/ADVOPTIONS.md and TBH, I couldn't see there was any of the options I wanted to set. I could reduce forecast_day_entities as I only have ever looked at the forecast up to 5 days ahead, but muhuh, what's the point? forecast_history_max_days might be nice to increase, but again, not sure there is real benefit to seeing more than 2 years in the energy dashboard. automated_dampening_generation_history_load_days I did wonder about, I think this option only affects the initial load of generation history into auto-dampening, and thereafter as a-d runs it will build up and use up to automated_dampening_model_days (default 14) days of history? So take this as positive confirmation of your design decisions embedded in the integration @autoSteve Cheers |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
I’d like to add an extra option for delaying when the collection of actual PV generation occurs, adding an offset from the currently hard coded collection at midnight https://github.com/BJReplay/ha-solcast-solar?tab=readme-ov-file#key-input-actual-pv-generation-for-your-site The estimated actuals would then be scheduled to be after the PV generation collection. The reason for this is that I have a lot going on at midnight on my HA, my ‘inverter energy today’ statistics are all being reset to zero, predbat is doing a comparison of different energy tariff projections to work out which is most cost effective, and Solcast is doing the PV generation collection and then estimated actuals. You can actually hear the HA server running hard for about 10 minutes as the fan kicks in with the high CPU load ! But its not just my ears that I’m making this suggestion for, the inverter sensor midnight reset isn’t working properly, I’m seeing a noticeable delay in some of the sensors being reset and by reducing server load I hope to eliminate server load as being a cause of this: Of course if this is impossibly difficult to do, I understand |
Beta Was this translation helpful? Give feedback.
-
|
I'd love an option to apply the logarithmic/square-root adjustment to PV dampening for manually set dampening values (via the json file @ 30m intervals) - currently only available when automatic dampening is enabled. I'll be switching energy plan soon, which will require solar curtailment throughout much of the day in summer, so auto dampening won't work well. I can easily manually set dampening factors, but I still want a non-linear adjustment to account for cloudy conditions. Sorry if this is already an option somewhere and I just missed it in the documentation. |
Beta Was this translation helpful? Give feedback.
-
|
Is there any use for the ancient data held in the likes of solcast.json? Might I suggest a max_solcast_history option to set a max number of days to keep. I'm certainly not bothered about what my system did in June last year! If this doesn't float your boat @autoSteve I'm happy to have a crack at implementing it. The pytest? Not so much 😱 |
Beta Was this translation helpful? Give feedback.
-
Crash test dummy reporting in. Custard and mushroom free system this morning, with all json files truncated to 60 days. Great success! |
Beta Was this translation helpful? Give feedback.
-
|
OK, so I'm not convinced that this is an advanced option suggestion box, or a service (action) suggestion, but I know you like a challenge... My use case: My algorithm to optimise discharge into Globird Zero Hero relies on:
That's it. But overnight is where it gets interesting - I'm not defining it as sunset to sunrise, but 6pm to the point at which solar power exceeds household load the next day. Once I know that, and I know current SOC, I can work out how much I can discharge, provided I know when I'll be able to rely on the sun again tomorrow. There's a smidge of forecast, but not much. I'm using a trailing 14 days to determine that time - from that point on, I'm self-sufficient. Now, if I ignore generation prior to that point, I'm ignoring a reasonable (at this time of year maybe 1 to 1.5kWh) amount of self-consumption - so up to 10% of available battery capacity. I've got the "figure out the point at which I'm self-sufficient" working well (included below FYI): Find the average hour over the last 14 days where battery power is less than zero (it is charging) between midnight and 10 (I don't care if it is after 11am - I'm on the grid then anyway, baby). SELECT AVG(strftime("%H",BP.start_ts, "unixepoch", "localtime")) AS Hour
FROM statistics as BP
JOIN statistics_meta as SM
ON BP.metadata_id = SM.id
AND SM.statistic_id = 'sensor.legacygateway_battery_power'
WHERE date(BP.start_ts, "unixepoch", "localtime") BETWEEN date('now','-14 days') AND date('now')
AND strftime("%H",BP.start_ts, "unixepoch", "localtime") BETWEEN "00" AND "10"
AND min < 0
I've got the "overnight consumption until self-sufficient" working well (included below, too) - there's a helper input variable and an un-shown automation to set it - I was using a template that was directly referencing the self-sufficient point SQL Sensor from above, but it was unreliable across restarts - I think there was an initialisation order issue. Get the average of the sum of the mean consumption grouped by day for the last 14 days from 6pm to the break-even hour as determined in the previous step. SELECT AVG(Consumption) AS Consumption
FROM (
SELECT SUM(mean) AS Consumption
, date(start_ts, "unixepoch", "localtime") AS Date
FROM statistics
WHERE metadata_id = ( SELECT id FROM statistics_meta where statistic_id = 'sensor.legacygateway_load_power' )
AND (strftime("%H",start_ts, "unixepoch", "localtime") BETWEEN "18" AND "23"
OR strftime("%H",start_ts, "unixepoch", "localtime") BETWEEN "00" AND "{{ "%02d" | format(states('input_number.solar_excess_hour') | int ) }}")
AND date(start_ts, "unixepoch", "localtime") BETWEEN date('now','-14 days') AND date('now','-1 days')
GROUP BY date(start_ts, "unixepoch", "localtime")
)I can (and have been) periodically changing X in the Custom Next X hours Sensor for the Solcast integration - and then polling that at 6pm, and using remaining today and that sensor to give me the values I need to work out the next morning's generation (which is being used as self-consumption up to the excess generation point - but can be used - provided I don't flatten the battery - as part of my discharge planning). Your challenge, should you choose to accept it:
I know this has been asked for before, and I also know that I could probably pull 30 minute detailed forecast data and manipulate it, but who doesn't need a challenge? |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The newly minted "advanced options" feature carries with it a starting point for integration tweaks.
I'd like to hear your suggestions for more.
Some that I have already
dreamed uprecently added...Beta Was this translation helpful? Give feedback.
All reactions