-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Please could you please include Values from the SMA Energy Meter for people without the Home Manager? #12
Comments
Based on the title, it sounds like you have an SMA Energy Meter in addition to your inverter. Is that right? If so: that should work out of the box, at least according to SMA's own documentation at https://developer.sma.de/fileadmin/content/global/Partner/Documents/SMA_Labs/EMETER-Protokoll-TI-en-10.pdf. But in your comment you only listed an inverter? |
Hi, Yes, I have the SMA Energy Meter with the Sunnyboy 6 inverter. I have enabled the modbus and can confirm this as it works with the old SMA plugin. When I enable your plugin i get this in the log over and over again and I have to disable the plugin to get homebridge working again: Thanks for replying. |
Could you post a photo of your SMA Energy Meter? 🙏 P.S.: you definitely don't sound dumb! This can get pretty confusing 😊 |
That's odd, based on the photo and SMA's documentation, this should work just fine! 😬 Could you please:
|
Can you please update to https://github.com/wimleers/homebridge-sma-home-manager/releases/tag/1.1.3 and share the logged |
I'm at F1 in Melbourne all weekend. When I'm back on Monday I'll get on it. Thanks again. |
That all looks fine 😬 (Very similar to what I see!) Your solar inverter is also of the exact same series as mine — you just have the 6 kW one, I have the 5 kW one. Could you please:
(I still suspect that this is a pure networking problem. i.e. that it's impossible for the computer on which you have Homebridge running to receive multicast packets from the Energy Meter.) |
Just to note and maybe it got missed in previous conversations just so we're not talking about two different things. I only have the inverter and energy meter. No energy manager. Hence why I just wanted to see valves and not controller the energy use like your plugin offers. With the old SMA plug-in I could see current generation and daily yield. With your plug-in you get a lot more info. I would also like to see current usage in addition to the generation and yield. If we can't get it worked out I don't want to waste your time. You've done a great job with this plug-in and I'm sure you've got bigger fish to fry. EnergyMeter(Ethernet)>Inverter(wifi)>router/modem(wifi)>homebridge(wifi) Thanks again. |
That all looks fine 👍
Yep!
Well that's the thing: the Home Manager and Energy Meter should be identical as far as this Homebridge plugin is concerned! The only difference is that the Home Manager can independently send signals to devices. For example, for me it controls my heatpump.
Do you have a single router/modem, no other WiFi access points? |
Just the one router/modem and that is the only access point. The modem does have 2 SSID's for 2.4Ghz and 5Ghz but both the inverter and homebridge are on 2.4. |
That's for sure puzzling 🤔 It's a mystery to me why your homebridge instance wouldn't receive the multicast packets that your energy meter is broadcasting via IP multicast… After some more pondering, I thought of one way this could still not work for you: is it possible that the device running Homebridge has:
If you're up for it: install Wireshark and observe! 😄 |
Hey, Checked it is IPv4 and no multiple connections to network. I'll have to install wireshark to see what's happening. Thanks, |
Okay. To clarify: if there were multiple connections, it would have been possible that this plugin was not correctly listening for multicast on all network connections. But if there's only a single one, I don't see how that's possible. See homebridge-sma-home-manager/index.js Lines 573 to 620 in 5a3bd37
Actually, there's one thing you could try to do, change: this.socket.on('listening', function() {
this.socket.addMembership(this.homeManagerAddress);
this.multicastMembershipIntervalId = setInterval(this._keepMembershipActive.bind(this), 120*1000);
}.bind(this)); to: this.socket.on('listening', function() {
console.log('NOW LISTENING!');
this.socket.addMembership(this.homeManagerAddress);
this.multicastMembershipIntervalId = setInterval(this._keepMembershipActive.bind(this), 120*1000);
}.bind(this)); to get a log entry to know for sure that the plugin actually started listening. (But really, if it fails, then we should see Log entries generated by the P.S.: one thing I didn't ask you to try yet, is running Homebridge in debug mode. That will generate more log entries and maybe that contains a helpful hint! |
If this issue is not resolved yet you may check the configuration of the energy meter. it is possible to change the multicast destinationthere . Maybe that has been changed. Sometimes installers change that to a unicast address of the inverter to overcome issues with powerline bridges which do not alway handle multicasts correctly (IGMP issue) |
I don't have a Home Manager as I don't really require it.
As the Old SMA plugin had I can see my current PV generation and Daily Yield. I would love to have the information like what my house is currently using, what's being fed into the grid plus daily yield and generation. I understand your plugin is to be able to control your homes energy usage using automations via the home app. For someone like me being able to see the value I have request is also a great help. Doing it all in the home app would be great rather than having to use the clunky SMA Energy app.
Inverter:
The text was updated successfully, but these errors were encountered: