SMA Energy Meter in Home Assistant

Stefan
I have that add on. I had previously read that it doesn’t connect to Home Manager. I just installed the beta version and no - doesn’t connect to home manager 2.0
Pat

Do you have a switch in between or something similar, because normally the device should appear in your router. Sometimes the devices are a bit stubborn. I would try unplugging the device and plugging it back in or resetting it. I know this from the HM1, where I suddenly had problems with the connection for inexplicable reasons.

I can see the device in the router (unifi network) but I can’t navigate to the device through IP.

Have you looked at the links I gave you or described your problem in the forum? Unfortunately, I can only recommend that because I no longer use SMA.
As already described, I also had problems even though I had been using the device for several years.

I am using the SMA Energy Meter Add-On to read data from my SMA Home Manager 2 - and it (nearly) works great through the Mosquitto MQTT broker into my Raspberry Pi 4-based Home Assistant.

My only problem with it is I get ā€œspikesā€ of high power on ā€œpconsumeā€ every 30 minutes (+/1 one minute) (which can affect my integral to kWh). The spikes on ā€œpconsumeā€ come from spikes on ā€œp2consumeā€ (but p1consume and p3 consume are fine).

As you can see below, there are spikes on p2consume - but u2 and i2 are fine. I can’t imagine the Home Manager is making a computational error - but I’ve no idea where the problem can be occuring.

I can start dreaming of ways to filter the spikes out, but of course, it would be better to eliminate them at the source.

Anyone have any ideas ?

Ian

Hello,
I’m trying to create an Esp/Tasmota based emulation of an SMA meter. My cabinet is full and I already have all necessary info from the P1 port of the utility meter. I found several examples of such an emulation and based my implementation on those. However my inverter still indicates faulty communication for the speedwire meter. Can somebody post a hex dump of a udp packet of an actual SMA meter. That would be of great help.

I already found a solution, thanks to the excellent speedwire library at GitHub - RalfOGit/sma-emeter-simulator: An SMA(TM) emeter simulator written in C++.

just fyi, i had a lot of problems with the sma integrations but the follow integration (HACS) solved all my problems : GitHub - littleyoda/ha-pysmaplus: home assistant custom integration for pysma-plus also the Home Manager is now working perfectly without modbus etc.

1 Like

The update that occurred yeterday has broken my SMA Energy Meter. Even with the watchdog turned-on, the add-on stops within a minute or 2 of being restarted. The MQTT data gets updated, but then the logs show this:

00:12:50 INFO - p3supply every 60s
00:12:50 INFO - cosphi every 60s
00:12:52 WARNING Unknown SMA serial number 4294967295. If you want to use this device,please add SERIAL_NR and HA_PREFIX to SMA_DEVICES
00:13:01 ERROR MQTT: Home Assistant not online. Topic homeassistant/status is empty
[00:13:01] WARNING: Halt add-on with exit code 1
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

The unknown SMA serial number changes each occurrence - I don’t have any devices with numbers anywhere near that large.

MQTT is certainly still active - MQTT Explorer shows other devices still updating.

Where can I find the previous version of the add-on to install ?