AnotherDaniel / smahub

SMAHub is a flexible and modular solution for collecting data from SMA photovoltaic (PV) products and publishing it to various output channels, such as MQTT.
GNU General Public License v2.0
28 stars 8 forks source link

No data SHM2 #25

Open bobynator93 opened 8 months ago

bobynator93 commented 8 months ago

Unfortunately, I do not receive any data from the Home Manager. What could this message mean?

(.venv) root@smahub:~/smahub# python3 src/smahub.py --verboser
2024-01-01 20:21:18 DEBUG    Verbose output enabled
2024-01-01 20:21:18 DEBUG    Found .conf file for SHM2 plugin
2024-01-01 20:21:18 DEBUG    Found .py file for SHM2 plugin
2024-01-01 20:21:18 DEBUG    Found .conf file for EVCharger plugin
2024-01-01 20:21:18 DEBUG    Found .py file for EVCharger plugin
2024-01-01 20:21:18 DEBUG    Found .py file for demo plugin
2024-01-01 20:21:18 DEBUG    Found .conf file for demo plugin
2024-01-01 20:21:18 DEBUG    Found .conf file for TripowerX plugin
2024-01-01 20:21:18 DEBUG    Found .py file for TripowerX plugin
2024-01-01 20:21:19 DEBUG    Found .conf file for ha_mqtt plugin
2024-01-01 20:21:19 DEBUG    Found .py file for ha_mqtt plugin
2024-01-01 20:21:19 DEBUG    Found .py file for gen_ha_sensors plugin
2024-01-01 20:21:19 DEBUG    Found .conf file for gen_ha_sensors plugin
2024-01-01 20:21:19 DEBUG    Found .py file for demo plugin
2024-01-01 20:21:19 DEBUG    Found .conf file for demo plugin
2024-01-01 20:21:19 DEBUG    Found .conf file for mqtt plugin
2024-01-01 20:21:19 DEBUG    Found .py file for mqtt plugin
2024-01-01 20:21:19 INFO     Starting SHM2 source
2024-01-01 20:21:19 INFO     EV Charger plugin disabled
2024-01-01 20:21:19 INFO     demo source plugin disabled
2024-01-01 20:21:19 INFO     Tripower X plugin disabled
2024-01-01 20:21:19 INFO     HA-MQTT sink plugin disabled
2024-01-01 20:21:19 INFO     gen_ha_sensors sink plugin disabled
2024-01-01 20:21:19 INFO     demo sink plugin disabled
2024-01-01 20:21:19 INFO     Starting MQTT sink
2024-01-01 20:21:19 CRITICAL MQTT broker unknown error: [Errno 101] Network is unreachable
2024-01-01 20:21:51 DEBUG    unknown datatype: measurement 29697 datatype unknown raw_type 63
2024-01-01 20:21:51 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:21:51 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:21:51 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:23:01 DEBUG    unknown datatype: measurement 29697 datatype unknown raw_type 63
2024-01-01 20:23:01 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:23:01 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:23:01 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:24:01 DEBUG    unknown datatype: measurement 29697 datatype unknown raw_type 63
2024-01-01 20:24:01 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:24:01 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:24:01 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:25:11 DEBUG    unknown datatype: measurement 29697 datatype unknown raw_type 63
2024-01-01 20:25:11 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:25:11 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:25:11 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:26:11 DEBUG    unknown datatype: measurement 29697 datatype unknown raw_type 63
2024-01-01 20:26:11 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:26:11 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:26:11 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
AnotherDaniel commented 8 months ago

Hard to say from this log - what is your setup? Which device are you monitoring, which MQTT broker are you publishing to, are these reachable from the device that is running smahub, what config are you using? (don't need any passwords or anything, but network-related config items might be helpful).

bobynator93 commented 8 months ago

There is a message about MQTT Broker but my problem is not related on MQTT. At this time my MQTT Broker was offline. SMA Hub cant receive data from Sunny Home Manager 2. Or it does receive something, but its not able to dealt with it. It always says:

2024-01-01 20:26:11 DEBUG    unknown datatype: measurement 29697 datatype unknown raw_type 63
2024-01-01 20:26:11 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:26:11 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0
2024-01-01 20:26:11 DEBUG    unknown datatype: measurement 0 datatype unknown raw_type 0

Dont have any custom settings..

[plugin]
enabled = true

[behavior]
updateFreq = 2
sensorPrefix = SHM2.

I found this, someone have the same issue.. https://hausbau-becker.blogspot.com/2020/05/fachartikel-sma-energy-meter-home.html?showComment=1635160246864#c17805643992600647

AnotherDaniel commented 8 months ago

Hm, unfortunately all the links and files referenced in that thread are dead; I've asked one of the posters whether he can support details on how he solved this, let's see if we get lucky.

Do you know which SW version your SHM2 is running?

bobynator93 commented 7 months ago
Parameter Wert
Firmware-Version des Hauptprozessors 2.13.6.R
Firmware-Version des Betriebssystems 4.01.0.R
Firmware-Version 2.13.6.R
Version des Webconnect 1.05.5.R
AnotherDaniel commented 7 months ago

I'm running the same firmware, so that is something at least. Still having the issue? I think this would need a way for your installation to output frame data from the SHM2 that it's trying to decode, that you would then send to me for having a look...

AnotherDaniel commented 7 months ago

Ok; in my setup I also do get an occasional 'measurement 0 ...' output. No real idea what causes this to be honest, maybe the occasional bad/offset data frame?

I do not know what this 'measurement 29697' is about; I'm not seeing that, and while I cannot yet find any relevant speedwire specification, I also couldn't find any reference to that value in the speedwire libraries I've looked at so far.

Anyhow - your core issue is before that I'd say, the CRITICAL error message. Did you get this to work by now? If now, can you talk a little bit about your network setup? (what is trying to talk to what, etc)