rgwch / iobroker.mystrom-wifi-switch Goto Github PK
View Code? Open in Web Editor NEWmyStrom-Wifi-Switch adapter for ioBroker
License: MIT License
myStrom-Wifi-Switch adapter for ioBroker
License: MIT License
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:
I have also found warnings that may be fixed if possible.
Thanks,
your automatic adapter checker.
P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info
For all new adapters it is required the support of admin3.
You can just copy it from somewhere.
and add "materialize": true to io-package.json/common
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!
... because it is no full Mystrom implementation, but only one special device.
Users would expect more general functionality and leaving the name as is would block a real mystrom Adapter getting „the correct“ name.
Would this be possible?!
Thank you
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.
Hello,
I've installed the adapter. I've set the correct IP of my Switch and set the polling intervall but the adapter says not connected and no sign of life.
I'm getting this Error message in the logfiles:
startInstance mystrom-wifi-switch.1: cannot find start file!
The object isn't shown unless I activate the expert mode.
hey
is there a way to renaming the instances?
when having a lot of the switches it's difficult to see which is which :-)
thanks
pat
in Version 2.0.7, the switch is turned on, if the adapter is restarted, i.e. also on ioBroker restart.
Also, the change log does not include info about V2.0.7
Christoph S
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!
Ich bekomme bei allen Instanzen jetzt folgende Fehlermeldung im IOBroker:
startInstance mystrom-wifi-switch.3: cannot find start file!
Node.js v12.20.0
NPM 6.14.8
ioBroker 3.1.6
"Downgrade auf Firmware Version 3.82.46 gemacht, nun funktioniert's wieder!"
Originally posted by @thomasvoni in #31 (comment)
Wo bekomme ich denn die ältere Firmware?
Auf der Supportseite von MyStrom finde ich mur eine Firmware zur Version 1 des Switch.
With V. 2.08:
After upgrading js-controller myswitch instance reloop was detected and stop the instance.
Error: undefined is not a valid state value at Object.maybeCallbackWithError (/opt/iobroker/node_modules/@iobroker/js-controller-common/build/lib/common/maybeCallback.js:35:17) at MystromSwitch._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5439:49) at MystromSwitch.setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5400:21) at /opt/iobroker/node_modules/@iobroker/js-controller-common/build/lib/common/tools.js:2037:16 at new Promise (<anonymous>) at MystromSwitch.setStateAsync (/opt/iobroker/node_modules/@iobroker/js-controller-common/build/lib/common/tools.js:2036:16) at MystromSwitch.<anonymous> (/opt/iobroker/node_modules/iobroker.mystrom-wifi-switch/build/main.js:146:28) at Generator.next (<anonymous>) at fulfilled (/opt/iobroker/node_modules/iobroker.mystrom-wifi-switch/build/main.js:8:58)
unhandled promise rejection: undefined is not a valid state value Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). instance system.adapter.mystrom-wifi-switch.2 terminated with code 6 (UNCAUGHT_EXCEPTION) Terminated (UNCAUGHT_EXCEPTION): Without reason undefined is not a valid state value
Hi
after i install the mystrom adapter from github und add an adapter i get following error:
File index_m.html not found
I could'nt set an IP or doing any config.
OS: win32
Version: 1.2.3
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!
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
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:
I have also found warnings that may be fixed if possible.
Thanks,
your automatic adapter checker.
P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info
Bei einem Adapter start/neustart oder bei einem IoBroker neustart, werden immer die verbundenen Steckdose ausgeschalten :(
I would like to use the adapter using the API Token. Without enabled API Token anyone in "my" network would be able to manipulate my switch (turn on/off).
Please implement the usage of the API Token.
Besten Dank für den Adapter. Er funktioniert soweit gut. Jedochwird bei jedem Abfrageintervall wird ein Log Eintrag (info) geschrieben. Das muss doch nicht sein.
Version 2.0.4
Thanks for the adapter. It works well so far. But with each query interval a log entry (info) is written. That does not have to be.
Version 2.0.4
Quelle | Zeit | debug | Meldung |
---|---|---|---|
mystrom-wifi-switch.0 | 2020-10-06 00:08:14.715 | info | (24846) result {"power":0,"Ws":0,"relay":false,"temperature":11.75} |
mystrom-wifi-switch.0 | 2020-10-06 00:08:14.607 | info | (24846) Fetching http://192.168.1.220/report |
mystrom-wifi-switch.0 | 2020-10-06 00:08:14.606 | info | (24846) checkstates url http://192.168.1.220 |
We saw your adapter and if it is ready please request that it is added to the repository. With this it becomes available for all users. Please consult https://github.com/ioBroker/ioBroker.repositories#add-a-new-adapter-to-the-latest-repository and the following sections for more details.
If you need help, contact us in the forum https://forum.iobroker.net/ or in the developer chat https://github.com/iobroker-community-adapters/info .
Thank you for your support.
Guten Tag
Wird beim Objekt "total_energy" der Wert manuell auf 0 zurück gesetzt, dann schaltet der Switch beim nächsten Abfrageintervall einfach aus. Der Switch muss dann manuell wieder eingeschaltet werden.
Freundliche Grüsse
MyStrom Switch mit Firmware Version 3.82.57 können keine Verbindung mit dem Adapter (2.0.7 und 2.0.8) mehr herstellen. Status bleibt gelb. Fehlermeldung im Log "(56462) Error while fetching /report: 404"
Geht die Verbindung zum Wifi Switch verloren (z.B. keine Verbindung, ausgesteckt, usw.), dann bleiben sämtliche Dstenpunkte auf dem letzten Stand.
In der vis ist so nicht ersichtlich, ob noch eine Verbindung besteht.
Ich habe meinen Wifi Switch vor 1 Woche ausstecken müssen, seither wird der Momentanverbrauch und die Temperatur unverändert angezeigt.
Hello
I've installed 2 Instances, but i got no Informations:
reload of Instance:
mystrom-wifi-switch.0 | 2020-06-07 09:29:09.088 | info | (28664) setting interval to 15 seconds |
---|---|---|---|
mystrom-wifi-switch.0 | 2020-06-07 09:29:09.073 | info | (28664) Fetching http://192.168.1.90/report |
mystrom-wifi-switch.0 | 2020-06-07 09:29:08.868 | info | (28664) starting. Version 2.0.1 in /opt/iobroker/node_modules/iobroker.mystrom-wifi-switch, node: v12.16.3 |
host.raspberrypi | 2020-06-07 09:29:07.033 | info | instance system.adapter.mystrom-wifi-switch.0 started with pid 28664 |
host.raspberrypi | 2020-06-07 09:29:05.049 | info | instance system.adapter.mystrom-wifi-switch.0 terminated with code 156 (156) |
host.raspberrypi | 2020-06-07 09:29:05.049 | error | Caught by controller[3]: (node:21718) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by |
host.raspberrypi | 2020-06-07 09:29:05.048 | error | Caught by controller[3]: at processTimers (internal/timers.js:492:7) |
host.raspberrypi | 2020-06-07 09:29:05.048 | error | Caught by controller[3]: at listOnTimeout (internal/timers.js:549:17) |
host.raspberrypi | 2020-06-07 09:29:05.048 | error | Caught by controller[3]: at Timeout.checkStates [as _onTimeout] (/opt/iobroker/node_modules/iobroker.mystrom-wifi-switch/build/main.js:124:16) |
host.raspberrypi | 2020-06-07 09:29:05.048 | error | Caught by controller[3]: at __awaiter (/opt/iobroker/node_modules/iobroker.mystrom-wifi-switch/build/main.js:7:12) |
host.raspberrypi | 2020-06-07 09:29:05.048 | error | Caught by controller[3]: at new Promise () |
host.raspberrypi | 2020-06-07 09:29:05.047 | error | Caught by controller[3]: at /opt/iobroker/node_modules/iobroker.mystrom-wifi-switch/build/main.js:11:71 |
host.raspberrypi | 2020-06-07 09:29:05.047 | error | Caught by controller[3]: at Generator.next () |
host.raspberrypi | 2020-06-07 09:29:05.047 | error | Caught by controller[3]: at Timeout. (/opt/iobroker/node_modules/iobroker.mystrom-wifi-switch/build/main.js:125:37) |
host.raspberrypi | 2020-06-07 09:29:05.047 | error | Caught by controller[3]: (node:21718) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'url' of undefined |
host.raspberrypi | 2020-06-07 09:29:05.046 | error | Caught by controller[2]: (node:21718) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by |
host.raspberrypi | 2020-06-07 09:29:05.046 | error | Caught by controller[1]: at processTimers (internal/timers.js:492:7) |
host.raspberrypi | 2020-06-07 09:29:05.046 | error | Caught by controller[1]: at listOnTimeout (internal/timers.js:549:17) |
host.raspberrypi | 2020-06-07 09:29:05.046 | error | Caught by controller[1]: at Timeout.checkStates [as _onTimeout] (/opt/iobroker/node_modules/iobroker.mystrom-wifi-switch/build/main.js:124:16) |
host.raspberrypi | 2020-06-07 09:29:05.045 | error | Caught by controller[1]: at __awaiter (/opt/iobroker/node_modules/iobroker.mystrom-wifi-switch/build/main.js:7:12) |
host.raspberrypi | 2020-06-07 09:29:05.045 | error | Caught by controller[1]: at new Promise () |
host.raspberrypi | 2020-06-07 09:29:05.045 | error | Caught by controller[1]: at /opt/iobroker/node_modules/iobroker.mystrom-wifi-switch/build/main.js:11:71 |
host.raspberrypi | 2020-06-07 09:29:05.044 | error | Caught by controller[1]: at Generator.next () |
host.raspberrypi | 2020-06-07 09:29:05.044 | error | Caught by controller[1]: at Timeout. (/opt/iobroker/node_modules/iobroker.mystrom-wifi-switch/build/main.js:125:37) |
host.raspberrypi | 2020-06-07 09:29:05.043 | error | Caught by controller[1]: (node:21718) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'url' of undefined |
mystrom-wifi-switch.0 | 2020-06-07 09:29:04.509 | info | (21718) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason |
mystrom-wifi-switch.0 | 2020-06-07 09:29:04.507 | info | (21718) terminating |
mystrom-wifi-switch.0 | 2020-06-07 09:29:04.507 | info | (21718) cleaned everything up... |
mystrom-wifi-switch.0 | 2020-06-07 09:29:04.504 | info | (21718) Got terminate signal TERMINATE_YOURSELF |
host.raspberrypi | 2020-06-07 09:29:04.498 | info | stopInstance system.adapter.mystrom-wifi-switch.0 send kill signal |
host.raspberrypi | 2020-06-07 09:29:04.490 | info | stopInstance system.adapter.mystrom-wifi-switch.0 (force=false, process=true) |
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.