Code Monkey home page Code Monkey logo

ha_sma_speedwire's Introduction

SMA SpeedWire Integration for Home Assistant

I don't work on this integration since my inverter died, can't test changes, sorry.

Custom integration for Home Assistant to connect SMA inverters via SpeedWire protocol. The integration polls every 5 minutes only 3 entities because i only needed it for my Energy Dashboard:

  • Energy production total in kWh
  • Energy production today in kWh
  • Power production now in kW

add integration to HACS The integration should support a range of SMA Inverters here a list.

Installation

a) Install over HACS

  • Add https://github.com/eddso/ha_sma_speedwire repository to HACS integrations add custom repo to HACS add repo to HACS
  • Add SMA SpeedWire Integration integration with HACS add integration to HACS

b) Install manual

If you don't have or don't want use HACS, install it over Terminal:

cd config/custom_components
wget https://github.com/eddso/ha_sma_speedwire/archive/refs/heads/main.tar.gz
tar --strip-components=3 -xzf main.tar.gz ha_sma_speedwire-main/custom_components/sma_speedwire

Restart

After install restart Home-Assistant under the Configuration -> System -> Restart

Setup

  • After installation, you should find SMA SpeedWire under the Configuration -> Integrations -> Add integration. add integration to HA

  • Enter IP and password (default password is '0000') of inverter on integration setup. Normaly the inverter get the IP over DHCP. So you should configure your router to give always the same IP to inverter. add integration to HA

Debugging

Add the following to configuration.yml to show debugging logs. Please make sure to include debug logs when filing an issue.

See logger intergration docs for more information to configure logging.

logger:
  default: warning
  logs:
    custom_components.sma_sppedwire: debug

Credits

Inspired from SMAInverter.

ha_sma_speedwire's People

Contributors

eddso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ha_sma_speedwire's Issues

Connect to SMA no more possible

Hello

Installed Ha new, and now its not possible to connect to SMA
With Sunny Explorer Software and a sending ping is all OK

If I enter a wrong IP in the address field it searches for a while until an error occurs.
But if I enter the correct IP, the error immediately pops up: connection failed

It looks like it doesn't even look for the correct IP address but immediately gives errors

please help

can you add more sensors to this?

Wonder if you can add more sensors to this integration? I was trying to add it into the Energy section of HA but the first configuration was looking for a sensor for "Grid consumption"

Didn't appear until I moved into subdirectory

After unpacking per instructions and restarting, in Add Integration this did not appear. On a hunch I created the directory config/custom_components/sma_speedwire and moved everything into it. Restarted and now the integration does appear.
HA 2023.4.6.

While adding the IP address, the dialog requires a password. I don't think this is required, is it?

FYI, it works with my SB7000 inverter but not with my SB5.0. Haven't figured out why.

Adding additional sensors/support for battery inverter

Added the integration to HA yesterday, seems to work well so far.

Now I would like to add more sensors, for example to see dc power per string.
Additionally I do have a battery inverter which I would like to connect as well. The integration seems to connect initially, but reports 'Failed to set up' as soon as the inverter is added(didn't try logger yet). I also tried the 'test.py' which connects to both inverters just fine and reports correct data.

Unfortunately I have no experience writing Python or HA integrations. Any hints on which parts of the code need to be edited would be appreciated.

Edit: restarted Homeassistant, now the battery inverter seems to be fine, no more error...

Integration does not reconnect

Hi,

when sun goes down, the Sunny Boy switches off.
At sunrise, the Sunny Boy restarts and comes online.

However, your integration does, very often, not reconnect until I hit the reload button.
Is this a bug or do I need to set some additional configuration?

Regards,
Erik

Small typo

In your recent update you have

I don't work on this integration sins my inverter died, can't test changes, sorry.

It should be

I don't work on this integration since my inverter died, can't test changes, sorry.

Faster Refresh

Hi there,
i am relativ new to HA. I use your integration and its works pretty good.
Could you discribe me where i can change the refreshing to something like 15-30sec?
I tried to change the_init_.py line 42 to 30 seconds but it didnt change anything.

Thanks in advance

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.