Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Solar PV Monitoring/Automation Thread

1373839404143»

Comments

  • Registered Users, Registered Users 2 Posts: 6,213 ✭✭✭championc


    I just do max export allowed, and fix an SOC threshold for every hour.

    So imaybe 20% per hour @ 5kW. So stop discharging when you hit 20% between 1 and 2, stop when you hit 40% between 12 and 1 etc......

    You will finish each night at 20% SOC irrespective of the starting position



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


    Was thinking that alright but wanted to end at 10% bang on 2am (or close to it)

    Funny enough the sunsynk flow card displays the time when it hits 10%

    But it's not a value I can automate against, I usually set it by hand until it's close to 2am and it has been very accurate but I want to not do it manually ofc



  • Registered Users, Registered Users 2 Posts: 6,213 ✭✭✭championc


    I do 15% per hour. It finishes early (reaches the low threshold) so reverts to discharging normally for the last 15 mins or so of each hour.

    So you might end up actually hitting 9% that way, so you could set the threshold for 1 to 2 at 12%

    So basically, Trigger time between 1:00 and 2:00 If SOC% > bottom level Then Dump Discharge Else Normal Discharge

    Then repeat for all hours from 21:00



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


    Sure throw in the code and I can give it a shot 😀



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


    Anyone else having issues with their myenergi systems (particularly those on S18)?

    My devices are showing as unavailable in HA since approx 11:40 and getting a communication error in the myenergi app. The API itself appears to be up though and nothing logged here.

    Have logged a ticket and awaiting a response.



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 16,454 ✭✭✭✭Ha Long Bay


    App and HA integration seems to be working fine here.



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


    Are you on V5 firmware? How frequently are you polling within HA?



  • Registered Users, Registered Users 2 Posts: 16,454 ✭✭✭✭Ha Long Bay


    Yeah running V5 on the gen1 hub and eddi. Polling in HA every 10 seconds.



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


    Thanks. Might have to bite the bullet and upgrade to V5.



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




  • Advertisement
  • Registered Users, Registered Users 2 Posts: 6,213 ✭✭✭championc


    I'd be the same. Every 10 secs on a Gen 1 Hub, with a v5 Eddi and Zappi. No issues as far as I can see



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


    Back as of 14:59.



  • Registered Users, Registered Users 2 Posts: 155 ✭✭mjatkey


    Hi guys.

    Ok so have been setting up my solar installation etc in HA (currently using Solis API data) but am pleased with how far I have come… I'll have load of questions on setting up the local data collection, currently reading up and looking at what is needed to get the data from the logger to HA.

    In the mean time I've added all the Tuya devices I have dotted around the house to HA but am struggling with a couple of things?

    Have a 30Amp switch on the immersion which integrates fine into HA except it doesn't give a running total of the power used, daily, monthly only power I can see is when it is in use and in the history graph.

    On the Tuya APP running totals are shown, current, daily and monthly.

    I've managed to extract the .Json data for the switch on HA, but thats about it.

    The state is the only total I see and its not changed since the integration.

    disabled": false,
    "disabled_by": null,
    "entity_category": null,
    "device_class": null,
    "original_device_class": "energy",
    "icon": null,
    "original_icon": null,
    "unit_of_measurement": "kWh",
    "state": {
    "entity_id": "sensor.hot_water_clonee_consumption",
    "state": "0.421",
    "attributes": {
    "state_class": "total_increasing",
    "unit_of_measurement": "kWh",
    "device_class": "energy",
    "friendly_name": "Hot water Clonee Consumption"
    },
    "last_changed": "2024-08-13T15:42:24.685852+00:00",
    "last_reported": "2024-08-13T15:42:26.369583+00:00",
    "last_updated": "2024-08-13T15:42:24.685852+00:00"

    Question, can the "code" be changed to display the correct running total, if so how or is it a non runner?

    Thanks

    🌞 6.96kWp PV System. West Dublin🌞



  • Moderators, Home & Garden Moderators Posts: 6,369 Mod ✭✭✭✭graememk


    You can take the Watts sensor and make a kWh out of it using an integral in home assistant

    https://www.home-assistant.io/integrations/integration/



  • Administrators Posts: 397 Admin ✭✭✭✭✭System


    This discussion was created from comments split from: Solar PV Hints, Tips & Troubleshooting.


  • Registered Users, Registered Users 2 Posts: 155 ✭✭mjatkey


    Thanks graememk, maybe I explained it wrong. What I mean is on the APP I see this but on HA the two consumption sensors neither match the APP total, if that makes sense?

    🌞 6.96kWp PV System. West Dublin🌞



  • Moderators, Home & Garden Moderators Posts: 6,369 Mod ✭✭✭✭graememk


    Oh I know what you mean, I had no clue how to help with the integration, but a workaround would be to work from the sensor that is working.



  • Registered Users, Registered Users 2 Posts: 155 ✭✭mjatkey


    Ok, so I am hopefully a step nearer to getting the inverter data locally rather than from the Solis cloud.

    I was trying to figure out how to get the mini pc that HA runs on into the loft next to the inverter so if I have to connect it to the data logger it could be easily done.

    Tried a TP link LAN plugin but because the backup socket the solar guys added is not part of the same ring as the other sockets in the house it didn't want to play ball.

    I then found an old Sky Wireless device (LAN to wireless) and this seem so have done the trick.

    So what would be the simplest way to do this I have started reading various github articles, Solis Modbus and Solarman intergration but am not 100% what is involved.

    Also watched the Gordonmarkus video's on YouTube, a lot of which went straight over my head.

    This is the data logger that is in the inverter at the moment, I think it is S2-WL-ST so don't think Solarman doable?

    Any suggestions/direction would be more than welcome?

    Thanks

    🌞 6.96kWp PV System. West Dublin🌞



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


    The S2-WL-ST supports Modbus TCP (port 502) out of the box, but the downside is that no data is uploaded to Solis Cloud while querying locally with Modbus TCP. Is this an issue?

    In terms of HA integration, use this or this. The former is using the native Modbus integration, the latter is using a third party integration which has Solis support.



  • Registered Users, Registered Users 2 Posts: 155 ✭✭mjatkey


    🌞 6.96kWp PV System. West Dublin🌞



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 2,854 ✭✭✭tech


    looking to do same with SOlis invertor to feed into HA



  • Registered Users, Registered Users 2 Posts: 326 ✭✭domeld


    Hi All,

    few days ago i installed Luna 2000 battery and signup to Electric Ireland Night Boost tariff. I managed to fix issue with PV generation after battery install (i was using Shell EM clamp only). But having tariff with 3 diferent prices im not able to create template sensor (i think this what i need to use) to cover all 3 prices/times, does anybody have solution for this?



  • Registered Users, Registered Users 2 Posts: 7,715 ✭✭✭10-10-20


    Did you create the defined time periods and names in automations.yaml? The example below is for a day/night meter (peak and offpeak), I don't see a reason why it can't have three periods.

    - id: '1634335289003'
      alias: ESB Meter Electricty Meter Tariffs
      description: Day and Night PEAK Tariffs
      trigger:
      - platform: time
        at: 08:11:00
        variables:
          tariff: peak
      - platform: time
        at: '23:11:00'
        variables:
          tariff: offpeak
      action:
      - service: select.select_option
        target:
          entity_id: select.hourly_energy
        data:
          option: '{{ tariff }}'
      - service: select.select_option
        target:
          entity_id: select.daily_energy
        data:
          option: '{{ tariff }}'
      - service: select.select_option
        target:
          entity_id: select.monthly_energy
        data:
          option: '{{ tariff }}'
    



  • Registered Users, Registered Users 2 Posts: 326 ✭✭domeld


    I see, instead of creating new template sensor You have an automation to update entity with prices - this is excelent idea. Im going to check this.

    thanks



  • Registered Users, Registered Users 2 Posts: 7,715 ✭✭✭10-10-20


    Then create utility_meter in configuration.yaml:

    utility_meter:
      hourly_energy:
        source: sensor.shelly_em_esb_meter_channel_1_energy
        name: ESB Meter Hourly Electrical Energy
        cycle: hourly
        tariffs:
          - peak
          - offpeak
      daily_energy:
        source: sensor.shelly_em_esb_meter_channel_1_energy
        name: ESB Meter Daily Electrical Energy
        cycle: daily
        tariffs:
          - peak
          - offpeak
    

    And then a pricing template in the same file:

    template:
      - sensor:
          - name: "Hourly Cost Total Peak"
            unique_id: "template_sensor_4"
            device_class: monetary
            unit_of_measurement: "€"
            icon: mdi:currency-eur
            state: >
              {{ (states('sensor.hourly_energy_peak') | float * 0.3648 ) | round(2) }}
    
          - name: "Hourly Cost Total Off Peak"
            unique_id: "template_sensor_5"
            device_class: monetary
            unit_of_measurement: "€"
            icon: mdi:currency-eur
            state: >
              {{ (states('sensor.hourly_energy_offpeak') | float * 0.105) | round(2) }}
    



  • Registered Users, Registered Users 2 Posts: 326 ✭✭domeld




  • Registered Users, Registered Users 2 Posts: 221 ✭✭Latro


    Some of the cards on my energy dashboard.



  • Registered Users, Registered Users 2 Posts: 221 ✭✭Latro


    Some other cards.

    Tesla Dash



  • Registered Users Posts: 30 Borax2709


    If I were you'd add templates with "readable names" and use them instead of the "3EM …." when it comes to the dashboard.

    Really not too difficult - you basically just clone the values out to another metric and show that one instead.

    e.g. add to your configuration.yamlfile

    sensor:
    - platform: template
    sensors:
    # Can we obfuscate the shelly channels and use the values from a friendly name instead?
    mains_energy:
    friendly_name: "Mains Energy"
    device_class: energy
    unit_of_measurement: kWh
    value_template: >-
    {{ states('sensor.shellyem_channel_1_energy') | float(0) }}

    This for me gives me a mains_energy entity with "Mains Energy" as the UI name - which ends up with exactly the same values as the sensor.shelly_em_channel_1_energy (in my case the CT1 clamp is on the Mains).

    For me one of the main reasons to do this is that if I ever have to add another shelly to monitor or if I want to use the CT1 clamp to monitor something else - I just do the switch physically, and then update the template here and I haven't lost any of the historical data.



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


    Oh I like the "when is the sun up" one, what's it called?



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


    Horizon Card. It's in HACS.

    https://github.com/rejuvenate/lovelace-horizon-card/



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


    Swish! Adding that now :D



  • Registered Users, Registered Users 2 Posts: 26 paddy236


    @Latro , how are you calculating your heatpump COP?



  • Registered Users, Registered Users 2 Posts: 221 ✭✭Latro


    It is calculated by the heat pump which is integrated with HA.



  • Registered Users Posts: 33 ilikesleeves


    Folks - Looking for help. Recently moved into a new build and I am working my way through learning the ins and outs of HA. I have a Ergocell inverter and 5kWh battery setup installed by a one-stop shop.

    The inverter is using a Solarman stick logger via ethernet and I've access to my data from the Solarman app.

    I'm struggling to integrate into HA. I've followed steps based on the Solarman integration via HACS - but to no avail. I'm more a novice at HA than I thought really.

    Anyone have any experience or success in getting a setup like this running?



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


    The Ergocell looks like a rebadged KStar (same as the MyEnergi Libbi). Try the kstar_hybrid.yaml definition file and see how you get on.

    To be honest, I'd recommend removing home_assistant_solarman and instead switching to ha-solarman, which is an actively maintained fork.



  • Registered Users, Registered Users 2 Posts: 331 ✭✭JayBee66


    Is it possible to run both ha-solarman and home_assistant_solarman together so I can test if the new fork is going to work for me?

    I haven't updated anything on the original since v1.4.3 for fear I'd brick something.



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


    I haven't tested both together, but you could install ha-solarman, and then disable (but not remove home_assistant_solarman) and see how you go?



  • Registered Users, Registered Users 2 Posts: 331 ✭✭JayBee66


    Presumably, there are commonalities between the two and so installing ha-solarman might overwrite on top of home_assistant_solarman?



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


    They each have their own directories in custom_components so they can be installed side by side but there might be conflicts in terms of sensor names etc and the second one will probably have numbers appended to differentiate.

    Both can't run at the same time though as the data logging stick won't like it.



  • Advertisement
  • Registered Users Posts: 33 ilikesleeves


    This worked as recommended - thanks for the help. I just need to modify some entities to map them correctly into the energy dashboard and good to go. I'll share some nice dashboards soon I hope!



  • Registered Users Posts: 30 Borax2709


    Finally got my install sorted today ( just in time for not-much-solar for the next few months! ). Sofar inverter.

    I had bought this - https://www.tindie.com/products/thehognl/esp32-c3-with-rs485-modbus-and-optional-touch-tft/ to connect to my HA instance instead of using the datalogger / solarman servers but realised I don't even know what cable I'm supposed to be buying for it! (power to USB-C is fine - but then I need an RS485 (@Sofar) to 3 [GND , A, B ] - which I don't even know what to search for!).

    Any ideas, pointers? Am hopeful that once I'm connected (which means disconnecting the existing COMs and losing Solarman (correct?) ) the actual integration stuff should be quite straightforward to get the CT entities etc into HA.

    edit: I see I need to tap into the existing COM adaptor and get a cable @ 5 and 6 in there - and map that back to the ESP32 A/B

    Post edited by Borax2709 on


  • Registered Users, Registered Users 2 Posts: 49 GarlicBed


    On the energy dashboard in HA.

    Is there a way to get a figure for self consumed solar?

    I know I can hover over the bars to get it but I'd like to see it "live".

    thanks



Advertisement