NEWS
[Vorlage] Xiaomi Airpurifier 3H u.a. inkl. Token auslesen.
-
@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.
-
@thomas-braun sagte in [Vorlage] Xiaomi Airpurifier 3H u.a. inkl. Token auslesen.:
...has been written without ack-flag with value...
Das war nochn kleiner Bug im Skript, wird in der nächsten Version behoben sein und hat nix mit Deinem Problem zu tun. Wollt ich nur erwähnt haben dass die Fehlersuchen nich in ne falsche Richtung geht.
-
@pittini @thomas-braun Vielen Dank an euch. Ich werde mich in die Rechtevergabe jetzt mal intensiv einlesen und dann wird's sicher funktionieren
-
Mal 'ne ganz doofe Frage von mir: Warum lädst du das skript nicht direkt an der richtigen Stelle herunter?
Ungefähr so:echad@chet:~ $ cd /opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib/devices/ echad@chet:/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib/devices $ sudo -u iobroker wget https://github.com/Pittini/iobroker-nodemihome/blob/main/DefinitionfilesForNode-Mihome/zhimi.airpurifier.mb3.js
Dann passen auch die Rechte, da per ACL vergeben.
-
@thomas-braun Es werden weiterhin keine Daten geladen.
Ich vermute, dass mein System irgendwie stark vermurkst ist. Evtl. auch durch OMV5, das ja eine eigene Rechtevergabe vornimmt.
Ich werde den Pi demnächst neu aufsetzen und OMV weg lassen.
So habe ich jetzt aber zumindest etwas mehr über Rechte und Benutzer gelernt.
@Pittini Auch wenn schonmal hier im Verlauf geschrieben: Sowas als Adapter für iobroker wäre weltklasse. -
@marc12345 sagte in [Vorlage] Xiaomi Airpurifier 3H u.a. inkl. Token auslesen.:
Auch wenn schonmal hier im Verlauf geschrieben: Sowas als Adapter für iobroker wäre weltklasse.
Und wie auch schon mal erwähnt, es liegt ja nicht am Willen, sondern ich kanns einfach nicht. Darf gern wer den Code dafür nutzen nenn Adapter draus zu machen ders kann.
-
@pittini Leider eine abschliessende Misserfolgsmeldung:
Habe jetzt ohne irgendwelche Spielereien auf einem Raspi 3b iobroker neu installiert. Die Rechte sind genauso wie bei @thomas-braun. Nichts mit ACL. Ergebnis: Es werden weiterhin keine Daten geladen. -
Er lief bei mir 3 Tage, aber auch trotz restart des Scripts bekomm ich keine Daten mehr von meinen Devices:
Das hier ist der Log nach Script neustart.javascript.0 2021-05-27 14:23:04.166 error at processTimers (internal/timers.js:497:7) javascript.0 2021-05-27 14:23:04.166 error at listOnTimeout (internal/timers.js:554:17) javascript.0 2021-05-27 14:23:04.166 error at Timeout.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-fetch/lib/index.js:1454:13) javascript.0 2021-05-27 14:23:04.166 error (10268) FetchError: network timeout at: https://de.api.io.mi.com/app/home/device_list javascript.0 2021-05-27 14:23:04.166 error (10268) Error: network timeout at: https://de.api.io.mi.com/app/home/device_list javascript.0 2021-05-27 14:23:04.164 error (10268) An error happened which is most likely from one of your scripts, but the originating script could not be detected.
-
@marc12345 sagte in [Vorlage] Xiaomi Airpurifier 3H u.a. inkl. Token auslesen.:
Die Rechte sind genauso wie bei @thomas-braun. Nichts mit ACL.
Meine Dateien sind doch mit ACLs versehen.
-
Dein Problem scheint eher am Netzwerk zu liegen als am Script.
Firewall?
Pihole?