NEWS
[Vorlage] Xiaomi Airpurifier 3H u.a. inkl. Token auslesen.
-
@pittini In der Liste habe ich nur etwas für die Yeelight Color Bulb 2 gefunden.
Für den 3H, die Yeelight Bulb und den Roborock nicht.
Das Device für die Bulb 2 hab ich abgelegt, ja. -
@maxpd
Natürlich gibts was für den 3H. Lass es uns anders machen. Du kopierst einfach JEDES File von da:https://github.com/Pittini/iobroker-nodemihome/tree/main/DefinitionfilesForNode-Mihome
in Dein node-mihome Devices Verzeichnis. Bei mir ist das unter:
/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib/devices/
zu finden. Dann JS Adapter neustarten und berichten.
-
@pittini das wäre auch mein nächster schritt gewesen ich glaube jetzt hat es funktioniert. bekomme daten rein. Wobei is Online auf false steht, obwohl ich das Gerät sauber steuern kann
Verstanden habe ich aber noch nicht, warum ich den 3H auch als File rüberziehen muss. Dieser stand ja nicht auf ready for merge sondern voll/voll in der Readme.
-
@maxpd sagte in [Vorlage] Xiaomi Airpurifier 3H u.a. inkl. Token auslesen.:
Verstanden habe ich aber noch nicht, warum ich den 3H auch als File rüberziehen muss. Dieser stand ja nicht auf ready for merge sondern voll/voll in der Readme.
Weil das File zwar in der node-mihome drin ist, aber falsch ist und nicht funktioniert.
-
@maxpd sagte in [Vorlage] Xiaomi Airpurifier 3H u.a. inkl. Token auslesen.:
ich glaube jetzt hat es funktioniert. bekomme daten rein.
Darf ich fragen welche Version von Java-Script Du hast?
Ich habe bei gleichem Gerät auch den Fehler, dass unter Info alles korrekt angezeigt wird (einschl. Online=True) aber keinerlei Daten eingelesen werden. Ich habe schon alles versucht und natürlich auch die Definitionsdatei ersetzt. Ich befürchte sonst, dass es daran liegt, dass mein 3H im Gästenetz ist und der iobroker im Hauptnetz ist. -
@marc12345 sagte in
Ich habe bei gleichem Gerät auch den Fehler, dass unter Info alles korrekt angezeigt wird (einschl. Online=True) aber keinerlei Daten eingelesen werden.
Das unter Info alles angezeigt wird ist normal, weil dazu brauchts keine Definitionsdatei seitens node-mihome. Das Skript fragt quasi da einfach die Cloud was denn der User für Geräte hat, mit welchem Status, Token etc. Anhand des dabei auch übermittelten models, schaut das Skript dann in die Definitionsdatei legt die Datenpunkte an und ruft Daten ab.
Ich habe schon alles versucht und natürlich auch die Definitionsdatei ersetzt. Ich befürchte sonst, dass es daran liegt, dass mein 3H im Gästenetz ist und der iobroker im Hauptnetz ist.
Bin mir ziemlich sicher dass es daran NICHT liegt, das Skript "simuliert" ja quasi die MiHome App, wenn Du das Gerät damit steuern kannst, gehts auch mit dem Skript. Hast Du den JS Controller auch neugestartet nach dem ersetzen der Definitionsdatei? Was sagt das Log?
-
@pittini
Ja, den Adapter und auch das System habe ich neugestartet. Die Datei habe ich ebenfalls ersetzt.
Ich habe die Log angefügt. Den Token habe ich hier im LOG durch XXXXX ersetzt.18:44:28.469 info javascript.0 (3581) Start javascript script.js.Xiaomi
18:44:28.496 info javascript.0 (3581) script.js.Xiaomi: Starting AllMyMi V.0.2.16
18:44:28.496 info javascript.0 (3581) script.js.Xiaomi: Reaching init
18:44:28.500 info javascript.0 (3581) script.js.Xiaomi: registered 0 subscriptions and 0 schedules
18:44:28.501 info javascript.0 (3581) script.js.Xiaomi: You are already logged in, login canceled
18:44:28.501 info javascript.0 (3581) script.js.Xiaomi: Retrieving your in de registered MiHome Devices
18:44:28.620 info javascript.0 (3581) script.js.Xiaomi: Found 1 MiHome Devices, those are:
18:44:28.620 info javascript.0 (3581) script.js.Xiaomi: Purifier 3H
18:44:28.621 info javascript.0 (3581) script.js.Xiaomi: Now searching for supported Devices...
18:44:28.621 info javascript.0 (3581) script.js.Xiaomi: Device Purifier 3H is supported, creating DataPoints
18:44:28.622 info javascript.0 (3581) script.js.Xiaomi: Reaching PrepareDeviceDps, did=392268520 model=zhimi.airpurifier.mb3
18:44:28.623 info javascript.0 (3581) script.js.Xiaomi: Reaching CreateStates()
18:44:28.636 info javascript.0 (3581) script.js.Xiaomi: 24 States created, now setting up channels!
18:44:28.637 info javascript.0 (3581) script.js.Xiaomi: Reaching main
18:44:28.637 info javascript.0 (3581) script.js.Xiaomi: Reaching WriteGenericDpValues()
18:44:28.639 info javascript.0 (3581) script.js.Xiaomi: Reaching CreateDevices
18:44:28.639 info javascript.0 (3581) script.js.Xiaomi: Now creating device for zhimi.airpurifier.mb3 / 392268520 / 192.168.250.100 / XXXXXXX / 10000
18:44:28.640 info javascript.0 (3581) script.js.Xiaomi: Created device {"_events":{},"_eventsCount":0,"_maxListeners":100,"id":"392268520","address":"192.168.250.100","token":"XXXXXXX","protocol":"local","refresh":10000,"_properties":{},"_propertiesToMonitor":["air-purifier:fault","air-purifier:on","air-purifier:fan-level","air-purifier:mode","environment:pm2.5-density","environment:relative-humidity","environment:temperature","filter:filter-life-level","filter:filter-used-time","alarm:alarm","indicator-light:brightness","indicator-light:on","motor-speed:motor-speed","motor-speed:motor-set-speed","motor-speed:favorite-fan-level","use-time:use-time","physical-controls-locked:physical-controls-locked"],"_miotSpec":null,"_miotSpecType":"urn:miot-spec-v2:device:air-purifier:0000A007:zhimi-mb3:2","model":"zhimi.airpurifier.mb3","setter":{},"definition":{"info":[{"id":"localip","initial":"","forceCreation":false,"common":{"read":true,"write":true,"name":"Ip Adress","type":"string","role":"value","def":""}},{"id":"token","initial":"","forceCreation":false,"common":{"read":true,"write":true,"name":"Token","type":"string","role":"value","def":""}},{"id":"did","initial":"","forceCreation":false,"common":{"read":true,"write":true,"name":"Device Id","type":"string","role":"value","def":""}},{"id":"model","initial":"","forceCreation":false,"common":{"read":true,"write":true,"name":"Model","type":"string","role":"value","def":""}},{"id":"rssi","initial":0,"forceCreation":false,"common":{"read":true,"write":false,"name":"rssi","type":"number","role":"value.rssi","def":0}},{"id":"name","initial":"","forceCreation":false,"common":{"read":true,"write":true,"name":"Name","type":"string","role":"value","def":""}},{"id":"isOnline","initial":false,"forceCreation":false,"common":{"read":true,"write":true,"name":"Is online","type":"boolean","role":"value","def":false}}],"model":"zhimi.airpurifier.mb3","description":"Purifier 3H","setter":{},"common":[{"name":"air-purifier.on","type":"boolean","role":"switch","read":true,"write":true,"min":false,"max":true},{"name":"air-purifier.fault","type":"number","read":true,"write":false,"min":0,"max":5,"states":{"0":"No faults","1":"m1_run","2":"m1_stuck","3":"no_sensor","4":"error_hum","5":"error_temp","6":"timer_error1","7":"timer_error2"},"role":"state"},{"name":"air-purifier.mode","type":"number","read":true,"write":true,"min":0,"max":3,"states":{"0":"auto","1":"sleep","2":"favorite","3":"fanset"},"role":"state"},{"name":"air-purifier.fan-level","type":"number","read":true,"write":true,"min":1,"max":3,"role":"state"},{"name":"alarm.alarm","type":"boolean","read":true,"write":true,"role":"state"},{"name":"indicator-light.brightness","type":"number","read":true,"write":true,"min":0,"max":2,"role":"state"},{"name":"indicator-light.on","type":"boolean","role":"switch","read":true,"write":true,"min":false,"max":true},{"name":"environment.temperature","type":"number","role":"value.temperature","read":true,"write":false,"min":-40,"max":125,"unit":"°C"},{"name":"motor-speed.motor-speed","type":"number","read":true,"write":false,"min":0,"max":3000,"unit":"rpm","role":"state"},{"name":"motor-speed.motor-set-speed","type":"number","read":true,"write":false,"min":0,"max":3000,"unit":"rpm","role":"state"},{"name":"motor-speed.favorite-fan-level","type":"number","read":true,"write":true,"min":0,"max":14,"role":"state"},{"name":"use-time.use-time","type":"number","read":true,"write":false,"role":"state"},{"name":"environment.relative-humidity","type":"number","role":"value.humidity","read":true,"write":false,"min":0,"max":100,"unit":"%"},{"name":"environment.pm2_5-density","type":"number","read":true,"write":false,"min":0,"max":600,"unit":"μg/m³","role":"state"},{"name":"filter.filter-life-level","type":"number","read":true,"write":false,"min":0,"max":100,"unit":"%","role":"state"},{"name":"filter.filter-used-time","type":"number","read":true,"write":false,"unit":"h","role":"state"},{"name":"physical-controls-locked.physical-controls-locked","type":"boolean","role":"switch","read":true,"write":true,"min":false,"max":true}]},"firstrun":true} now fetching data
18:44:32.737 info javascript.0 (3581) script.js.Xiaomi: Init Device# 0 - device="zhimi.airpurifier.mb3"
18:44:32.739 info javascript.0 (3581) script.js.Xiaomi: Setting trigger #0 for zhimi.airpurifier.mb3
18:44:32.741 info javascript.0 (3581) script.js.Xiaomi: Reaching CreateDpTrigger
18:44:32.742 info javascript.0 (3581) script.js.Xiaomi: Setting DataPointTrigger #0 for zhimi.airpurifier.mb3
18:44:32.743 info javascript.0 (3581) script.js.Xiaomi: Setting Datapoint Trigger for javascript.0.MiHomeAll.392268520.air-purifier.on / read=true write=true
18:44:32.744 info javascript.0 (3581) script.js.Xiaomi: No Datapoint Trigger set for air-purifier.fault because its readonly.
18:44:32.745 info javascript.0 (3581) script.js.Xiaomi: Setting Datapoint Trigger for javascript.0.MiHomeAll.392268520.air-purifier.mode / read=true write=true
18:44:32.745 info javascript.0 (3581) script.js.Xiaomi: Setting Datapoint Trigger for javascript.0.MiHomeAll.392268520.air-purifier.fan-level / read=true write=true
18:44:32.746 info javascript.0 (3581) script.js.Xiaomi: Setting Datapoint Trigger for javascript.0.MiHomeAll.392268520.alarm.alarm / read=true write=true
18:44:32.747 info javascript.0 (3581) script.js.Xiaomi: Setting Datapoint Trigger for javascript.0.MiHomeAll.392268520.indicator-light.brightness / read=true write=true
18:44:32.748 info javascript.0 (3581) script.js.Xiaomi: Setting Datapoint Trigger for javascript.0.MiHomeAll.392268520.indicator-light.on / read=true write=true
18:44:32.749 info javascript.0 (3581) script.js.Xiaomi: No Datapoint Trigger set for environment.temperature because its readonly.
18:44:32.750 info javascript.0 (3581) script.js.Xiaomi: No Datapoint Trigger set for motor-speed.motor-speed because its readonly.
18:44:32.750 info javascript.0 (3581) script.js.Xiaomi: No Datapoint Trigger set for motor-speed.motor-set-speed because its readonly.
18:44:32.751 info javascript.0 (3581) script.js.Xiaomi: Setting Datapoint Trigger for javascript.0.MiHomeAll.392268520.motor-speed.favorite-fan-level / read=true write=true
18:44:32.752 info javascript.0 (3581) script.js.Xiaomi: No Datapoint Trigger set for use-time.use-time because its readonly.
18:44:32.753 info javascript.0 (3581) script.js.Xiaomi: No Datapoint Trigger set for environment.relative-humidity because its readonly.
18:44:32.753 info javascript.0 (3581) script.js.Xiaomi: No Datapoint Trigger set for environment.pm2_5-density because its readonly.
18:44:32.754 info javascript.0 (3581) script.js.Xiaomi: No Datapoint Trigger set for filter.filter-life-level because its readonly.
18:44:32.754 info javascript.0 (3581) script.js.Xiaomi: No Datapoint Trigger set for filter.filter-used-time because its readonly.
18:44:32.755 info javascript.0 (3581) script.js.Xiaomi: Setting Datapoint Trigger for javascript.0.MiHomeAll.392268520.physical-controls-locked.physical-controls-locked / read=true write=true -
@marc12345 Hmm, Du bist korrekt eingeloggt, das Gerät wird erkannt, Datenpunkte sauber angelegt, Trigger erzeugt, usw., von Skriptseite alles ok soweit. Es kommen offensichtlich aber keine Daten, nur warum ist die Frage. Wenn Du ganz sicher bist die richtige Datei ins richtige Verzeichnis kopiert zu haben, muß es iwo an Deinem System liegen, aber da kann ich nich helfen.
-
@pittini
Auf alle Fälle schonmal Danke für Deine tolle Hilfe. Ich kenne mich leider nicht so richtig in der Tiefe aus, aber mir sind zwei Dinge aufgefallen. Vielleicht hängt das damit zusammen:-
Die entsprechende Skriptdatei finde ich unter Raspberry Pi (Buster) an 5 Stellen. Habe ich vermutl. auch beim testen mal falsch kopiert. Ich habe aber diese überall gegen die neue ausgetauscht. Sie hatten aber teilweise unterschiedliche Berechtigungen (teilw. 644, teilw. 777 -> Habe diese aber auf 777 geändert):
-
In der Mi-App wird von überall der 3H angezeigt und ich kann ihn bedienen. Wenn ich mich allerdings auf der Mi-Cloud einlogge (https://i.mi.com/), werden mir 0 Geräte angezeigt. Wenn ich auf "Geräte suchen" klicke, werden mir "Keine Geräte - Gerätesuche aktivieren, damit deine Geräte gefunden werden können" angezeigt.
Kann da irgendwo ein Fehler bei mir liegen?
-
-
@marc12345
777 ist eigentlich immer falsch.
Und in /home gehört auch nichts rein.
Schon gar nicht in /root !
Man macht nichts direkt als root. -
@thomas-braun sagte in [Vorlage] Xiaomi Airpurifier 3H u.a. inkl. Token auslesen.:
Man macht nichts direkt als root.
Ich hätte ja gesagt "hab ich auch nicht". Aber wer soll es sonst gewesen sein
Habe jetzt die entsprechenden Dateien und Verzeichnisse gelöscht und nochmal von vorne angefangen. Die ausgetauschte Skriptdatei befindet sich jetzt nur noch in
/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib/devices/ und die Berechtigung ist jetzt "755".Leider genau der gleiche Effekt: Es werden keine weiteren Daten eingelesen.
-
@marc12345 sagte in [Vorlage] Xiaomi Airpurifier 3H u.a. inkl. Token auslesen.:
Habe jetzt die entsprechenden Dateien und Verzeichnisse gelöscht und nochmal von vorne angefangen.
Wenn Du gelöscht hast und nicht deinstalliert können da noch iwo Verweise sein. Offenbar is da bisserl Kuddelmuddel in Deinem System, leider kann ich da nich helfen, weder hab ich nen Pi, noch kenn ich mich damit aus. Vielleicht mag wer anders hier eingreifen mit Ahnung vom Pi? Würde mich ja auch grundsätzlich interessieren warums überall sauber läuft, nur bei einigen Pi Nutzern nicht, is schon iwie auffällig.
-
@pittini Im Moment hab ich das Skript nicht im System (Rpi 4), kann aber später nochmal alles reinlegen.
Probleme hatte ich allerdings nie mit dem Betrieb.
-
@thomas-braun Schon einmal vielen Dank, weil soeben noch ein Purifier 3C dazugekommen ist!!!
Hier auch Rpi 4 mit aktuellem iobroker, Phiole mit unbound und OMV5. Jeweils ohne Docker. Evtl. ist das relevant. Alles andere läuft einwandfrei. -
Wenn man es sauber installiert, dann gibt es die Datei nur einmal wie folgt im gesamten System:
echad@chet:~ $ getfacl /opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib/devices/zhimi.airpurifier.mb3.js getfacl: Entferne führende '/' von absoluten Pfadnamen # file: opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib/devices/zhimi.airpurifier.mb3.js # owner: iobroker # group: iobroker user::rw- group::r-x #effective:r-- group:iobroker:rwx #effective:rw- mask::rw- other::r--
Ohne ACLs:
echad@chet:~ $ ls -la /opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib/devices/zhimi.airpurifier.mb3.js -rw-rw-r--+ 1 iobroker iobroker 2700 Okt 26 1985 /opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib/devices/zhimi.airpurifier.mb3.js
-
Hier der Aufstart des skriptes. Vielleicht findest du da noch etwas:
2021-05-22 12:00:02.246 - ESC[32minfoESC[39m: javascript.0 (6567) Got terminate signal TERMINATE_YOURSELF 2021-05-22 12:00:02.286 - ESC[32minfoESC[39m: javascript.0 (6567) Stop script script.js.common.Alexa_Nuki 2021-05-22 12:00:02.288 - ESC[32minfoESC[39m: javascript.0 (6567) Stop script script.js.common.pakettruhe_offen 2021-05-22 12:00:02.289 - ESC[32minfoESC[39m: javascript.0 (6567) Stop script script.js.common.sonnenaufgang 2021-05-22 12:00:02.290 - ESC[32minfoESC[39m: javascript.0 (6567) Stop script script.js.common.sonnenuntergang 2021-05-22 12:00:02.290 - ESC[32minfoESC[39m: javascript.0 (6567) Stop script script.js.common.telefon_klingelt 2021-05-22 12:00:02.291 - ESC[32minfoESC[39m: javascript.0 (6567) Stop script script.js.common.tuerklingel_laeutet 2021-05-22 12:00:02.292 - ESC[32minfoESC[39m: javascript.0 (6567) Stop script script.js.common.wohnung_verlassen 2021-05-22 12:00:02.293 - ESC[32minfoESC[39m: javascript.0 (6567) Stop script script.js.common.wohnungstuer_entriegelt 2021-05-22 12:00:02.305 - ESC[32minfoESC[39m: javascript.0 (6567) terminating 2021-05-22 12:00:02.308 - ESC[32minfoESC[39m: javascript.0 (6567) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason 2021-05-22 12:00:09.138 - ESC[32minfoESC[39m: javascript.0 (26393) starting. Version 5.1.3 in /opt/iobroker/node_modules/iobroker.javascript, node: v16.1.0, js-controller: 3.3.10 2021-05-22 12:00:09.205 - ESC[32minfoESC[39m: javascript.0 (26393) npm install node-mihome --production (System call) 2021-05-22 12:00:32.895 - ESC[31merrorESC[39m: javascript.0 (26393) npm 2021-05-22 12:00:32.897 - ESC[31merrorESC[39m: javascript.0 (26393) WARN deprecated har-validator@5.1.5: this library is no longer supported 2021-05-22 12:00:33.313 - ESC[31merrorESC[39m: javascript.0 (26393) npm 2021-05-22 12:00:33.314 - ESC[31merrorESC[39m: javascript.0 (26393) WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 2021-05-22 12:00:33.523 - ESC[31merrorESC[39m: javascript.0 (26393) npm WARN 2021-05-22 12:00:33.525 - ESC[31merrorESC[39m: javascript.0 (26393) deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) 2021-05-22 12:00:36.809 - ESC[32minfoESC[39m: javascript.0 (26393) added 117 packages, and audited 121 packages in 27s 2021-05-22 12:00:36.812 - ESC[32minfoESC[39m: javascript.0 (26393) 2021-05-22 12:00:36.815 - ESC[32minfoESC[39m: javascript.0 (26393) 5 packages are looking for funding run `npm fund` for details 2021-05-22 12:00:36.819 - ESC[32minfoESC[39m: javascript.0 (26393) found 0 vulnerabilities 2021-05-22 12:00:37.390 - ESC[32minfoESC[39m: javascript.0 (26393) requesting all states 2021-05-22 12:00:37.392 - ESC[32minfoESC[39m: javascript.0 (26393) requesting all objects 2021-05-22 12:00:37.956 - ESC[32minfoESC[39m: javascript.0 (26393) received all states 2021-05-22 12:00:39.163 - ESC[32minfoESC[39m: javascript.0 (26393) received all objects 2021-05-22 12:00:48.666 - ESC[32minfoESC[39m: javascript.0 (26393) Start javascript script.js.common.Alexa_Nuki 2021-05-22 12:00:48.736 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.Alexa_Nuki: registered 1 subscription and 0 schedules 2021-05-22 12:00:48.737 - ESC[32minfoESC[39m: javascript.0 (26393) Start javascript script.js.common.pakettruhe_offen 2021-05-22 12:00:48.744 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.pakettruhe_offen: registered 1 subscription and 0 schedules 2021-05-22 12:00:48.747 - ESC[32minfoESC[39m: javascript.0 (26393) Start javascript script.js.common.sonnenaufgang 2021-05-22 12:00:48.755 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.sonnenaufgang: registered 0 subscriptions and 1 schedule 2021-05-22 12:00:48.756 - ESC[32minfoESC[39m: javascript.0 (26393) Start javascript script.js.common.sonnenuntergang 2021-05-22 12:00:48.763 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.sonnenuntergang: registered 0 subscriptions and 1 schedule 2021-05-22 12:00:48.763 - ESC[32minfoESC[39m: javascript.0 (26393) Start javascript script.js.common.telefon_klingelt 2021-05-22 12:00:48.769 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.telefon_klingelt: registered 1 subscription and 0 schedules 2021-05-22 12:00:48.770 - ESC[32minfoESC[39m: javascript.0 (26393) Start javascript script.js.common.tuerklingel_laeutet 2021-05-22 12:00:48.777 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.tuerklingel_laeutet: registered 1 subscription and 0 schedules 2021-05-22 12:00:48.778 - ESC[32minfoESC[39m: javascript.0 (26393) Start javascript script.js.common.wohnung_verlassen 2021-05-22 12:00:48.784 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.wohnung_verlassen: registered 1 subscription and 0 schedules 2021-05-22 12:00:48.785 - ESC[32minfoESC[39m: javascript.0 (26393) Start javascript script.js.common.wohnungstuer_entriegelt 2021-05-22 12:00:48.790 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.wohnungstuer_entriegelt: registered 1 subscription and 0 schedules 2021-05-22 12:00:48.999 - ESC[32minfoESC[39m: javascript.0 (26393) Watch /home/iobroker/skripte/common/ 2021-05-22 12:00:49.001 - ESC[32minfoESC[39m: javascript.0 (26393) Watch /home/iobroker/skripte/global/linkeddevices/ 2021-05-22 12:00:49.001 - ESC[32minfoESC[39m: javascript.0 (26393) Watch /home/iobroker/skripte/global/ 2021-05-22 12:00:49.002 - ESC[32minfoESC[39m: javascript.0 (26393) Watch /home/iobroker/skripte/ 2021-05-22 12:01:36.379 - ESC[32minfoESC[39m: javascript.0 (26393) undefined is not a valid state value for id "javascript.0.scriptEnabled.common.nodemihome" 2021-05-22 12:04:14.151 - ESC[32minfoESC[39m: javascript.0 (26393) Stop script script.js.common.nodemihome 2021-05-22 12:04:14.161 - ESC[32minfoESC[39m: javascript.0 (26393) undefined is not a valid state value for id "javascript.0.scriptEnabled.common.nodemihome" 2021-05-22 12:04:14.177 - ESC[32minfoESC[39m: javascript.0 (26393) undefined is not a valid state value for id "javascript.0.scriptEnabled.common.nodemihome" 2021-05-22 12:04:19.832 - ESC[32minfoESC[39m: javascript.0 (26393) Start javascript script.js.common.nodemihome 2021-05-22 12:04:20.044 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Starting AllMyMi V.0.2.16 2021-05-22 12:04:20.105 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: registered 0 subscriptions and 0 schedules 2021-05-22 12:04:22.110 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Retrieving your in cn registered MiHome Devices 2021-05-22 12:04:23.546 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Found 21 MiHome Devices, those are: 2021-05-22 12:04:23.546 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Tor 2021-05-22 12:04:23.547 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Wohnungstür 2021-05-22 12:04:23.548 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Pakettruhe 2021-05-22 12:04:23.548 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Balkontür 2021-05-22 12:04:23.549 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Terrassentür 2021-05-22 12:04:23.549 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Fenster links 2021-05-22 12:04:23.549 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Fenster rechts 2021-05-22 12:04:23.550 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: BWM Wohnzimmer 2021-05-22 12:04:23.550 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: BWM Flur 2021-05-22 12:04:23.551 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Schalter 2021-05-22 12:04:23.551 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Videokamera 2021-05-22 12:04:23.552 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Staubsauger 2021-05-22 12:04:23.552 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Ventilator 2021-05-22 12:04:23.553 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Kaffeemaschine 2021-05-22 12:04:23.553 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Klima WZ 2021-05-22 12:04:23.553 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Klima SZ 2021-05-22 12:04:23.554 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Thermometer Küche 2021-05-22 12:04:23.554 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Wassersensor 2021-05-22 12:04:23.554 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Wassersensor 2021-05-22 12:04:23.555 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Thermometer Bad 2021-05-22 12:04:23.555 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Aqara Cube 2021-05-22 12:04:23.556 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Now searching for supported Devices... 2021-05-22 12:04:23.556 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Device Tor is supported, creating DataPoints 2021-05-22 12:04:23.662 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Now creating device for lumi.gateway.v3 / 7XXXXXXX1 / 192.168.178.32 / 47XXXXXXXXXXXXXXXXXXXXXXXXdd / 10000 2021-05-22 12:04:23.665 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Created device {"_events":{},"_eventsCount":0,"_maxListeners":100,"id":"7XXXXXXX1","address":"192.168.178.32","token":"47XXXXXXXXXXXXXXXXXXXXXXXXdd","protocol":"local","refresh":10000,"_properties":{},"_propertiesToMonitor":["rgb","illumination","mute","arming","gateway_volume","alarming_volume","doorbell_volume","corridor_light","corridor_on_time","night_light_rgb","arming_time","doorbell_push"],"_miotSpec":null,"_miotSpecType":null,"model":"lumi.gateway.v3","setter":{},"definition":{"info":[{"id":"localip","initial":"","forceCreation":false,"common":{"read":true,"write":true,"name":"Ip Adress","type":"string","role":"value","def":""}},{"id":"token","initial":"","forceCreation":false,"common":{"read":true,"write":true,"name":"Token","type":"string","role":"value","def":""}},{"id":"did","initial":"","forceCreation":false,"common":{"read":true,"write":true,"name":"Device Id","type":"string","role":"value","def":""}},{"id":"model","initial":"","forceCreation":false,"common":{"read":true,"write":true,"name":"Model","type":"string","role":"value","def":""}},{"id":"rssi","initial":0,"forceCreation":false,"common":{"read":true,"write":false,"name":"rssi","type":"number","role":"value.rssi","def":0}},{"id":"name","initial":"","forceCreation":false,"common":{"read":true,"write":true,"name":"Name","type":"string","role":"value","def":""}},{"id":"isOnline","initial":false,"forceCreation":false,"common":{"read":true,"write":true,"name":"Is online","type":"boolean","role":"value","def":false}}],"model":"lumi.gateway.v3","description":"Xiaomi RGB Gateway","setter":{},"common":[{"name":"illumination","role":"value.lux","write":false,"read":true,"type":"number","unit":"lux"},{"name":"rgb","role":"level.color.rgb","write":true,"read":true,"type":"string"},{"name":"nightlight_rgb","role":"level.color.rgb","write":true,"read":true,"type":"string"},{"name":"mute","type":"boolean","read":true,"write":true,"role":"state"},{"name":"toggle_light","role":"switch","write":true,"read":true,"type":"boolean"},{"name":"light.dimmer","role":"level.dimmer","write":true,"read":true,"type":"number","unit":"%","min":0,"max":100},{"name":"gateway_volume","role":"level.volume","write":true,"read":true,"type":"number","unit":"%","min":0,"max":100},{"name":"doorbell_volume","role":"level.volume","write":true,"read":true,"type":"number","unit":"%","min":0,"max":100},{"name":"alarming_volume","role":"level.volume","write":true,"read":true,"type":"number","unit":"%","min":0,"max":100},{"name":"doorbell_push","type":"boolean","read":true,"write":true,"role":"state"},{"name":"arming","type":"boolean","read":true,"write":true,"role":"state"},{"name":"arming_time","type":"number","read":true,"write":true,"role":"state"},{"name":"music_ID","role":"state","write":true,"read":false,"type":"number","desc":"10000 - stop, 10005 - custom ringtone"},{"name":"proto_version","role":"info","write":false,"read":true,"type":"string"},{"name":"join_permission","role":"state","write":true,"read":true,"type":"string"},{"name":"remove_device","role":"state","write":true,"read":true,"type":"string"},{"name":"connected","role":"indicator.reachable","write":false,"read":true,"type":"boolean","desc":"Will be set to false if no packets received in 20 seconds"}]},"firstrun":true} now fetching data 2021-05-22 12:04:23.714 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.78328901.info.rssi" has been written without ack-flag with value "-67" 2021-05-22 12:04:23.715 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.lumi.158d0001bb4d1d.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:23.733 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.lumi.158d0001bb5435.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:23.735 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.lumi.158d0001c0ff0a.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:23.737 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.lumi.158d0001c1e912.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:23.740 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.lumi.158d000289ebbe.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:23.742 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.lumi.158d000289edfa.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:23.744 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.lumi.158d0001ad43b1.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:23.749 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.lumi.158d0001dbbcf1.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:23.752 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.lumi.158d000201afb5.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:23.754 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.63722155.info.rssi" has been written without ack-flag with value "-22" 2021-05-22 12:04:23.756 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.74213525.info.rssi" has been written without ack-flag with value "-54" 2021-05-22 12:04:23.758 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.90211825.info.rssi" has been written without ack-flag with value "-67" 2021-05-22 12:04:23.760 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.92202807.info.rssi" has been written without ack-flag with value "-79" 2021-05-22 12:04:23.762 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.blt.3.rauh1qas4400.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:23.794 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.blt.3.raujllfo4000.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:23.796 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.lumi.158d000210a8ce.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:23.797 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.lumi.158d00021126f7.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:23.799 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.lumi.158d0002150d0a.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:23.801 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.lumi.158d0002228321.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:23.802 - ESC[33mwarnESC[39m: javascript.0 (26393) Read-only state "javascript.0.MiHomeAll.lumi.158d0002791f32.info.rssi" has been written without ack-flag with value "0" 2021-05-22 12:04:24.509 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Init Device# 0 - device="lumi.gateway.v3" 2021-05-22 12:04:24.511 - ESC[32minfoESC[39m: javascript.0 (26393) script.js.common.nodemihome: Setting trigger #0 for lumi.gateway.v3 2021-05-22 12:04:34.528 - ESC[33mwarnESC[39m: javascript.0 (26393) You are assigning a number to the state "javascript.0.MiHomeAll.78328901.rgb" which expects a string. Please fix your code to use a string or change the state type to number. This warning might become an error in future versions. 2021-05-22 12:04:34.549 - ESC[33mwarnESC[39m: javascript.0 (26393) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1427:20) 2021-05-22 12:04:34.550 - ESC[33mwarnESC[39m: javascript.0 (26393) at RefreshDps (script.js.common.nodemihome:821:45) 2021-05-22 12:04:34.551 - ESC[33mwarnESC[39m: javascript.0 (26393) at module.exports.<anonymous> (script.js.common.nodemihome:774:21) 2021-05-22 12:04:34.552 - ESC[33mwarnESC[39m: javascript.0 (26393) at module.exports.emit (node:events:365:28) 2021-05-22 12:04:34.552 - ESC[33mwarnESC[39m: javascript.0 (26393) at module.exports.emit (node:domain:470:12) 2021-05-22 12:04:34.552 - ESC[33mwarnESC[39m: javascript.0 (26393) at module.exports.loadProperties (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib/device-miio.js:107:12) 2021-05-22 12:04:34.563 - ESC[32minfoESC[39m: javascript.0 (26393) State value to set for "javascript.0.MiHomeAll.78328901.rgb" has to be type "string" but received type "number"
-
Ich glaube mit meinen Rechten von iobroker stimmt etwas nicht (obwohl iobroker fix ausgeführt):
getfacl: Removing leading '/' from absolute path names # file: opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib/devices/zhimi.airpurifier.mb3.js # owner: marc # group: users user::rwx group::r-x group:iobroker:rwx #effective:r-x mask::r-x other::r-x
-
@marc12345 Die Rechte und owner stimmen nicht
-
@thomas-braun Kann ich das mit einem Befehl einfach beheben?
-
Am besten liest du dich beim Thema ACLs mal bei meinem Freund Stefan Kania ein, der hat das mal ganz gut auseinandergedröselt:
Vermutlich hast du das nämlich nicht beachtet:
Wenn Sie auf einem Eintrag im Dateisystem – egal ob bei einem Verzeichnis oder einer Datei – eine ACL gesetzt haben, dürfen Sie von dem Moment an keine Berechtigungen mehr mit dem Kommando "chmod" ändern.