Comments (23)
How can i install the fixed version?
Over the iobroker webui and then adapters - custom url?
I have installed and use this url: https://github.com/TGuybrush/ioBroker.sma-em.git
- i see some install log entrys
$ ./iobroker url "https://github.com/TGuybrush/ioBroker.sma-em" install https://github.com/TGuybrush/ioBroker.sma-em/tarball/cd6640186265430d888c7d0f1c3c6dcf40bfe26d NPM version: 6.14.8 npm install https://github.com/TGuybrush/ioBroker.sma-em/tarball/cd6640186265430d888c7d0f1c3c6dcf40bfe26d --loglevel error --prefix "/opt/iobroker" (System call) upload [5] sma-em.admin /opt/iobroker/node_modules/iobroker.sma-em/admin/words.js words.js application/javascript upload [4] sma-em.admin /opt/iobroker/node_modules/iobroker.sma-em/admin/tsconfig.json tsconfig.json application/json upload [3] sma-em.admin /opt/iobroker/node_modules/iobroker.sma-em/admin/style.css style.css text/css upload [2] sma-em.admin /opt/iobroker/node_modules/iobroker.sma-em/admin/sma-em.png sma-em.png image/png upload [1] sma-em.admin /opt/iobroker/node_modules/iobroker.sma-em/admin/index_m.html index_m.html text/html upload [0] sma-em.admin /opt/iobroker/node_modules/iobroker.sma-em/admin/admin.d.ts admin.d.ts video/mp2t process exited with code 0
But now i don't see the sma-em in the iobroker - instances?
- any hints how i can install this version?
Regrads to monkey island :-)
from iobroker.sma-em.
Hi,
I think that show that the installation works fine (exit code 0).
However you have to create an instance of the adapter before usage.
The update just overwrites the normal sma-em adapter.
Go to the adapter page and create an instance of it.
If you had already an instance it wil be updated an restarted automatically.
You can easily check if the new adapter is active by checking the availability of the frequency object which was newly introduced in this version.
Best regards
from iobroker.sma-em.
Hi TGuybrush.
"The update just overwrites the normal sma-em adapter."
-> this was the solution :-)
After some hours, i think the modifyed code works well. I see the frequency object.
All value are correct...
from iobroker.sma-em.
Installed it due to connection lost problem in previous version. But Version number is still 0.5.7?
Is it possible to reach out for the forecast values you see in SunnyPortal App?
from iobroker.sma-em.
@TGuybrush
I installed the new version from https://github.com/TGuybrush/ioBroker.sma-em.git
It seemed to work as expected regarding the states and values of my SHM:
However, it did not correctly detect my SMA Energy Meter which I have in my system. The Master Version did this:
It seems that the new implementation is not able to handle more than one SEM or SHM.
In one instantiation it found the SEM but intermittently displayed the values of the SEM alternating it with the values of the SHM.
In another instantiation it found the SHM but did not find the SEM nor diplayed the values of the SEM alternatingly.
Having two instances of the SMA-EM Adapter did not work either. The second instance would not go online due to an UDP connection error.
Please fix this issue before merging this PR into the Master.
I would also like to ask you to truncate the display of the values to a fixed sensible number of decimals. Values like 826.8856999999999 kWh do not make much sense in the display. Also it makes reading fast-changing values difficult as the number of displayed decimals changes rapidly.
I am certainly willing to test your new version in my environment.
from iobroker.sma-em.
Thx for the feedbacks.
The version number will be increased in the next revision.
The adapter binds to one multicast IPv4 address. IPv4 Multicast is designed as a one point to multipoint connection.
That means in fact it is not usual that two devices send data over the same multicast address in the same network.
However the multicast address of the SMA adapter cannot be changed easily, therefor I will try to fix that problem in the next version for testing.
from iobroker.sma-em.
@TGuybrush
Understood. It would be good enough if your adapter would behave in the same way as the current version does:
Build a tree for each SMA Device from which it receives multicasts.
from iobroker.sma-em.
I've pushed an updated version to my account. Please feel free to test it again to give feedback on the changes and bug fixes.
from iobroker.sma-em.
@TGuybrush
Great, I have immediately tried it out.
Thumbs up for your new version 0.6.0. It now detected my SHM and SEM correctly
and showed&updated the values as expected. (see screenshot).
There was some strange behavior on first start up (see screenshot). Of course I removed the old instance before.
When I deleted the misbehaving new instance and instantiated a new one, it started just fine. So I believe that the
initial problem might be due to the fact that I installed the version 0.6.0 over the existing 0.5.7.
However, I would like to ask you for some cosmetic changes:
- please show the units of all the power-values as W (not as Watt) analoguous to the energy values (kWh)
- please show the reactive power value units as VAr (not as var)
- please truncate the energy values (kWh) to 3 digits and the power values (W) to 1 digit after the decimal point.
- please truncate the reactive power values (VAr) and the apparent power values (VA) to 1 digit after the decimal point.
Truncating the respective counter values to 3 digits after the dp should be sufficient. - truncating cosphi and Hz values to 3 digits after the decimal point should be sufficient
- please abbreviate the text in the Name column of the Objects admin screen
e.g. "SMA Energy Meter with serial number: 3009872298" to e.g. "SMA Energy Meter S/N: 3009872298"
because the interesting part (the S/N) becomes easily hidden if the Name column is tight on smaller screens.
Is there a way to discern a SHM from a SEM somehow? Then it would be nice if you would reflect that in the Name column of the respective device.
I would also like to ask, if it is normal that in extended mode the values are updated rapidly for a few (10) seconds
and then they remain stable for about 50s
I will continue to let the adapter run in my environment and report any strange behavior here.
from iobroker.sma-em.
Thx for the feedback.
I've pushed a new version targeting the following issues.
- Error message
- All units are named according to the SI system (DIN 1302).
- The description string of the top-level hierarchy indicates if the device is a Home Manger or an Energy Meter
Number truncation:
For me it does not make any sense to truncate the numbers in the database since that is an option of the GUI application.
The object browser has sometimes a latency for displaying the values. Therefore the update time and the display time can be very different. I see no issue there.
from iobroker.sma-em.
@TGuybrush
Wow, that was quick. Thank you for implementing these improvements. I installed 0.6.1 and now it is running in my production environment. Up to now I saw no further problems. From my point of view 0.6.1 could be merged to master.
from iobroker.sma-em.
@TGuybrush
This morning the values of the SHM would not update. (screenshot)
Not even a restart of the adapter nor of the iobroker would help. The SHM is active, though.
from iobroker.sma-em.
@TGuybrush
It seems that the reason for this effect was the browser and or Windows 10. After rebooting the Notebook and restarting Chrome it now seems to update correctly. Sorry if this caused you any extra effort.
from iobroker.sma-em.
@TGuybrush
I just installed your new version (even the normal version 0.5.7 still working for me ... only the details of L1/2/3 not after the update of SMA)
thanks for taking this up again :-)
the installation is running well:
but the instance can not start: I'm running a docker installation on a synology
from iobroker.sma-em.
sorry my bad ... I updated the node version to 12.20.1 ... now everything is running well :-)
thanks for your work on the update of the adapter
from iobroker.sma-em.
Thx folks for testing.
I suggest to accept the pull request to update the version in the official repository.
from iobroker.sma-em.
please retest with new version
from iobroker.sma-em.
@TGuybrush
I saw that the version 0.6.1 does not show the frequency value for SEM, but for SHM it does. This problem was already mentioned in issue #13 Since I have just recently aquired the SEM, I suppose that it is a current model. It is true (like TJJochen claims in #13) that the current model of the SMA EnergyMeter Type 20 apparently supports mains frequency. On the internal web interface, the frequency is always displayed under instantaneous values. However I do not know if it also multicasts it on the LAN interface like the SHM. TGuybrush do you know that? and if so is it possible to fix this behavior?
from iobroker.sma-em.
Unfortunately I have no further documentation of the SEM. However the adapter creates a log entry if it detects an unknown data point in the received UDP package. Please check the log if you see a message from the SEM.
from iobroker.sma-em.
@TGuybrush
I started the instance several times with different log levels, but did not see anything suspicious. Maybe you do:
It seems that the frequency datapoint is created for the SEM just like for the SHM, but it receives no values (value field is empty):
Do you have an idea why?
from iobroker.sma-em.
I don't see any useful message either. That means the frequency value is not included in the UDP message in case of SEM. Therefore I see no possible to get the frequency value for the SEM.
from iobroker.sma-em.
@TGuybrush
Yes, I agree. It seems that the SEM, despite the fact that it has firmware 2.0 (in my case 2.0.18.R - do you know if this is the latest version?) and thus should adhere to the EMETER 20 protocol, it seems that it does not multicast the frequency in the same way as the SHM does.
Do you have a way to trace the raw datagrams? I mean like http://www.eb-systeme.de/?page_id=3005
Then maybe it might be possible to finally decide that the frequency is not included in the SEM datagrams.
from iobroker.sma-em.
@TGuybrush
We have a new issue #117 pending for version 0.6.1. Since we do not have appropriate hardware to debug this special case I would like to ask you whether you would look into issue #117
from iobroker.sma-em.
Related Issues (20)
- SMA-EM findet Multicast nicht: UDP Socket error: Error: bind EADDRINUSE 0.0.0.0:9522 HOT 5
- Two Interfaces attached to iobroker/Raspi: SMA-EM listen on wrong Interface HOT 20
- Hello,
- No reading of Pregard with HM 2 HOT 2
- How can I see the current performance HOT 1
- Communication fault HOT 3
- Verbindung zu Home Manager 2 nicht möglich HOT 3
- Netzwerkfehler beim Start (EADDRINUSE / Docker) HOT 19
- Instance sma-em.0 in Multihost Modus is not starting on Master HOT 3
- Update stable version in repo from 0.0.0 to 0.7.0 HOT 3
- Voltage is displayed wrong after update 0.7.0 HOT 13
- Objects "last_message" and "timetick" do not update anymore since update to 0.7 HOT 8
- Stromwerte nur Positiv HOT 1
- Falsche Werte aus SHM 2.0 (psurplus) HOT 4
- psurplus datafields shows values that not real and there. HOT 12
- Fehler Invalid own IP address 192.168.179.101, please try another one from the Multicast Settings configuration panel HOT 8
- enhancement: Extend Adapter for simulating SMA eMeter HOT 3
- Please consider fixing issues detected by repository checker HOT 2
- psurplus value wrong HOT 6
- Compatibility check and testing for node.js 22 HOT 1
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 iobroker.sma-em.