iobroker-community-adapters / iobroker.sma-em Goto Github PK
View Code? Open in Web Editor NEWioBroker Adapter for SMA Energy Meter & Sunny Home Manager 2
License: MIT License
ioBroker Adapter for SMA Energy Meter & Sunny Home Manager 2
License: MIT License
@GermanBluefox
I have found a page in which the new protocol is described.
http://www.eb-systeme.de/?page_id=3005
Would it be possible that the new and the old protocol would be readable. Since I still have an energy meter that delivers the old protocol
Describe the bug
L1: always show 5000 Watts
Regardcounters show silly values, sum values are correct
To Reproduce
use Adapter with Sunny Home Manager 2
Expected behavior
correct values also in single phases
Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.
Versions:
There is no URL or Link to install
Hallo,
ich bekomme alle 30 Minuten folgende Warnung:
`
sma-em.0 | 2021-03-05 22:53:45.261 | warn | (5260) Unkown OBIS value 7401228 found in UDP packet. Skip it and going to the next OBIS value. |
---|---|---|---|
sma-em.0 | 2021-03-05 22:53:45.261 | warn | (5260) Unkown OBIS value 4194304 found in UDP packet. Skip it and going to the next OBIS value. |
sma-em.0 | 2021-03-05 22:53:45.260 | warn | (5260) Unkown OBIS value 3195048 found in UDP packet. Skip it and going to the next OBIS value. |
sma-em.0 | 2021-03-05 22:53:45.259 | warn | (5260) Unkown OBIS value 2097152 found in UDP packet. Skip it and going to the next OBIS value. |
sma-em.0 | 2021-03-05 22:53:40.419 | warn | (5260) Unkown OBIS value 7401228 found in UDP packet. Skip it and going to the next OBIS value. |
sma-em.0 | 2021-03-05 22:53:40.418 | warn | (5260) Unkown OBIS value 4194304 found in UDP packet. Skip it and going to the next OBIS value. |
sma-em.0 | 2021-03-05 22:53:40.418 | warn | (5260) Unkown OBIS value 3195048 found in UDP packet. Skip it and going to the next OBIS value. |
sma-em.0 | 2021-03-05 22:53:40.418 | warn | (5260) Unkown OBIS value 2097152 found in UDP packet. Skip it and going to the next OBIS value. |
` |
Was kann das sein?
I have the experience, that the adapter is not working (receiving any multicast data) if more than one network interface is available on the host. Probably the socket select only one of them and chooses the wrong in my case.
Defining the target network fixes the issue:
client.addMembership(this.config.BIP, '<HOST-IP>');
Hello after update on Node.js v10.16.3 the adapter does not start anymore.
Log:
log.txt
Dear Adapter developer,
with js-controller 3.2 and js-controller 3.3 some additional checks were added to make sure that created objects match to the specifications and also written state values match to the object definition.
If something is not correct this is logged as 'warning' or 'info' log.
Please take the time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn log there from these checks please adjust the adapter and fix the relevant cases.
For questions please refer to ioBroker/ioBroker.js-controller#1301
Additionally we are preparing Admin 5 which will have a completely rewritten UI. Please install Admin 5, activate that new UI and verify that the configuration of you adapter works as expected also there.
More informations on Admin 5 can be found in Forum https://forum.iobroker.net/topic/44282/test-adapter-admin-5-0-x-alpha-der-neuen-ui
Please close the issue after you checked it.
Thank you very much for your support!
Is it also possible to include the datapoint of the mains frequency in the adapter? Thank you
sma-em.0 2021-08-25 14:04:20.659 | info | State value to set for "sma-em.0.xxxxxxx.psurpluscounter" has to be type "state" but received type "number"
sma-em.0 | 2021-08-25 14:04:20.658 | info | State value to set for "sma-em.0.xxxxxx.psurplus" has to be type "state" but received type "number"
I've revised the core of the adapter to solve the problem of invalid status data #34 .
In addition I've added the frequency value.
Please test the new version and provide feedback on it.
The new version can found in my repository
https://github.com/TGuybrush/ioBroker.sma-em.git
After some testing the version will be hopefully merged in the official repository.
Dear Adapter developer,
with js-controller 4.0 object definitions are now also checked that min/max in only provided for number/mixed objects and that the type of the default value matches to the object type.
If something is not correct this is logged as 'warning' or 'info' log.
Please also make sure to update to the lastest @iobroker/testing dependency 2.5.4 or to accept the PR from Apollon77 for legacy testing!
Please spent some time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn or info log there from these checks please adjust the adapter and fix the relevant cases.
For questions please refer to ioBroker/ioBroker.js-controller#1749
Please close the issue after you checked it.
Thank you very much for your support to get the best experience for the growing numbers of ioBroker users!
For Admin3 some changes are needed: see http://forum.iobroker.net/viewtopic.php?f=24&t=10268
Describe the bug
Adapter ist installiert, Multicast des Sunny Home Managers 2 wurde nicht gefunden, da bei 0.0.0.0:9522 gesucht wird. Die Original Adresse 239.12.255.254 wurde nicht verändert
To Reproduce
Einfach den Adapter starten, er wird dann automatisch mit dem Fehler UDP Socket error: Error: bind EADDRINUSE 0.0.0.0:9522 beendet. Ein iOS App auf meinem Display zeigt mir die Daten einwandfrei und ohne Verzögerung an.
Expected behavior
Gerät verbindet sich nicht mit dem Dienst
Screenshots & Logfiles
Wie oben geschrieben UDP Socket error: Error: bind EADDRINUSE 0.0.0.0:9
Versions:
Is it possible to integrate the Data of the Electricity consumers, which are controlled by the EM (SHM2.0)?
What Information is necessary to integrate this topic?
Data over Webui of the EV Charger 22:
Momentanwerte - My plant - 2021-01-20.txt
Dear all
I would like to calculate the total power consumption of the house with Node Red it is displayed in the SMA App on the lower right side.
Has anybody an idea what objects I need to consider in the calculation. I started a trial but it is quite try and error because the values in the app change as well as in the adapter.
Thanks!
In the iOS app i have the information about the consumption of consumers. eg. my heat pump is listed as non-controllable consumer with consumption in Watt. Is there any chance to get thin information into ioBroker?
Hello,
is it possible to read objects from the Sma ev charger without the Sunny Home Manager?
Dear Adapter develop,
Node.js 14 is now available for a year and Node.js 16 was release just some days ago and will become LTS by October 2021. We plan to update the ioBroker Node.js recommendation (currently 12.x) to 14.x later this year.
Please check your adapter with Node.js 14 especially, and ideally also directly with Node.js 16
Please add both versions to the adapter testing which is executed on commits.
If your adapter requires a certain minimum version of Node.js please set the 'engine' setting in package.json accordingly! Please also do this if the adapter is not able to work in certain Node.js versions, so that ioBroker can prevent users from installing te adapter if not compatible!
On questions please talk to us at ioBroker/ioBroker.js-controller#1138
Please close the issue after you checked it.
Thank you very much for your support!
We have detected that your adapter supports the compact mode. Please use the latest js-controller 2.0 and verify that everything works.
Some more information what is important to check can be found at ioBroker/ioBroker.js-controller#512
On questions please answer to the linked issue. Please close this issue after your test and add the version number that you have tested please as a comment.
Thank you for your support.
Hi there,
I get the following error message. Is the adapter still up-to-date and functional?
host.pi | 2021-01-03 17:29:56.211 | info | Update repository "Stable (default)" under "http://download.iobroker.net/sources-dist.json" |
---|---|---|---|
sma-em.0 | 2021-01-03 17:28:01.488 | warn | (5740) This object will not be created in future versions. Please report this to the developer. |
sma-em.0 | 2021-01-03 17:28:01.487 | warn | (5740) Object sma-em.0.1900204704.psurpluscounter is invalid: obj.common.type has an invalid value (state) but has to be one of number, string, boolean, array, object, mixed, file, json |
sma-em.0 | 2021-01-03 17:28:01.477 | warn | (5740) This object will not be created in future versions. Please report this to the developer. |
sma-em.0 | 2021-01-03 17:28:01.477 | warn | (5740) Object sma-em.0.1900204704.psurplus is invalid: obj.common.type has an invalid value (state) but has to be one of number, string, boolean, array, object, mixed, file, json |
sma-em.0 | 2021-01-03 17:28:01.475 | warn | (5740) This object will not be created in future versions. Please report this to the developer. |
sma-em.0 | 2021-01-03 17:28:01.474 | warn | (5740) Object sma-em.0.1900204704.pregardcounter is invalid: obj.common.type has an invalid value (state) but has to be one of number, string, boolean, array, object, mixed, file, json |
sma-em.0 | 2021-01-03 17:28:01.473 | warn | (5740) This object will not be created in future versions. Please report this to the developer. |
sma-em.0 | 2021-01-03 17:28:01.472 | warn | (5740) Object sma-em.0.1900204704.pregard is invalid: obj.common.type has an invalid value (state) but has to be one of number, string, boolean, array, object, mixed, file, json |
sma-em.0 | 2021-01-03 17:28:01.470 | warn | (5740) This object will not be created in future versions. Please report this to the developer. |
sma-em.0 | 2021-01-03 17:28:01.469 | warn | (5740) Object sma-em.0.1900204704.SMASerial is invalid: obj.common.type has an invalid value (state) but has to be one of number, string, boolean, array, object, mixed, file, json |
sma-em.0 | 2021-01-03 17:28:01.463 | warn | (5740) This object will not be created in future versions. Please report this to the developer. |
sma-em.0 | 2021-01-03 17:28:01.462 | warn | (5740) Object sma-em.0.1900204704 is invalid: obj.common.name has an invalid type! Expected "string" or "object", received "number" |
sma-em.0 | 2021-01-03 17:28:00.689 | info | (5740) Details L1 false Details L2 false Details L3 false |
sma-em.0 | 2021-01-03 17:28:00.688 | info | (5740) Listen via UDP on Port 9522 for Multicast IP 239.12.255.254 |
sma-em.0 | 2021-01-03 17:28:00.634 | info | (5740) starting. Version 0.5.7 in /opt/iobroker/node_modules/iobroker.sma-em, node: v10.23.0, js-controller: 3.1.6 |
host.pi | 2021-01-03 17:27:59.008 | info | instance system.adapter.sma-em.0 started with pid 5740 |
host.pi | 2021-01-03 17:27:56.998 | info | iobroker exit 0 |
host.pi | 2021-01-03 17:27:55.981 | info | iobroker host.pi object system.adapter.sma-em.0 created |
`
Pi 4 (4.1.11)
Describe the bug
I set up the adapter with following parameters:
The adapter does not find our installed Sunny Home Manager 2.0:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
SHM 2.0 should be found on IP 192.168.178.37. Objects should be added and filled with readout of the SHM.
I assume that I might need to activate some kind of API in the settings of the Sunny Home Manager?
After upgrade of JS-Controller to version 3.0.17 and nodejs v12.16.2 i found this entry in the info Logfile.
Can you correct this please.
Thank you
--
sma-em.0 | 2020-04-23 08:53:34.302 | warn | (25365) This will be refused in future versions. Please report this to the developer.
sma-em.0 | 2020-04-23 08:53:34.302 | warn | (25365) The id 1900014133 has an invalid type!: Expected "string" or "object", received "number".
sma-em.0 | 2020-04-23 08:53:33.804 | warn | (25365) This will be refused in future versions. Please report this to the developer.
sma-em.0 | 2020-04-23 08:53:33.804 | warn | (25365) The id 1900014133 has an invalid type!: Expected "string" or "object", received "number".
sma-em.0 | 2020-04-23 08:53:33.300 | warn | (25365) This will be refused in future versions. Please report this to the developer.
Can you please explain each output value (auch gerne auf deutsch) and what is the different between L1, L2 and L3.
Are there values for generated electricity, purchased electricity, consumed electricity and electricity which is feed in?
And can I get these values on a weekly base?
Describe the bug
"Adapterkonfiguration: sma-em.0"
File index.html not found
i have installed the Adapter, but i can't reach the configuration.
Versions:
Hi Guy's,
this is my first message in GitHub and also in thisn area :-).
I have installed the iobroker-adapter and it seems still an invalid state in the interface
Bye Arwed
To Reproduce
I have deleted all adapter and new installed. It seems to be reproduceable.
Expected behavior
Hopefully: a bugfixed release... :-)
Screenshots & Logfiles
sma-em.0 | 2020-05-27 11:43:27.873 | warn | (1886) This object will not be created in future versions. Please report this to the developer. |
---|---|---|---|
sma-em.0 | 2020-05-27 11:43:27.872 | warn | (1886) Object sma-em.0.3004911124.psurpluscounter is invalid: obj.common.type has an invalid value (state) but has to be one of number, string, boolean, array, object, mixed, file, json |
sma-em.0 | 2020-05-27 11:43:27.862 | warn | (1886) This object will not be created in future versions. Please report this to the developer. |
sma-em.0 | 2020-05-27 11:43:27.861 | warn | (1886) Object sma-em.0.3004911124.psurplus is invalid: obj.common.type has an invalid value (state) but has to be one of number, string, boolean, array, object, mixed, file, json |
sma-em.0 | 2020-05-27 11:43:27.859 | warn | (1886) This object will not be created in future versions. Please report this to the developer. |
sma-em.0 | 2020-05-27 11:43:27.858 | warn | (1886) Object sma-em.0.3004911124.pregardcounter is invalid: obj.common.type has an invalid value (state) but has to be one of number, string, boolean, array, object, mixed, file, json |
sma-em.0 | 2020-05-27 11:43:27.857 | warn | (1886) This object will not be created in future versions. Please report this to the developer. |
sma-em.0 | 2020-05-27 11:43:27.856 | warn | (1886) Object sma-em.0.3004911124.pregard is invalid: obj.common.type has an invalid value (state) but has to be one of number, string, boolean, array, object, mixed, file, json |
sma-em.0 | 2020-05-27 11:43:27.854 | warn | (1886) This object will not be created in future versions. Please report this to the developer. |
sma-em.0 | 2020-05-27 11:43:27.853 | warn | (1886) Object sma-em.0.3004911124.SMASerial is invalid: obj.common.type has an invalid value (state) but has to be one of number, string, boolean, array, object, mixed, file, json |
sma-em.0 | 2020-05-27 11:43:27.849 | warn | (1886) This object will not be created in future versions. Please report this to the developer. |
sma-em.0 | 2020-05-27 11:43:27.848 | warn | (1886) Object sma-em.0.3004911124 is invalid: obj.common.name has an invalid type! Expected "string" or "object", received "number" |
sma-em.0 | 2020-05-27 11:43:27.471 | info | (1886) Details L1 false Details L2 false Details L3 false |
sma-em.0 | 2020-05-27 11:43:27.470 | info | (1886) Listen via UDP on Port 9522 for Multicast IP 239.12.255.254 |
sma-em.0 | 2020-05-27 11:43:27.409 | info | (1886) starting. Version 0.5.7 in /opt/iobroker/node_modules/iobroker.sma-em, node: v10.20.1, js-controller: 3.1.4 |
Versions:
/node_modules/iobroker.sma-em, node: v10.20.1, js-controller: 3.1.4
I observ for all objects warnings like:
State value to set for "sma-em.0.1901713852.cosphi" has to be type "state" but received type "number"
IOB version: v 5.1.9
Node version: v12.22.1
NPM version: 6.14.12
JS Version:3.x
Adapter version: 0.6.3
After SHM 2.0 firmware update to 2.08.5R, adpater stop reading values.
The upcoming version 2.0.0 of js-controller will support a new mode for low memory devices. For this, a few minor adjustments to the adapter must be made. Please follow these instructions: https://forum.iobroker.net/viewtopic.php?f=24&t=20387#p213466
In Version 0.5.6 the data points voltage and cosphi of the individual phases L1-L3 are shown interchanged and the ampere data points do not work. Has anyone observed the same problem? Greetz Jochen
Edit: Sorry, Issue already reported
Hi,
the new js-controller 2.0 will come into latest repository in the next days and we want to make sure that all adapters are working well. We already did a 2 weeks Beta test and so some adapter were aleady checked and some needed slight adjustments.
You can find more information in ioBroker/ioBroker.js-controller#482 and in the ioBroker Forum. If you have more technical questions please write in the referenced issue or in the Developer thread please. General questions are best in the genral thread.
Please update your systems to js-controller 2.0 and check your adapter.
Please close this issue once you have checked your adapter or received successfull reports from users.
Thank you very much for your support. Please contact us in the other Threads or Forum on any question.
Hi,
do I see it correct, that there is no value for the current energy production in Watts?
I see current surplus (what I sell) and regard (what I buy) but not what I consume. And this value isn't calculatable as I don't see current production.
Your adapter is already in ioBroker latest repository available to be used by testwilling users. In order to make your adapter also available for the wide user base which uses the stable repository you should also add your adapter to the stable repository. Please see instructions at https://github.com/ioBroker/ioBroker.repositories#requirements-for-adapter-to-get-added-to-the-stable-repository
Thank you for your support.
I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
Thanks,
your automatic adapter checker.
I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
Thanks,
your automatic adapter checker.
Describe the bug
When adding the sma-em it generates many warnings like:
The problem also occurrs when stopping or restarting the adapter via the Instance Tab.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
no warnings should be issued since this is a normal procedure
Screenshots & Logfiles
Log file see below
Versions:
Additional context
2022-02-13 10:25:49.942 - info: host.Jenss-Lifebook(SmartHome) iobroker add sma-em auto --host Jenss-Lifebook(SmartHome)
2022-02-13 10:25:56.671 - info: host.Jenss-Lifebook(SmartHome) iobroker NPM version: 6.14.8
2022-02-13 10:25:56.672 - info: host.Jenss-Lifebook(SmartHome) iobroker Installing [email protected]... (System call)
2022-02-13 10:26:21.247 - info: host.Jenss-Lifebook(SmartHome) iobroker + [email protected]
added 3 packages from 3 contributors and audited 1282 packages in 21.734s
2022-02-13 10:26:22.487 - info: host.Jenss-Lifebook(SmartHome) iobroker
51 packages are looking for funding
2022-02-13 10:26:22.488 - info: host.Jenss-Lifebook(SmartHome) iobroker runnpm fund
for details
2022-02-13 10:26:22.493 - info: host.Jenss-Lifebook(SmartHome) iobroker found 110 vulnerabilities (25 low, 36 moderate, 46 high, 3 critical)
runnpm audit fix
to fix them, ornpm audit
for details
2022-02-13 10:26:22.565 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) install adapter sma-em
2022-02-13 10:26:22.604 - info: host.Jenss-Lifebook(SmartHome) iobroker upload [4] sma-em.admin C:/Program Files/SmartHome5/node_modules/iobroker.sma-em/admin/admin.d.ts admin.d.ts video/mp2t
2022-02-13 10:26:22.695 - info: host.Jenss-Lifebook(SmartHome) iobroker upload [3] sma-em.admin C:/Program Files/SmartHome5/node_modules/iobroker.sma-em/admin/index_m.html index_m.html text/html
2022-02-13 10:26:22.706 - info: host.Jenss-Lifebook(SmartHome) iobroker upload [2] sma-em.admin C:/Program Files/SmartHome5/node_modules/iobroker.sma-em/admin/sma-em.png sma-em.png image/png
2022-02-13 10:26:22.723 - info: host.Jenss-Lifebook(SmartHome) iobroker upload [1] sma-em.admin C:/Program Files/SmartHome5/node_modules/iobroker.sma-em/admin/style.css style.css text/css
2022-02-13 10:26:22.734 - info: host.Jenss-Lifebook(SmartHome) iobroker upload [0] sma-em.admin C:/Program Files/SmartHome5/node_modules/iobroker.sma-em/admin/words.js words.js application/javascript
2022-02-13 10:26:22.761 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em created/updated
2022-02-13 10:26:22.884 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) create instance sma-em
2022-02-13 10:26:22.890 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em.0.alive created
2022-02-13 10:26:22.894 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em.0.connected created
2022-02-13 10:26:22.900 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em.0.compactMode created
2022-02-13 10:26:22.904 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em.0.cpu created
2022-02-13 10:26:22.909 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em.0.cputime created
2022-02-13 10:26:22.913 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em.0.memHeapUsed created
2022-02-13 10:26:22.918 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em.0.memHeapTotal created
2022-02-13 10:26:22.922 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em.0.memRss created
2022-02-13 10:26:22.928 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em.0.uptime created
2022-02-13 10:26:22.932 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em.0.inputCount created
2022-02-13 10:26:22.936 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em.0.outputCount created
2022-02-13 10:26:22.943 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em.0.eventLoopLag created
2022-02-13 10:26:22.947 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em.0.sigKill created
2022-02-13 10:26:22.951 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em.0.logLevel created
2022-02-13 10:26:22.954 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object sma-em.0.info created
2022-02-13 10:26:22.957 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object sma-em.0.info.connection created
2022-02-13 10:26:22.961 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) Set default value of sma-em.0.info.connection: false
2022-02-13 10:26:22.977 - info: host.Jenss-Lifebook(SmartHome) iobroker host.Jenss-Lifebook(SmartHome) object system.adapter.sma-em.0 created
2022-02-13 10:26:24.074 - info: host.Jenss-Lifebook(SmartHome) iobroker exit 0
2022-02-13 10:26:26.444 - info: host.Jenss-Lifebook(SmartHome) instance system.adapter.sma-em.0 started with pid 9264
2022-02-13 10:26:29.194 - info: sma-em.0 (9264) starting. Version 0.6.4 in C:/Program Files/SmartHome5/node_modules/iobroker.sma-em, node: v12.19.0, js-controller: 4.0.8
2022-02-13 10:26:29.244 - info: sma-em.0 (9264) Details L1 false Details L2 false Details L3 false Extended info false
2022-02-13 10:26:29.260 - info: sma-em.0 (9264) Listen via UDP on Device Ethernet with IP 192.168.1.102 on Port 9522 for Multicast IP 239.12.255.254
2022-02-13 10:26:45.548 - info: host.Jenss-Lifebook(SmartHome) stopInstance system.adapter.sma-em.0 (force=false, process=true)
2022-02-13 10:26:45.554 - info: sma-em.0 (9264) Got terminate signal TERMINATE_YOURSELF
2022-02-13 10:26:45.557 - info: sma-em.0 (9264) cleaned everything up...
2022-02-13 10:26:45.558 - info: sma-em.0 (9264) terminating
2022-02-13 10:26:45.560 - info: sma-em.0 (9264) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
2022-02-13 10:26:45.554 - info: host.Jenss-Lifebook(SmartHome) stopInstance system.adapter.sma-em.0 send kill signal
2022-02-13 10:26:46.112 - warn: sma-em.0 (9264) redis get sma-em.0.3009872298.sw_version_raw, error - Connection is closed.
2022-02-13 10:26:46.114 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.115 - warn: sma-em.0 (9264) get state error: DB closed
2022-02-13 10:26:46.116 - warn: sma-em.0 (9264) get state error: DB closed
2022-02-13 10:26:46.116 - warn: sma-em.0 (9264) get state error: DB closed
2022-02-13 10:26:46.117 - warn: sma-em.0 (9264) get state error: DB closed
2022-02-13 10:26:46.118 - warn: sma-em.0 (9264) get state error: DB closed
2022-02-13 10:26:46.118 - warn: sma-em.0 (9264) get state error: DB closed
2022-02-13 10:26:46.150 - warn: sma-em.0 (9264) redis get sma-em.0.1901426962.sw_version_raw, error - Connection is closed.
2022-02-13 10:26:46.206 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.208 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.209 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.211 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.212 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.213 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.214 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.216 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.216 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.217 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.218 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.218 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.219 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.219 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.222 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.277 - warn: sma-em.0 (9264) redis get sma-em.0.3009872298.sw_version_raw, error - Connection is closed.
2022-02-13 10:26:46.325 - warn: sma-em.0 (9264) get state error: Connection is closed.
2022-02-13 10:26:46.769 - info: host.Jenss-Lifebook(SmartHome) instance system.adapter.sma-em.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
2022-02-13 10:26:48.657 - info: host.Jenss-Lifebook(SmartHome) instance system.adapter.sma-em.0 started with pid 10496
2022-02-13 10:26:52.565 - info: sma-em.0 (10496) starting. Version 0.6.4 in C:/Program Files/SmartHome5/node_modules/iobroker.sma-em, node: v12.19.0, js-controller: 4.0.8
2022-02-13 10:26:52.595 - info: sma-em.0 (10496) Details L1 false Details L2 false Details L3 false Extended info true
2022-02-13 10:26:52.602 - info: sma-em.0 (10496) Listen via UDP on Device Ethernet with IP 192.168.1.102 on Port 9522 for Multicast IP 239.12.255.254
Describe the bug
When the adapter is started, numerous warnings like:
"warn: sma-em.0 (9509) State "sma-em.0.3009872298.pregard" has no existing object, this might lead to an error in future versions"
appear in the iobroker log (see attached logfile).
To Reproduce
The warnings appear at each startup of the adapter. The js-controller version needs to be 3.2.x; the warnings do not appear with js-controller 3.1.x
Expected behavior
No warnings should appear, regardless of js-controller version.
It seems that a setState is done for non-existant states. A create state or extendObjectNotExists seems to be missing.
Screenshots & Logfiles
sma-em-063-errlog.txt
Versions:
Adapter version: <0.6.3>
JS-Controller version: <3.2.16>
Node version: <v12.21.0>
Operating system:
Additional context
None
Describe the bug
If I choose all four options (L1, L2, L3, Extended Details) the iobroker admin reports: "Unsubscribe from all states, except system's, because over 3 seconds the number of events is over 200 (in last second 0)" when I have the Objects-Tab open. The update of the values in the objects-tab stalls in this case indefinitely long. If I don't have the Objects-Tab open, it does not unsubscribe and even re-subscribes all states automatically. If I choose no options or only extended Details, the admin does not unsubscribe states. Probably this is due to the fact that I have two Devices (SHM and SEM) and that they update all values by the second.
To Reproduce
Steps to reproduce the behavior:
See bug description
Expected behavior
The update rate of the values in the Objects tab should be throttled so that this behaviour can be avoided.
This could be implemented by a configurable debounce time between 1 and 60 sec to reduce system load
(by reducing the setstate load).
The debounce time should be configurable via the Config page. It should allow also the option to have no debounce
since in some cases the raw values are needed in realtime (i.e. update once per second as the datagrams arrive).
Some of the values fluctuate very much (e.g. the power values or frequency).
For power values the debounce values should be computed over the debounce time as a
mean value (=artithmentic average), for frequency median might be better.
For values which must not be averaged (like f.i. the Energy counters like pregardcounter),
only the last value in the last datagram of the debounce period should be written (setstate).
The debounce interval should be aligned with multiples of the datagram repetition time to avoid jitter.
F.i. if the required debounce time is 30 sec, then the average should span over 30 datagrams
(provided the datagram repetition time is 1 sec).
Screenshots & Logfiles
iobroker.2021-02-07.log.zip
Versions:
Additional context
None
Since the latest update dated 9.12 of the SMA energy meter, the extended or detailed data values become incorrect. It seems that they changed the interface specification.
sma-em.0 | 2018-08-09 13:03:11.016 | error | at UDP.onMessage [as onmessage] (dgram.js:643:8) |
---|---|---|---|
sma-em.0 | 2018-08-09 13:03:11.016 | error | at Socket.emit (events.js:182:13) |
sma-em.0 | 2018-08-09 13:03:11.016 | error | at Socket. (/opt/iobroker/node_modules/iobroker.sma-em/main.js:69:35) |
sma-em.0 | 2018-08-09 13:03:11.016 | error | at Uint8Array.readUIntBE (internal/buffer.js:162:3) |
sma-em.0 | 2018-08-09 13:03:11.016 | error | at boundsError (internal/buffer.js:55:9) |
sma-em.0 | 2018-08-09 13:03:11.016 | error | RangeError [ERR_OUT_OF_RANGE]: The value of "byteLength" is out of range. It must be >= 1 and <= 6. Received 8 |
sma-em.0 | 2018-08-09 13:03:11.015 | error | uncaught exception: The value of "byteLength" is out of range. It must be >= 1 and <= 6. Received 8 |
sma-em.0 | 2018-08-09 13:03:10.331 | info | Details L1 true Details L2 true Details L3 true |
sma-em.0 | 2018-08-09 13:03:10.331 | info | Listen via UDP on Port 9522 for Multicast IP 239.12.255.254 |
sma-em.0 | 2018-08-09 13:03:10.325 | info | starting. Version 0.5.3 in /opt/iobroker/node_modules/iobroker.sma-em, node: v10.8.0 |
Kein wirkliches Issue, eher eine Frage: Wo kann man denn herausfinden, was die States bedeuten? Was bedeutet denn "pregard", "psurplus" usw.?
Hallo, habe den starken Verdacht dass die Werte hier keine Phasenverzerrung sondern den Strom in Ampere wiedergeben! Überprüft das bitte mal!
Gruß Andi
Hello,
it is possible to change ne channel name for the SMA Meter?
I have a Problem with iobroker, i think, the problem is the serial number as a channel.
https://forum.iobroker.net/viewtopic.php?f=22&t=19789
It is also possible to set a timeout before the new States? Every second is a little bit to much.
thanks.
Hello see log:
sma-em.0 | 2018-07-23 12:30:58.258 | info | Details L1 true Details L2 true Details L3 true |
---|---|---|---|
sma-em.0 | 2018-07-23 12:30:58.258 | info | Listen via UDP on Port 9522 for Multicast IP 239.12.255.254 |
sma-em.0 | 2018-07-23 12:30:58.258 | info | starting. Version 0.5.3 in /home/bigfreak/node_modules/iobroker.sma-em, node: v10.7.0 |
host.fuigw | 2018-07-23 12:30:58.042 | info | instance system.adapter.sma-em.0 started with pid 2178 |
host.fuigw | 2018-07-23 12:30:28.037 | info | Restart adapter system.adapter.sma-em.0 because enabled |
host.fuigw | 2018-07-23 12:30:28.037 | error | instance system.adapter.sma-em.0 terminated with code 0 (OK) |
host.fuigw | 2018-07-23 12:30:28.037 | error | Caught by controller[0]: at UDP.onMessage [as onmessage] (dgram.js:673:8) |
host.fuigw | 2018-07-23 12:30:28.037 | error | Caught by controller[0]: at Socket.emit (events.js:182:13) |
host.fuigw | 2018-07-23 12:30:28.037 | error | Caught by controller[0]: at Socket. (/home/bigfreak/node_modules/iobroker.sma-em/main.js:69:35) |
host.fuigw | 2018-07-23 12:30:28.037 | error | Caught by controller[0]: at Uint8Array.readUIntBE (internal/buffer.js:162:3) |
host.fuigw | 2018-07-23 12:30:28.037 | error | Caught by controller[0]: at boundsError (internal/buffer.js:55:9) |
host.fuigw | 2018-07-23 12:30:28.037 | error | Caught by controller[0]: RangeError [ERR_OUT_OF_RANGE]: The value of "byteLength" is out of range. It must be >= 1 and <= 6. Received 8 |
sma-em.0 | 2018-07-23 12:30:28.030 | error | uncaught exception: The value of "byteLength" is out of range. It must be >= 1 and <= 6. Received 8 |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.