Giter Club home page Giter Club logo

Comments (14)

dirkmueller2 avatar dirkmueller2 commented on June 26, 2024 2

After a lot of reading and trying out I found a post on another board.
Its in German: https://community.simon42.com/t/sma-home-manager-auslesen/4560/20

Solution for me, now its works perfect, is to write down the IP from the Home Assistent Server into the Homemanager Portal in the Zählerkonfiguration.

Its on the settings of the Home Manager in SunnyPortal:

image image

The IP of the HomeAssitant Server should be not changed from the router, thats fine on my config in the Fritzbox. No its working perfect. Hard job but no I am Happy.

image

from hassio-sma-em.

kellerza avatar kellerza commented on June 26, 2024

Can you post the log from the SMA-EM addon?

from hassio-sma-em.

prom00 avatar prom00 commented on June 26, 2024

Thanks alot for your fast reply.

I've got this in my logs:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.

I also got this logs in Mosquitto:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] mosquitto.sh: executing...
[09:29:58] INFO: SSL is not enabled
[cont-init.d] mosquitto.sh: exited 0.
[cont-init.d] nginx.sh: executing...
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[09:29:58] INFO: Starting NGINX for authentication handling...
[09:29:58] INFO: Starting mosquitto MQTT broker...
1659338998: Warning: Mosquitto should not be run as root/administrator.
[09:29:59] INFO: Successfully send discovery information to Home Assistant.
[09:29:59] INFO: Successfully send service information to the Supervisor.

from hassio-sma-em.

kellerza avatar kellerza commented on June 26, 2024

It seems like you never receive any multicast traffic from the SMA-EM. Once you receive your first reading the discovery process will start, see the bold lines below from my log

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
WARNING:asyncio:Executing Handle _SelectorDatagramTransport._read_ready() created at /usr/local/lib/python3.9/asyncio/selector_events.py:259 took 0.128 seconds
INFO:sensors:Discover 9/9 sensors on SMA 19xxxxx
INFO:sensors: - u1 every 60s
INFO:mqtt:Connecting
INFO:mqtt:Connecting
INFO:mqtt:MQTT: Connection successful
INFO:sensors: - u1_min every 60s
INFO:sensors: - u1_max every 60s
INFO:sensors: - p1consume every 60s
INFO:sensors: - p1consumecounter_max every 60s
INFO:sensors: - p2consume every 60s
INFO:sensors: - p2consumecounter_max every 60s
INFO:sensors: - p3consume every 60s
INFO:sensors: - p3consumecounter_max every 60s

Is everything wired up and does your home network support IGMPv2?

from hassio-sma-em.

prom00 avatar prom00 commented on June 26, 2024

What do you mean with 'Wired up'?

I've enabled debug (again). I had it on before, but tried reinstalling everything.

image

I'm not sure whether my home network supports IGMPv2. But I'm just running a basic network with a couple of routers & switches.

I'm running HA on a Truenas server inside a VM. On HA is also MQTT installed so they should be able to talk locally right?

from hassio-sma-em.

prom00 avatar prom00 commented on June 26, 2024

I've tried sending messages through MQTT with MQTTX program.
Setup 2 interfaces and send a message on one and it was received by the other.
image

I'll take it that MQTT is working.

from hassio-sma-em.

kellerza avatar kellerza commented on June 26, 2024

You don’t get anything from the energy meter… (mqtt is not involved yet)

#5 (comment)

from hassio-sma-em.

prom00 avatar prom00 commented on June 26, 2024

https://github.com/datenschuft/SMA-EM

Do I need to install the above manually?

from hassio-sma-em.

kellerza avatar kellerza commented on June 26, 2024

@prom00 everything that is required is already added, but if the multicast / IGMPv2 packets never arrive, then there is no way of understanding this.
See if you can remove switches/routers in your network and have a more direct line between the EM and you Hass instance to test this theory,- #5 (comment)

from hassio-sma-em.

kellerza avatar kellerza commented on June 26, 2024

The addon waits for the first valid multiast packet before it will attempt to make any connection to the MQTT server

from hassio-sma-em.

prom00 avatar prom00 commented on June 26, 2024

I've got this working with another method now. I'm using MODBUS:

modbus: 
  - type: tcp
    host: 192.168.1.151 # ip nummer omvormer
    port: 502
    name: "sma"
    close_comm_on_error: true
    delay: 5
    timeout: 5
    sensors:
      - name: SMA_inverter_energy_day # Totaal opgewekt deze dag (enige echte belangrijke)
        unique_id: 12345PV
        unit_of_measurement: kWh
        slave: 3
        address: 30517 # Daily yield (Wh) [E-heute]
        count: 4
        scale: 0.001
        state_class: total_increasing
        device_class: energy
        precision: 2
        data_type: int64

I'm not sure if this is the same thing you are using? I found out that my inverter doesn't have the ability to be connected through web, but only through modbus.

from hassio-sma-em.

kellerza avatar kellerza commented on June 26, 2024

Are you sure you are getting this from your SMA-Energy Meter? (SMA-EM)

It seem like you are rather reading information from an Inverter with your config snippet?

from hassio-sma-em.

forg1vr avatar forg1vr commented on June 26, 2024

Stumbled across this hopefully useful tool. Currently I am reading out my SMA inverter via Modbus, that is all working fine.
But I would also like to read out the home manager - got the version 2.0.

Does anybody know if this rep is also working with 2.0, instead of the "original" one? @kellerza thoughts?

from hassio-sma-em.

Tomi05-k avatar Tomi05-k commented on June 26, 2024

Wichtig zu ergänzen ist, dass man oben bei Ansicht auf Erweiterte Konfiguration geht. Sonst wird der Punkt nicht angezeigt und man sucht wie ich 2h danach.
Bildschirmfoto 2024-01-08 um 21 52 17

Viele Grüße Tom!

from hassio-sma-em.

Related Issues (20)

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.