Starting a new thread as this was getting lost in the Hints, Tips & Troubleshooting thread.
Post details of your integration with Home Assistant etc.
I had that when I set mine up first, got it sorted by reloading pyscript. I put this in an automation and ran it once.
Static multiplier needs more tweaking.
Met estimate 17.17kWh Forecast.solar estimate 28.28kWh Solcast estimate 24.85kWh Actual generation 22.4kWh
Yeah, need to figure that out myself. Was getting late when I got it working so posted it as it. Might get some time over weekend to have a look.
Mine didn't go too badly. I've dropped forecast.solar as it's nothing more than a random number generator in my experience.
Actual generation 20.8kWh
Met estimate 18.41kWh
Solcast 16.1kWh
My own met eireann calc using a rolling actual vs estimate gave 17.2kWh estimated... so somewhere between the static multiplier and Solcast.
thanks
tried that.... same error....
@connesha is there an updated version of inverter.py somewhere I can grab like github?
Getting unknown on _LOGGER on this code which I assume this is the HA log?
Check your log in HA (settings / system / logs). I had a couple of indent errors also.
its just telling me :
Service not found for call_service at pos 1: Unable to find service pyscript.meteireann_solarforecast
Ah yea. I've an updated version locally that I haven't shared yet.
For now, change _LOGGER.Info to self.log and you should be good. Or failing that, comment out the line (I'm writing from phone, so can't test)
(@Jonathan , if.you could edit my post to correct this for others. Thx)
BTW, the updated version of the AppDaemon app I use locally now supports writing multiple registers at the same time, and has a few other improvements that make it easier to call. (So you can set charge current and change storage mode much easier, for example). If this is of use, let me know and I can package up during the week...
Yup that's what I did just changed it back to self.log as it was before.
I think adding the multiple register function would be handy alright, good to have the two of them in the there that way anyone can pick whenever they want/need.
@Jonathan also getting this with pyscript:
(automation.refresh_meteireann_solar_forecast) has an action that calls an unknown service: pyscript.meteireann_solarforecast
Looks like it just doesn't create it the service at all:
Any ideas?
Also sensor.meteireann_solar_today and sensor.meteireann_solar_tomorrow, these get created automatically by the script or I need to create them myself?
My HA logging is getting messed up because I'm getting spikes of crazy high watts, dwarfing out the usually normal measurements.
Any idea how I can fix this?
sensor.solarman_inverter_dc_power
I have an idea what is causing it (V5 frame error checking isn't robust enough). Haven't gotten around to fixing it yet though.
You have the files in the wrong directory. They should go into /config/pyscript.
NOT /config/custom_components/pyscript.
Oh I didn't even see that new folder there thanks but it doesn't seem to make a difference the service never gets created
Reinstalling/reloading pyscript doesn't seem to do anything either so still a bit stuck 🤷♂️
Jupyter kernel needs to be installed for this to work?
Looks good to me (except the sensors which I need to create myself or not?)
It will create the sensors after you restart. However, the issue I had is that they've no unit or formatting.
What I did was to adjust the code so that all it provides is the radiation figure. Then added template sensors with the calculation. I've added a separate sensor for the actual vs estimate percent, and will add another statistics sensor for a 7-day average of that. Hoping I can put that average into the initial calculation to improve the accuracy. Not sure if that will work as it sounds like googling Google. 🤣
Current problem I'm having is that my sensor goes to unknown after a restart of HA. Need to figure that one.
@SD_DRACULA I think your file structure is still a bit off. It should be -
config\pyscript
config\pyscript\modules
Yup that was it thanks, silly mistake:
But considering today is already at 16kwh production the guesstimate is a ways off.
@Jonathan, question on this bit:
arrayMultiplier = 0.194*33.34/1000 # panelEfficiency * panelArea(m2) / 1000 (to kWh)
So what's the multiplier correct value supposed to look like?
I put in 19.4% as that's the efficiency of the qcell panels I have and I have 21 of them @ 335w (7kw) and I tried to work out the actual area without the frame which is 33.34 * 0.194 = 6.467 and if I go by panel size (1.65 x 1.03 * 21) * 0.194 = 6.923 which is closer to real size.
Should I go for the second calculation?
still wont work for me either... even though ive got the correct directories & files
unknown service: pyscript.meteireann_solarforecast
pyscript.meteireann_solarforecast
Have edited out screenshot with your location in it.
Have you set up the installed pyscript from HACS, and set up the integration? If you have you should be able to see the pyscript.reload service under Developer Tools -> Services.
If pyscript is installed correctly, what pyscript errors can you see in Settings -> System -> Logs?
yes, psyscript is setup and running as an integration.
pyscript.reload service is there under Developer Tools -> Services & runs
errors in the log -
In python, indentation matters. Have a look at the files in something like Notepad++ to see if you can spot any stray spaces.
If I get a chance, I'll put the files up on github, which is easier than copying pasting from here.
Did you use vscode to save the files? It's pretty good to call out bad-indents like this one here, remove the extra space:
Sometimes when you copy and paste it happens
bingo! that was the issue. working now
thanks for creating! solcast is pretty flakey for me these days so good to have another reference point.
Yeah, reviewing my predictions vs actuals for the last few days, I've revised the panelEfficiency part of the formula up to 0.223. I'll see how I go with this for a few days. It is guesswork to a large extent and will vary for every system based on components, angle, orientation etc.
Let's hope met prediction is the real one tomorrow (technically today)
Nope, met was wrong this time, 13kwh today so maybe some tweaking required.
Tomorrow looks more in sync.
@Jonathan what did you change in the formula?
I'd definitely recommend solcast over forecast.solar (and sure what harm is another forecasting service). It's in HACS and reasonably easy to set up.
i have the Solcast integration installed via HACS but I can't figure out how to make use of it in HA! I'm missing something because I can't find any reference to it wherever I search. I can't even manage to find the config page that's shown in the docs (https://user-images.githubusercontent.com/1471841/172541966-cb3f84a9-66bd-4f0f-99de-6d3e52cfd2ba.png)
Any pointers?
You set up your account on the Solcast website, and input the API key on the integration configuration?
(or are you at an earlier stage, where you have to add the github repository to HACS)