Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Solar PV Monitoring/Automation Thread

Options
1252628303176

Comments

  • Registered Users, Registered Users 2 Posts: 1,112 ✭✭✭silver_sky


    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.

    image.png




  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,341 Mod ✭✭✭✭Jonathan


    Static multiplier needs more tweaking.

    Met estimate 17.17kWh
    Forecast.solar estimate 28.28kWh
    Solcast estimate 24.85kWh
    Actual generation 22.4kWh
    




  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,341 Mod ✭✭✭✭Jonathan


    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.



  • Registered Users, Registered Users 2 Posts: 1,112 ✭✭✭silver_sky


    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.



  • Registered Users, Registered Users 2 Posts: 1,256 ✭✭✭mag




  • Advertisement
  • Registered Users, Registered Users 2 Posts: 2,742 ✭✭✭SD_DRACULA


    @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?



  • Registered Users, Registered Users 2 Posts: 1,112 ✭✭✭silver_sky


    Check your log in HA (settings / system / logs). I had a couple of indent errors also.



  • Registered Users, Registered Users 2 Posts: 1,256 ✭✭✭mag


    its just telling me :

    Service not found for call_service at pos 1: Unable to find service pyscript.meteireann_solarforecast



  • Registered Users, Registered Users 2 Posts: 189 ✭✭connesha


    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...



  • Registered Users, Registered Users 2 Posts: 2,742 ✭✭✭SD_DRACULA


    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.



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 2,742 ✭✭✭SD_DRACULA


    @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:

    image.png image.png

    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?



  • Registered Users, Registered Users 2 Posts: 714 ✭✭✭fuse


    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

    image.png




  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,341 Mod ✭✭✭✭Jonathan


    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.



  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,341 Mod ✭✭✭✭Jonathan


    You have the files in the wrong directory. They should go into /config/pyscript.

    NOT /config/custom_components/pyscript.



  • Registered Users, Registered Users 2 Posts: 2,742 ✭✭✭SD_DRACULA


    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

    image.png

    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?)

    Post edited by SD_DRACULA on


  • Registered Users, Registered Users 2 Posts: 1,112 ✭✭✭silver_sky


    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.

    Screenshot_20220918-110430_Home Assistant.jpg




  • Registered Users, Registered Users 2 Posts: 1,112 ✭✭✭silver_sky


    @SD_DRACULA I think your file structure is still a bit off. It should be -

    config\pyscript

    • meteireann_solarforecast.py

    config\pyscript\modules

    • weatherforecast.py
    • requirements.txt


  • Registered Users, Registered Users 2 Posts: 2,742 ✭✭✭SD_DRACULA


    Yup that was it thanks, silly mistake:

    image.png

    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?



  • Registered Users, Registered Users 2 Posts: 1,256 ✭✭✭mag


    still wont work for me either... even though ive got the correct directories & files

    unknown service: pyscript.meteireann_solarforecast



  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,341 Mod ✭✭✭✭Jonathan


    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?



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,256 ✭✭✭mag


    yes, psyscript is setup and running as an integration.

    pyscript.reload service is there under Developer Tools -> Services & runs

    errors in the log -

    image.png


  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,341 Mod ✭✭✭✭Jonathan


    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.



  • Registered Users, Registered Users 2 Posts: 2,742 ✭✭✭SD_DRACULA


    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:

    image.png

    Sometimes when you copy and paste it happens



  • Registered Users, Registered Users 2 Posts: 1,256 ✭✭✭mag


    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.



  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,341 Mod ✭✭✭✭Jonathan


    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.

    arrayMultiplier = 0.194*33.34/1000 # panelEfficiency * panelArea(m2) / 1000 (to kWh)
    




  • Registered Users, Registered Users 2 Posts: 2,742 ✭✭✭SD_DRACULA


    Let's hope met prediction is the real one tomorrow (technically today)

    image.png




  • Registered Users, Registered Users 2 Posts: 2,742 ✭✭✭SD_DRACULA


    Nope, met was wrong this time, 13kwh today so maybe some tweaking required.

    Tomorrow looks more in sync.

    image.png

    @Jonathan what did you change in the formula?



  • Moderators, Science, Health & Environment Moderators Posts: 4,895 Mod ✭✭✭✭Tree


    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.



  • Registered Users, Registered Users 2 Posts: 714 ✭✭✭fuse


    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?



  • Advertisement
  • Moderators, Science, Health & Environment Moderators Posts: 4,895 Mod ✭✭✭✭Tree


    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)



Advertisement
Advertisement