Git Product home page Git Product logo

pwrcell_sunspec's People

Contributors

edalquist avatar oriolism avatar petergrace avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

pwrcell_sunspec's Issues

Support for state/alarms sensors.

I would be great to know the actual state of the inverter, pv links and battery and in case of any error on the system receive a notification with a HA automation. Model model_64259.json has good sensors that can be useful in this case.

inverters without batteries cause main.py to fail

Howdy -- oriolism suggested I check out this project.

I have 3 inverters in my system, but only one has a battery. When trying to run main.py on the inverters with no batteries, the script fails.

If I don't set battery, main.py closes with:

Traceback (most recent call last):
  File "/opt/pwrcell_sunspec/main.py", line 97, in <module>
    app.run(main)
  File "/usr/local/lib/python3.9/site-packages/absl/app.py", line 308, in run
    _run_main(main, args)
  File "/usr/local/lib/python3.9/site-packages/absl/app.py", line 254, in _run_main
    sys.exit(main(argv))
  File "/opt/pwrcell_sunspec/main.py", line 67, in main
    battery=config['pwrcell']['device_ids']['battery'],
KeyError: 'battery'

If I specify battery as -1, main.py closes with:

Traceback (most recent call last):
  File "/opt/pwrcell_sunspec/main.py", line 97, in <module>
    app.run(main)
  File "/usr/local/lib/python3.9/site-packages/absl/app.py", line 308, in run
    _run_main(main, args)
  File "/usr/local/lib/python3.9/site-packages/absl/app.py", line 254, in _run_main
    sys.exit(main(argv))
  File "/opt/pwrcell_sunspec/main.py", line 80, in main
    pwrcell_ha.init()
  File "/opt/pwrcell_sunspec/homeassistant.py", line 99, in init
    self.__pwrcell.battery.battery[0].W,
AttributeError: 'GeneracPwrCell' object has no attribute 'battery'

What's your tolerance on productionising this? If its your pet project that you're not even sure you want to maintain, I don't want to bombard you with PRs for execution ergonomics. I'm thinking of a few, including utilizing argv (instead of tossing it first-off) to specify configfile, so I can run multiple copies in separate docker containers.

If you want to chat on discord, my handle is AdmiralPete#9678

Enable/Disable Inverter, PV Links and Battery.

Im still testing and so far this app is working great! One thing I am missing is the ability to enable and disable the inverter, pv links and maybe the battery from HA. I think that model 64206 has the option to enable/disable the inverter and model 64211 has the option for the pv links, not sure about the battery.

How to use.

Hi, can you give me some guide on how to use this project? Im using the sunspect integration in HA but doesn't have all the data from the inverter.

Regards

Support for systems without PV Links

I currently have a system without PV (just battery backup)? pwrcell.py requires that PV links be identified, and homeassistan.py crashes without a PV link. I've worked around the issue by commenting out the code in homeassistant.py starting at line 142, but it would be great to have a more elegant solution.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.