Bl4cksh4rk1990 / ioBroker.siro

Control Siro Blinds
MIT License
6 stars 0 forks source link

.operation und .currentState Werte ändern sich nicht #3

Open Gulfmacker opened 5 years ago

Gulfmacker commented 5 years ago

.operation und .currentState Werte ändern sich nicht auch wenn das Rollo gerade runter oder hoch fährt

Bl4cksh4rk1990 commented 5 years ago

Hallo, die beiden Werte kommen ja von dem Server mit dem auch dein Gateway verbunden ist, also kann ich da nicht viel Einfuss nehmen.

Ich nehme mal an, dass du die Werte für einen "working" state nehmen möchtest. Mal schauen was ich da noch machen kann.

Bei einem kleinen Test habe ich gerade gesehen, dass der .operation state bei meinen unidirektionalen Rollos sich ändert und bei den bidirektionalen Rollos nur wenn ich das Rollo über die Connector App steuere.

Es wäre noch hilfreich wenn ich wüsste welche Rollomotoren du nutzt.

Gulfmacker commented 5 years ago

Hallo,

ich benutze die Siro ERBS15LE Motoren. Ich würde halt gerne eine Funktion ausführen, wenn die Rollos gerade am laufen sind. Leider funzt das zur Zeit nicht wirklich.

Gruß Toralf

Bl4cksh4rk1990 commented 5 years ago

Installiere den Adapter bitte nochmal neu aus Github und starte danach die Instanz einmal neu. Zumindest bei mir geht der operation state auf 0 und sobald das Rollo auf Position ist auf 2. Bei mir konnte ich das gerade mit den ERBS15LE testen und es funktioniert.

Gulfmacker commented 5 years ago

bekomme jetzt den Adapter gar nicht mehr installiert. Scheint ein Berechtigungsproblem zu geben. Log: $ ./iobroker add siro 0 --host raspberrypi host.raspberrypi install adapter siro npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.siro" npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 npm WARN

deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x. npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker.siro npm ERR! path /opt/iobroker/node_modules/iobroker.sironpm ERR! code EACCES npm ERR! errno -13npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/opt/iobroker/node_modules/iobroker.siro'npm ERR! { [Error: EACCES: permission denied, access '/opt/iobroker/node_modules/iobroker.siro'] npm ERR! stack: npm ERR! 'Error: EACCES: permission denied, access \'/opt/iobroker/node_modules/iobroker.siro\'', npm ERR! errno: -13, npm ERR! code: 'EACCES',npm ERR! syscall: 'access', npm ERR! path: '/opt/iobroker/node_modules/iobroker.siro' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current usernpm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2019-09-29T21_28_37_248Z-debug.log

Cannot install iobroker.siro: 243 ERROR: process exited with code 25

Bl4cksh4rk1990 commented 5 years ago

Das sieht nach einem grundlegenden Problem bei deiner ioBroker Installation aus. Entweder du löscht den Adapter indem du npm als root ausführst oder du löscht den Adapter von Hand. Versuche aber erstmal den fixer für die ioBroker Installation laufen zu lassen. Der setzt die Berechtigungen für die Ordner neu.

curl -sL https://iobroker.net/fix.sh | bash