Comments (14)
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](https://private-user-images.githubusercontent.com/136431565/271032571-d3a884c9-c0c8-4719-8480-973484b73433.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTcwNzA5MTAsIm5iZiI6MTcxNzA3MDYxMCwicGF0aCI6Ii8xMzY0MzE1NjUvMjcxMDMyNTcxLWQzYTg4NGM5LWMwYzgtNDcxOS04NDgwLTk3MzQ4NGI3MzQzMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNTMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDUzMFQxMjAzMzBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZTllY2M4YzJhZTZiZjQ0ZmQzZDhjNDZjYmE0OTcxYzUxYTM3ZmYxNTYwODE2NmFmMzhjYTFjOTE2MTBmMmJiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.k8JRidBsl-av_W1OEI5MWjCi0xV5XfgHgSyfnLMsblw)
![image](https://private-user-images.githubusercontent.com/136431565/271031585-a54ca830-1997-4c22-8903-da78ba31f3a4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTcwNzA5MTAsIm5iZiI6MTcxNzA3MDYxMCwicGF0aCI6Ii8xMzY0MzE1NjUvMjcxMDMxNTg1LWE1NGNhODMwLTE5OTctNGMyMi04OTAzLWRhNzhiYTMxZjNhNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNTMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDUzMFQxMjAzMzBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMjQwMDAwZWEyODYzNGZlYjAzNGI5YzAwZjE3YzAxZDU2ZTkxNTQxOTQwOGJmNDg1M2JjNTVkMWQ2OTNhZTZjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.LTOSa4yvUPLA_jtsO8RLHnzFeknZzr6KKrfkbh5xMXY)
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](https://private-user-images.githubusercontent.com/136431565/271031646-97630fec-98bb-419d-98a7-550894612480.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTcwNzA5MTAsIm5iZiI6MTcxNzA3MDYxMCwicGF0aCI6Ii8xMzY0MzE1NjUvMjcxMDMxNjQ2LTk3NjMwZmVjLTk4YmItNDE5ZC05OGE3LTU1MDg5NDYxMjQ4MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNTMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDUzMFQxMjAzMzBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04YjAxZTgxMjhmNTAzYjgyZWM2MjY4ZDQ4ZTYzMTg3MjRiZjAwOTM4YTI0MjI1ZGRkN2Q2MGUwMjBlNmU4ZThjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.0icO5MHFnNYdYv8M5Y-7fnMRkOaCloE41B5A42UYf90)
from hassio-sma-em.
Can you post the log from the SMA-EM addon?
from hassio-sma-em.
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.
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.
What do you mean with 'Wired up'?
I've enabled debug (again). I had it on before, but tried reinstalling everything.
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.
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.
I'll take it that MQTT is working.
from hassio-sma-em.
You don’t get anything from the energy meter… (mqtt is not involved yet)
from hassio-sma-em.
https://github.com/datenschuft/SMA-EM
Do I need to install the above manually?
from hassio-sma-em.
@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.
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.
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.
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?
- This addon is for the SMA-EM only, it receives data through multicast - https://github.com/kellerza/hassio-sma-em
- There is also pysma, that uses the WebConnect interface - https://github.com/kellerza/pysma (this is integrated into Home Assistant) - but will not work with Modbus
from hassio-sma-em.
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.
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.
Viele Grüße Tom!
from hassio-sma-em.
Related Issues (20)
- Provide docker image HOT 1
- not showing current right HOT 1
- consume and consumecounter have wrong device_class HOT 5
- Resolution of counter Variables HOT 3
- My SMA-meter is not being found HOT 15
- SMA and METER problem solved!!!!! HOT 2
- CPU usage raise up to (100% of one Core of the Host) 50% of HA CPUs and stays until restart this Addon HOT 1
- Can't edit fields HOT 4
- No sensors in the MQTT HOT 5
- Tripower X and SMA-EM HOT 1
- Bekomme plötzlich keine Daten mehr. HOT 3
- How much energy is feed to grid? HOT 1
- Wrong device class for Current. HOT 2
- Add-On suddenly stopped working HOT 8
- Warning: is using native unit of measurement 'A' which is not a valid unit for the device class ('energy') HOT 3
- Could this add-on be used without an MQTT server? HOT 1
- Configure threshold below current minimum of 10 HOT 1
- Energy Meter in a subnet HOT 1
- Advice for manual installation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hassio-sma-em.