smahub icon indicating copy to clipboard operation
smahub copied to clipboard

No data SHM2

Open bobynator93 opened this issue 1 year ago • 6 comments

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

bobynator93 avatar Jan 01 '24 20:01 bobynator93

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).

AnotherDaniel avatar Jan 02 '24 20:01 AnotherDaniel

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

bobynator93 avatar Jan 12 '24 10:01 bobynator93

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?

AnotherDaniel avatar Jan 12 '24 19:01 AnotherDaniel

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

bobynator93 avatar Jan 18 '24 08:01 bobynator93

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 avatar Feb 04 '24 21:02 AnotherDaniel

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)

AnotherDaniel avatar Feb 09 '24 20:02 AnotherDaniel