NEWS
Test Adapter Mihome-vacuum v3.1.6 Next Generarition
-
@wildbill ich vergess halt immer, daß ich auf beta/latest bin...
-
Ich habe mal die 3.8.4 veröffentlicht, da sollte das Log ruhiger sein....
-
Hi. Ich habe seit einiger Zeit ein Problem mit der Datei actualMap_0.png (Datenpunkt: mapURL - /mihome-vacuum.admin/actualMap_0.png) unter "/opt/iobroker/iobroker-data/files/mihome-vacuum.admin". Die Datei wird einfach nicht mehr erstellt/aktualisiert.
Den Adapter habe ich auch schon gelöscht und neu installiert. Dabei ist mir aufgefallen, dass der mihome-vacuum.admin-Ordner nicht erstellt wird. Auch wenn ich den Ordner manuell erstelle wird die Datei nicht erstellt.
Ich würde behaupten, dass canvas funktioniert:
code_textiobroker.inst@2.0.3 /opt/iobroker ├─┬ iobroker.javascript@6.1.3 │ └── canvas@2.10.2 └─┬ iobroker.mihome-vacuum@3.8.4 (git+ssh://git@github.com/iobroker-community-adapters/ioBroker.mihome-vacuum.git#8d62b2292ff0508e4bcbbb020cd87e0b8b4f233c) └── canvas@2.10.2 deduped
(hatte 3.8.3 installiert und gehofft, dass mit 3.8.4 das Verhalten besser wird )
Unter "/opt/iobroker/node_modules/iobroker.mihome-vacuum" musste ich mittels npm install canvas die Fehler "entfernen". Danach sieht es so aus (funktioniert aber trotzdem nicht):
iobroker.mihome-vacuum@3.8.4 /opt/iobroker/node_modules/iobroker.mihome-vacuum ├── @alcalzone/release-script-plugin-iobroker@3.5.9 ├── @alcalzone/release-script@3.5.9 ├── @iobroker/adapter-core@2.6.7 ├── @iobroker/testing@4.1.0 ├── @types/chai-as-promised@7.1.5 ├── @types/chai@4.3.3 ├── @types/gulp@4.0.9 ├── @types/mocha@9.1.1 ├── @types/node@18.11.9 ├── @types/proxyquire@1.3.28 ├── @types/sinon-chai@3.2.8 ├── @types/sinon@10.0.13 ├── axios@1.1.3 ├── canvas@2.10.2 ├── chai-as-promised@7.1.1 ├── chai@4.3.7 ├── eslint@8.27.0 ├── gulp@4.0.2 ├── mocha@10.1.0 ├── proxyquire@2.1.3 ├── request@2.88.2 ├── sinon-chai@3.7.0 ├── sinon@14.0.2 ├── treemap-js@1.2.1 ├── typescript@4.8.4 └── zlib@1.0.5
In der VIS nutze ich als Map den Datenpunkt map64. Dieser funktioniert einwandfrei.
Leider weiß ich nun nicht mehr weiter, was ich noch machen könnte. Jemand eine Idee?
-
@dirkhe Ich habe seit ca. Mitte Oktober das Problem, dass die Karte vom Xiaomi China Server teils gar nicht mehr aktualisiert wird währen einer Raumreinigung. Starte ich die Instanz neu, kommt meist sofort eine aktuelle Karte. Wird der nächste Raum aus der queue gestartet färbt sich auch der korrekte Raum in der Karte, aber es kommt dann meist keine Saugerspur. Alle anderen States wie Saugzeit, Fläche, welcher Raum, Saugstärke usw. werden immer direkt korrekt aktualisiert und auch die Steuerung des Saugers funktioniert zu jeder Zeit.
In der Mihome Smartphone App ist die Karte permanent aktuell. Netzwerk (Wifi) Probleme vom Sauger z.B. dürften es also nicht sein. Auf dem Xiaomi Server sind also alle Werte und Positionen inkl Saugpfad bekannt.
Aber warum die Instanz das nun nicht mehr sauber abrufen kann auch über 10-15min hinweg, ist mir unklar. -
@tazdevil20 auf jeden fall erstmal ein debug log, dann rechte prüfen und auch mal schauen, wann der dp geupdatet wurde
-
@diginix ich kann versuchen, mir das mal anzuschauen, aber auch da brauche ich ein debuglog. Ist die Frage, ob er eingeloggt ist (in der cloud). Es wurde vor einiger zeit die kommunikation verschlüsselt, ist aber schon seit feb. 2022 drin.
-
@dirkhe
Danke für die schnelle Antwort. Da hätte ich auch noch dran denken können:2022-11-07 21:19:30.609 - info: mihome-vacuum.0 (140194) select standard vacuum protocol.... 2022-11-07 21:19:30.675 - info: mihome-vacuum.0 (140194) change states from State control.fan_power 2022-11-07 21:19:30.676 - info: mihome-vacuum.0 (140194) create states for water box 2022-11-07 21:19:31.326 - info: mihome-vacuum.0 (140194) settest next timer: not available 2022-11-07 21:21:04.597 - info: host.iobroker instance system.adapter.dwd.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) 2022-11-07 21:21:56.130 - info: host.iobroker stopInstance system.adapter.mihome-vacuum.0 (force=false, process=true) 2022-11-07 21:21:56.141 - info: mihome-vacuum.0 (140194) Got terminate signal TERMINATE_YOURSELF 2022-11-07 21:21:56.145 - info: host.iobroker stopInstance system.adapter.mihome-vacuum.0 send kill signal 2022-11-07 21:21:56.143 - error: mihome-vacuum.0 (140194) Socket Close 2022-11-07 21:21:56.143 - info: mihome-vacuum.0 (140194) terminating 2022-11-07 21:21:56.144 - info: mihome-vacuum.0 (140194) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason 2022-11-07 21:21:56.944 - info: host.iobroker instance system.adapter.mihome-vacuum.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) 2022-11-07 21:21:59.336 - info: host.iobroker instance system.adapter.mihome-vacuum.0 started with pid 143837 2022-11-07 21:22:01.633 - debug: mihome-vacuum.0 (143837) Redis Objects: Use Redis connection: 127.0.0.1:6379 2022-11-07 21:22:01.675 - debug: mihome-vacuum.0 (143837) Objects client ready ... initialize now 2022-11-07 21:22:01.677 - debug: mihome-vacuum.0 (143837) Objects create System PubSub Client 2022-11-07 21:22:01.678 - debug: mihome-vacuum.0 (143837) Objects create User PubSub Client 2022-11-07 21:22:01.770 - debug: mihome-vacuum.0 (143837) Objects client initialize lua scripts 2022-11-07 21:22:01.775 - debug: mihome-vacuum.0 (143837) Objects connected to redis: 127.0.0.1:6379 2022-11-07 21:22:01.870 - debug: mihome-vacuum.0 (143837) Redis States: Use Redis connection: 127.0.0.1:6379 2022-11-07 21:22:01.876 - debug: mihome-vacuum.0 (143837) States create System PubSub Client 2022-11-07 21:22:01.878 - debug: mihome-vacuum.0 (143837) States create User PubSub Client 2022-11-07 21:22:01.886 - debug: mihome-vacuum.0 (143837) States connected to redis: 127.0.0.1:6379 2022-11-07 21:22:01.942 - debug: mihome-vacuum.0 (143837) Plugin sentry Initialize Plugin (enabled=true) 2022-11-07 21:22:02.363 - info: mihome-vacuum.0 (143837) starting. Version 3.8.4 (non-npm: iobroker-community-adapters/ioBroker.mihome-vacuum) in /opt/iobroker/node_modules/iobroker.mihome-vacuum, node: v16.16.0, js-controller: 4.0.23 2022-11-07 21:22:02.477 - debug: mihome-vacuum.0 (143837) load Map creator... true 2022-11-07 21:22:02.511 - debug: mihome-vacuum.0 (143837) Create State for deviceInfo 2022-11-07 21:22:02.512 - debug: mihome-vacuum.0 (143837) Create State for deviceInfomac 2022-11-07 21:22:02.513 - debug: mihome-vacuum.0 (143837) Create State for deviceInfomodel 2022-11-07 21:22:02.513 - debug: mihome-vacuum.0 (143837) Create State for deviceInfofw_ver 2022-11-07 21:22:02.514 - debug: mihome-vacuum.0 (143837) Create State for deviceInfowifi_signal 2022-11-07 21:22:02.515 - debug: mihome-vacuum.0 (143837) MIIO: Config: ip:192.168.178.40 token: 4d794a6542XXXXXXXXX 2022-11-07 21:22:02.518 - info: mihome-vacuum.0 (143837) IOT enabled, create state 2022-11-07 21:22:02.521 - debug: mihome-vacuum.0 (143837) server started on 0.0.0.0:53421 2022-11-07 21:22:02.543 - debug: mihome-vacuum.0 (143837) Receive <<< Helo <<< 213100200000000005c27ac2636968eaffffffffffffffffffffffffffffffff 2022-11-07 21:22:02.544 - debug: mihome-vacuum.0 (143837) MAIN: Connected to device, try to get model.. 2022-11-07 21:22:02.554 - debug: mihome-vacuum.0 (143837) GETMODELFROMAPI: objModel: {"val":"roborock.vacuum.s5","ack":true,"ts":1667852370595,"q":0,"from":"system.adapter.mihome-vacuum.0","user":"system.user.admin","lc":1667848373002} 2022-11-07 21:22:02.556 - debug: mihome-vacuum.0 (143837) Message= {"id":1,"method":"miIO.info"} 2022-11-07 21:22:02.581 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"partner_id":"","id":1,"code":0,"message":"ok","result":{"hw_ver":"Linux","fw_ver":"3.5.8_002034","ap":{"ssid":"TazDevilsCave","bssid":"2C:91:AB:06:9C:FB","rssi":-67},"netif":{"localIp":"192.168.178.40","mask":"255.255.255.0","gw":"192.168.178.1\n127.0.0.1"},"model":"roborock.vacuum.s5","mac":"7C:49:EB:9D:AC:E3","token":"4d794a654241704557764b354353614f","life":62912}} 2022-11-07 21:22:02.582 - debug: mihome-vacuum.0 (143837) GETMODELFROMAPI:Data: {"partner_id":"","id":1,"code":0,"message":"ok","result":{"hw_ver":"Linux","fw_ver":"3.5.8_002034","ap":{"ssid":"TazDevilsCave","bssid":"2C:91:AB:06:9C:FB","rssi":-67},"netif":{"localIp":"192.168.178.40","mask":"255.255.255.0","gw":"192.168.178.1\n127.0.0.1"},"model":"roborock.vacuum.s5","mac":"7C:49:EB:9D:AC:E3","token":"4d794a6542XXXXXX":62912}} 2022-11-07 21:22:02.582 - debug: mihome-vacuum.0 (143837) Get Device data..0 2022-11-07 21:22:02.583 - debug: mihome-vacuum.0 (143837) Get Device data from robot.. {"hw_ver":"Linux","fw_ver":"3.5.8_002034","ap":{"ssid":"TazDevilsCave","bssid":"2C:91:AB:06:9C:FB","rssi":-67},"netif":{"localIp":"192.168.178.40","mask":"255.255.255.0","gw":"192.168.178.1\n127.0.0.1"},"model":"roborock.vacuum.s5","mac":"7C:49:EB:9D:AC:E3","token":"4d794a6542XXXXXX":62912} 2022-11-07 21:22:02.617 - debug: mihome-vacuum.0 (143837) DeviceModel selected to: roborock.vacuum.s5 2022-11-07 21:22:02.618 - info: mihome-vacuum.0 (143837) select standard vacuum protocol.... 2022-11-07 21:22:02.635 - debug: mihome-vacuum.0 (143837) Search can't be optimized because wildcard not at the end, fallback to keys!: function(doc) { if (doc.type === 'state') emit(doc._id, doc) } 2022-11-07 21:22:02.672 - debug: mihome-vacuum.0 (143837) Create State for control: {"id":"mihome-vacuum.0.control"} 2022-11-07 21:22:02.696 - debug: mihome-vacuum.0 (143837) Create State for Queue: queue 2022-11-07 21:22:02.697 - debug: mihome-vacuum.0 (143837) Create State for Queue: clearQueue 2022-11-07 21:22:02.706 - debug: mihome-vacuum.0 (143837) Create State for map: 2022-11-07 21:22:02.707 - debug: mihome-vacuum.0 (143837) Create State for map: map64 2022-11-07 21:22:02.707 - debug: mihome-vacuum.0 (143837) Create State for map: actualMap 2022-11-07 21:22:02.707 - debug: mihome-vacuum.0 (143837) Create State for map: mapStatus 2022-11-07 21:22:02.707 - debug: mihome-vacuum.0 (143837) Create State for map: mapURL 2022-11-07 21:22:02.708 - debug: mihome-vacuum.0 (143837) Create State for map: loadMap 2022-11-07 21:22:02.708 - debug: mihome-vacuum.0 (143837) Create State done! 2022-11-07 21:22:02.708 - debug: mihome-vacuum.0 (143837) get params for stock Vacuum 2022-11-07 21:22:02.709 - debug: mihome-vacuum.0 (143837) Message= {"id":2,"method":"get_status"} 2022-11-07 21:22:02.724 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[{"msg_ver":3,"msg_seq":17215,"state":8,"battery":100,"clean_time":33,"clean_area":467500,"error_code":0,"map_present":1,"in_cleaning":0,"in_returning":0,"in_fresh_state":1,"lab_status":0,"water_box_status":0,"fan_power":104,"dnd_enabled":0,"map_status":1,"lock_status":0}],"id":2} 2022-11-07 21:22:02.725 - debug: mihome-vacuum.0 (143837) setGetStatus {"msg_ver":3,"msg_seq":17215,"state":8,"battery":100,"clean_time":33,"clean_area":467500,"error_code":0,"map_present":true,"in_cleaning":false,"in_returning":0,"in_fresh_state":1,"lab_status":0,"water_box_status":0,"fan_power":104,"dnd_enabled":false,"map_status":1,"lock_status":0,"error_text":"No error"} 2022-11-07 21:22:02.725 - info: mihome-vacuum.0 (143837) change states from State control.fan_power 2022-11-07 21:22:02.726 - info: mihome-vacuum.0 (143837) create states for water box 2022-11-07 21:22:02.734 - debug: mihome-vacuum.0 (143837) Search can't be optimized because wildcard not at the end, fallback to keys!: function(doc) { if (doc.type === 'state') emit(doc._id, doc) } 2022-11-07 21:22:02.869 - debug: mihome-vacuum.0 (143837) Message= {"id":3,"method":"get_room_mapping"} 2022-11-07 21:22:02.896 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[],"id":3} 2022-11-07 21:22:02.897 - debug: mihome-vacuum.0 (143837) Message= {"id":4,"method":"get_consumable"} 2022-11-07 21:22:02.898 - debug: mihome-vacuum.0 (143837) Message= {"id":5,"method":"get_network_info"} 2022-11-07 21:22:02.910 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[{"main_brush_work_time":255627,"side_brush_work_time":255627,"filter_work_time":255627,"filter_element_work_time":0,"sensor_dirty_time":502268}],"id":4} 2022-11-07 21:22:02.912 - debug: mihome-vacuum.0 (143837) Message= {"id":6,"method":"get_clean_summary"} 2022-11-07 21:22:02.978 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":{"ssid":"TazDevilsCave","ip":"192.168.178.40","mac":"7c:49:eb:9d:ac:e3","bssid":"2c:91:ab:06:9c:fb","rssi":-67},"id":5} 2022-11-07 21:22:02.993 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[2354008,37157135000,2039,[1667849541,1667848625,1667846343,1667743820,1667741995,1667733613,1667644421,1667591616,1667379093,1667293849,1667291352,1667224804,1667223988,1667205672,1667203309,1667201028,1667116948,1666151775,1666124044,1666119220]],"id":6} 2022-11-07 21:22:02.995 - debug: mihome-vacuum.0 (143837) Message= {"id":7,"method":"get_clean_record","params":[1667849541]} 2022-11-07 21:22:03.072 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667849541,1667849574,33,467500,0,0,2,1]],"id":7} 2022-11-07 21:22:03.073 - debug: mihome-vacuum.0 (143837) Message= {"id":8,"method":"get_clean_record","params":[1667848625]} 2022-11-07 21:22:03.189 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667848625,1667848834,209,1480000,0,1,2,1]],"id":8} 2022-11-07 21:22:03.190 - debug: mihome-vacuum.0 (143837) Message= {"id":9,"method":"get_clean_record","params":[1667846343]} 2022-11-07 21:22:03.203 - debug: mihome-vacuum.0 (143837) Message= {"id":10,"method":"get_sound_volume"} 2022-11-07 21:22:03.209 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667846343,1667847139,796,8297500,0,1,1,1]],"id":9} 2022-11-07 21:22:03.210 - debug: mihome-vacuum.0 (143837) Message= {"id":11,"method":"get_clean_record","params":[1667743820]} 2022-11-07 21:22:03.211 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[65],"id":10} 2022-11-07 21:22:03.212 - debug: mihome-vacuum.0 (143837) Message= {"id":12,"method":"get_multi_maps_list"} 2022-11-07 21:22:03.232 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667743820,1667743996,176,1507500,0,1,1,1]],"id":11} 2022-11-07 21:22:03.233 - debug: mihome-vacuum.0 (143837) Message= {"id":13,"method":"get_clean_record","params":[1667741995]} 2022-11-07 21:22:03.234 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":"unknown_method","id":12} 2022-11-07 21:22:03.234 - debug: mihome-vacuum.0 (143837) Startup: getMultiMapsList Answer: true 2022-11-07 21:22:03.235 - debug: mihome-vacuum.0 (143837) Startup: Delete getMultiMapsList 2022-11-07 21:22:03.235 - debug: mihome-vacuum.0 (143837) Message= {"id":14,"method":"get_clean_summary"} 2022-11-07 21:22:03.255 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667741995,1667742974,979,7977500,0,1,2,1]],"id":13} 2022-11-07 21:22:03.256 - debug: mihome-vacuum.0 (143837) Message= {"id":15,"method":"get_clean_record","params":[1667733613]} 2022-11-07 21:22:03.257 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[2354008,37157135000,2039,[1667849541,1667848625,1667846343,1667743820,1667741995,1667733613,1667644421,1667591616,1667379093,1667293849,1667291352,1667224804,1667223988,1667205672,1667203309,1667201028,1667116948,1666151775,1666124044,1666119220]],"id":14} 2022-11-07 21:22:03.258 - debug: mihome-vacuum.0 (143837) Startup: setGetCleanSummary Answer: true 2022-11-07 21:22:03.258 - debug: mihome-vacuum.0 (143837) Startup: Delete setGetCleanSummary 2022-11-07 21:22:03.258 - debug: mihome-vacuum.0 (143837) Message= {"id":16,"method":"get_consumable"} 2022-11-07 21:22:03.280 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667733613,1667735417,1804,30895000,0,1,1,1]],"id":15} 2022-11-07 21:22:03.281 - debug: mihome-vacuum.0 (143837) Message= {"id":17,"method":"get_clean_record","params":[1667644421]} 2022-11-07 21:22:03.282 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[{"main_brush_work_time":255627,"side_brush_work_time":255627,"filter_work_time":255627,"filter_element_work_time":0,"sensor_dirty_time":502268}],"id":16} 2022-11-07 21:22:03.284 - debug: mihome-vacuum.0 (143837) Startup: setGetConsumable Answer: true 2022-11-07 21:22:03.284 - debug: mihome-vacuum.0 (143837) Startup: Delete setGetConsumable 2022-11-07 21:22:03.285 - debug: mihome-vacuum.0 (143837) Message= {"id":18,"method":"get_carpet_mode"} 2022-11-07 21:22:03.313 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667644421,1667645408,987,18652500,0,1,1,1]],"id":17} 2022-11-07 21:22:03.314 - debug: mihome-vacuum.0 (143837) Message= {"id":19,"method":"get_clean_record","params":[1667591616]} 2022-11-07 21:22:03.315 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[{"enable":1,"current_integral":450,"current_high":500,"current_low":400,"stall_time":10}],"id":18} 2022-11-07 21:22:03.316 - info: mihome-vacuum.0 (143837) create state for carpet_mode 2022-11-07 21:22:03.316 - debug: mihome-vacuum.0 (143837) Message= {"id":20,"method":"get_carpet_mode"} 2022-11-07 21:22:03.353 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667591616,1667592791,1175,10257500,0,1,1,1]],"id":19} 2022-11-07 21:22:03.353 - debug: mihome-vacuum.0 (143837) Message= {"id":21,"method":"get_clean_record","params":[1667379093]} 2022-11-07 21:22:03.355 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[{"enable":1,"current_integral":450,"current_high":500,"current_low":400,"stall_time":10}],"id":20} 2022-11-07 21:22:03.389 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667379093,1667380114,1021,18865000,0,1,1,1]],"id":21} 2022-11-07 21:22:03.389 - debug: mihome-vacuum.0 (143837) Message= {"id":22,"method":"get_clean_record","params":[1667293849]} 2022-11-07 21:22:03.409 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667293849,1667294807,958,18740000,0,1,2,1]],"id":22} 2022-11-07 21:22:03.409 - debug: mihome-vacuum.0 (143837) Message= {"id":23,"method":"get_clean_record","params":[1667291352]} 2022-11-07 21:22:03.428 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667291352,1667292168,816,8095000,0,1,1,1]],"id":23} 2022-11-07 21:22:03.429 - debug: mihome-vacuum.0 (143837) Message= {"id":24,"method":"get_clean_record","params":[1667224804]} 2022-11-07 21:22:03.448 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667224804,1667225519,712,12632500,0,1,1,1]],"id":24} 2022-11-07 21:22:03.448 - debug: mihome-vacuum.0 (143837) Message= {"id":25,"method":"get_clean_record","params":[1667223988]} 2022-11-07 21:22:03.463 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667223988,1667224752,764,12860000,0,1,1,1]],"id":25} 2022-11-07 21:22:03.463 - debug: mihome-vacuum.0 (143837) Message= {"id":26,"method":"get_clean_record","params":[1667205672]} 2022-11-07 21:22:03.479 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667205672,1667206665,993,19120000,0,1,1,1]],"id":26} 2022-11-07 21:22:03.479 - debug: mihome-vacuum.0 (143837) Message= {"id":27,"method":"get_clean_record","params":[1667203309]} 2022-11-07 21:22:03.502 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667203309,1667205193,1884,37397500,0,1,1,1]],"id":27} 2022-11-07 21:22:03.502 - debug: mihome-vacuum.0 (143837) Message= {"id":28,"method":"get_clean_record","params":[1667201028]} 2022-11-07 21:22:03.521 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667201028,1667203156,2128,38452500,0,1,1,1]],"id":28} 2022-11-07 21:22:03.522 - debug: mihome-vacuum.0 (143837) Message= {"id":29,"method":"get_clean_record","params":[1667116948]} 2022-11-07 21:22:03.538 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1667116948,1667118719,1771,30570000,0,1,1,1]],"id":29} 2022-11-07 21:22:03.539 - debug: mihome-vacuum.0 (143837) Message= {"id":30,"method":"get_clean_record","params":[1666151775]} 2022-11-07 21:22:03.559 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1666151775,1666154427,2652,38870000,0,1,1,1]],"id":30} 2022-11-07 21:22:03.559 - debug: mihome-vacuum.0 (143837) Message= {"id":31,"method":"get_clean_record","params":[1666124044]} 2022-11-07 21:22:03.576 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1666124044,1666125619,1575,24730000,0,1,1,1]],"id":31} 2022-11-07 21:22:03.577 - debug: mihome-vacuum.0 (143837) Message= {"id":32,"method":"get_clean_record","params":[1666119220]} 2022-11-07 21:22:03.591 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[[1666119220,1666120108,888,13647500,0,1,1,1]],"id":32} 2022-11-07 21:22:03.592 - debug: mihome-vacuum.0 (143837) finish logs all [{"Datum":"7.11","Start":"20:32","Saugzeit":"1 min","Fläche":"0.47 m²","Error":0,"Ende":false},{"Datum":"7.11","Start":"20:17","Saugzeit":"3 min","Fläche":"1.48 m²","Error":0,"Ende":true},{"Datum":"7.11","Start":"19:39","Saugzeit":"13 min","Fläche":"8.3 m²","Error":0,"Ende":true},{"Datum":"6.11","Start":"15:10","Saugzeit":"3 min","Fläche":"1.51 m²","Error":0,"Ende":true},{"Datum":"6.11","Start":"14:39","Saugzeit":"16 min","Fläche":"7.98 m²","Error":0,"Ende":true},{"Datum":"6.11","Start":"12:20","Saugzeit":"30 min","Fläche":"30.9 m²","Error":0,"Ende":true},{"Datum":"5.11","Start":"11:33","Saugzeit":"16 min","Fläche":"18.65 m²","Error":0,"Ende":true},{"Datum":"4.11","Start":"20:53","Saugzeit":"20 min","Fläche":"10.26 m²","Error":0,"Ende":true},{"Datum":"2.11","Start":"09:51","Saugzeit":"17 min","Fläche":"18.87 m²","Error":0,"Ende":true},{"Datum":"1.11","Start":"10:10","Saugzeit":"16 min","Fläche":"18.74 m²","Error":0,"Ende":true},{"Datum":"1.11","Start":"09:29","Saugzeit":"14 min","Fläche":"8.1 m²","Error":0,"Ende":true},{"Datum":"31.10","Start":"15:00","Saugzeit":"12 min","Fläche":"12.63 m²","Error":0,"Ende":true},{"Datum":"31.10","Start":"14:46","Saugzeit":"13 min","Fläche":"12.86 m²","Error":0,"Ende":true},{"Datum":"31.10","Start":"09:41","Saugzeit":"17 min","Fläche":"19.12 m²","Error":0,"Ende":true},{"Datum":"31.10","Start":"09:01","Saugzeit":"31 min","Fläche":"37.4 m²","Error":0,"Ende":true},{"Datum":"31.10","Start":"08:23","Saugzeit":"35 min","Fläche":"38.45 m²","Error":0,"Ende":true},{"Datum":"30.10","Start":"09:02","Saugzeit":"30 min","Fläche":"30.57 m²","Error":0,"Ende":true},{"Datum":"19.10","Start":"05:56","Saugzeit":"44 min","Fläche":"38.87 m²","Error":0,"Ende":true},{"Datum":"18.10","Start":"22:14","Saugzeit":"26 min","Fläche":"24.73 m²","Error":0,"Ende":true},{"Datum":"18.10","Start":"20:53","Saugzeit":"15 min","Fläche":"13.65 m²","Error":0,"Ende":true}] 2022-11-07 21:22:03.840 - info: mihome-vacuum.0 (143837) settest next timer: not available 2022-11-07 21:22:12.552 - debug: mihome-vacuum.0 (143837) Receive <<< Helo <<< 213100200000000005c27ac2636968f4ffffffffffffffffffffffffffffffff 2022-11-07 21:22:17.306 - debug: mihome-vacuum.0 (143837) command: start parent: control 2022-11-07 21:22:17.309 - debug: mihome-vacuum.0 (143837) start Cleaning: 5 MObj: {} 2022-11-07 21:22:17.309 - info: mihome-vacuum.0 (143837) trigger cleaning all 2022-11-07 21:22:17.309 - debug: mihome-vacuum.0 (143837) Message= {"id":33,"method":"app_start"} 2022-11-07 21:22:17.318 - debug: mihome-vacuum.0 (143837) We are in onMessage:{"command":"startVacuuming","message":null,"from":"system.adapter.mihome-vacuum.0","_id":29260075} 2022-11-07 21:22:17.319 - debug: mihome-vacuum.0 (143837) Message= {"id":34,"method":"app_start"} 2022-11-07 21:22:17.320 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":["ok"],"id":33} 2022-11-07 21:22:17.326 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":["ok"],"id":34} 2022-11-07 21:22:19.328 - debug: mihome-vacuum.0 (143837) ERROR at setGetStatus: TypeError: Cannot read properties of undefined (reading 'sendMessage') 2022-11-07 21:22:22.561 - debug: mihome-vacuum.0 (143837) Receive <<< Helo <<< 213100200000000005c27ac2636968feffffffffffffffffffffffffffffffff 2022-11-07 21:22:23.442 - debug: mihome-vacuum.0 (143837) get params for stock Vacuum 2022-11-07 21:22:23.442 - debug: mihome-vacuum.0 (143837) Message= {"id":35,"method":"get_status"} 2022-11-07 21:22:23.469 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":[{"msg_ver":3,"msg_seq":17220,"state":5,"battery":100,"clean_time":0,"clean_area":0,"error_code":0,"map_present":1,"in_cleaning":1,"in_returning":0,"in_fresh_state":0,"lab_status":0,"water_box_status":0,"fan_power":104,"dnd_enabled":0,"map_status":1,"lock_status":0}],"id":35} 2022-11-07 21:22:23.469 - debug: mihome-vacuum.0 (143837) setGetStatus {"msg_ver":3,"msg_seq":17220,"state":5,"battery":100,"clean_time":0,"clean_area":0,"error_code":0,"map_present":true,"in_cleaning":true,"in_returning":0,"in_fresh_state":0,"lab_status":0,"water_box_status":0,"fan_power":104,"dnd_enabled":false,"map_status":1,"lock_status":0,"error_text":"No error"} 2022-11-07 21:22:23.472 - debug: mihome-vacuum.0 (143837) Message= {"id":36,"method":"get_network_info"} 2022-11-07 21:22:23.539 - debug: mihome-vacuum.0 (143837) MIIO RECIVE: {"result":{"ssid":"TazDevilsCave","ip":"192.168.178.40","mac":"7c:49:eb:9d:ac:e3","bssid":"2c:91:ab:06:9c:fb","rssi":-67},"id":36} 2022-11-07 21:22:23.570 - debug: mihome-vacuum.0 (143837) Message= {"id":37,"method":"get_sound_volume"} 2022-11-07 21:22:24.144 - error: host.iobroker Caught by controller[0]: FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal. 2022-11-07 21:22:24.144 - error: host.iobroker Caught by controller[1]: 1: 0xb0a860 node::Abort() [io.mihome-vacuum.0] 2022-11-07 21:22:24.145 - error: host.iobroker Caught by controller[2]: 2: 0xa1c193 node::FatalError(char const*, char const*) [io.mihome-vacuum.0] 2022-11-07 21:22:24.145 - error: host.iobroker Caught by controller[3]: 3: 0xcf97aa v8::Utils::ReportApiFailure(char const*, char const*) [io.mihome-vacuum.0] 2022-11-07 21:22:24.145 - error: host.iobroker Caught by controller[4]: 4: 0x7f947c439fee Context2d::GetImageData(Nan::FunctionCallbackInfo const&) [/opt/iobroker/node_modules/iobroker.mihome-vacuum/node_modules/canvas/build/Release/canvas.node] 2022-11-07 21:22:24.145 - error: host.iobroker Caught by controller[5]: 5: 0x7f947c42ae58 [/opt/iobroker/node_modules/iobroker.mihome-vacuum/node_modules/canvas/build/Release/canvas.node] 2022-11-07 21:22:24.145 - error: host.iobroker Caught by controller[6]: 6: 0xd55fae [io.mihome-vacuum.0] 2022-11-07 21:22:24.146 - error: host.iobroker Caught by controller[7]: 7: 0xd573cf v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [io.mihome-vacuum.0] 2022-11-07 21:22:24.146 - error: host.iobroker Caught by controller[8]: 8: 0x15f2e19 [io.mihome-vacuum.0] 2022-11-07 21:22:24.146 - warn: host.iobroker instance system.adapter.mihome-vacuum.0 terminated due to SIGABRT 2022-11-07 21:22:24.146 - info: host.iobroker instance system.adapter.mihome-vacuum.0 terminated with code NaN () 2022-11-07 21:22:24.147 - info: host.iobroker Restart adapter system.adapter.mihome-vacuum.0 because enabled 2022-11-07 21:22:54.417 - info: host.iobroker instance system.adapter.mihome-vacuum.0 started with pid 143871 2022-11-07 21:22:55.635 - debug: mihome-vacuum.0 (143871) Redis Objects: Use Redis connection: 127.0.0.1:6379 2022-11-07 21:22:55.717 - debug: mihome-vacuum.0 (143871) Objects client ready ... initialize now 2022-11-07 21:22:55.735 - debug: mihome-vacuum.0 (143871) Objects create System PubSub Client 2022-11-07 21:22:55.736 - debug: mihome-vacuum.0 (143871) Objects create User PubSub Client 2022-11-07 21:22:55.818 - debug: mihome-vacuum.0 (143871) Objects client initialize lua scripts 2022-11-07 21:22:55.823 - debug: mihome-vacuum.0 (143871) Objects connected to redis: 127.0.0.1:6379 2022-11-07 21:22:55.923 - debug: mihome-vacuum.0 (143871) Redis States: Use Redis connection: 127.0.0.1:6379 2022-11-07 21:22:55.929 - debug: mihome-vacuum.0 (143871) States create System PubSub Client 2022-11-07 21:22:55.930 - debug: mihome-vacuum.0 (143871) States create User PubSub Client 2022-11-07 21:22:55.937 - debug: mihome-vacuum.0 (143871) States connected to redis: 127.0.0.1:6379 2022-11-07 21:22:55.987 - debug: mihome-vacuum.0 (143871) Plugin sentry Initialize Plugin (enabled=true) 2022-11-07 21:22:56.377 - info: mihome-vacuum.0 (143871) starting. Version 3.8.4 (non-npm: iobroker-community-adapters/ioBroker.mihome-vacuum) in /opt/iobroker/node_modules/iobroker.mihome-vacuum, node: v16.16.0, js-controller: 4.0.23 2022-11-07 21:22:56.464 - debug: mihome-vacuum.0 (143871) load Map creator... true 2022-11-07 21:22:56.490 - debug: mihome-vacuum.0 (143871) Create State for deviceInfo 2022-11-07 21:22:56.491 - debug: mihome-vacuum.0 (143871) Create State for deviceInfomac 2022-11-07 21:22:56.492 - debug: mihome-vacuum.0 (143871) Create State for deviceInfomodel 2022-11-07 21:22:56.492 - debug: mihome-vacuum.0 (143871) Create State for deviceInfofw_ver 2022-11-07 21:22:56.493 - debug: mihome-vacuum.0 (143871) Create State for deviceInfowifi_signal 2022-11-07 21:22:56.494 - debug: mihome-vacuum.0 (143871) MIIO: Config: ip:192.168.178.40 token: 4d794a6542XXXXXXXXX 2022-11-07 21:22:56.497 - info: mihome-vacuum.0 (143871) IOT enabled, create state 2022-11-07 21:22:56.500 - debug: mihome-vacuum.0 (143871) server started on 0.0.0.0:53421 2022-11-07 21:22:56.520 - debug: mihome-vacuum.0 (143871) Receive <<< Helo <<< 213100200000000005c27ac263696920ffffffffffffffffffffffffffffffff 2022-11-07 21:22:56.521 - debug: mihome-vacuum.0 (143871) MAIN: Connected to device, try to get model.. 2022-11-07 21:22:56.529 - debug: mihome-vacuum.0 (143871) GETMODELFROMAPI: objModel: {"val":"roborock.vacuum.s5","ack":true,"ts":1667852522603,"q":0,"from":"system.adapter.mihome-vacuum.0","user":"system.user.admin","lc":1667848373002} 2022-11-07 21:22:56.531 - debug: mihome-vacuum.0 (143871) Message= {"id":1,"method":"miIO.info"} 2022-11-07 21:22:58.533 - debug: mihome-vacuum.0 (143871) your device is connected, but didn't answer yet - sometime connection is broken and can take up to 10 Minutes 2022-11-07 21:22:58.534 - debug: mihome-vacuum.0 (143871) GETMODELFROMAPI:Data: {} 2022-11-07 21:22:58.534 - debug: mihome-vacuum.0 (143871) Get Device data..0 2022-11-07 21:22:58.534 - debug: mihome-vacuum.0 (143871) Message= {"id":2,"method":"miIO.info"} 2022-11-07 21:23:00.536 - debug: mihome-vacuum.0 (143871) your device is connected, but didn't answer yet - sometime connection is broken and can take up to 10 Minutes 2022-11-07 21:23:00.537 - debug: mihome-vacuum.0 (143871) GETMODELFROMAPI:Data: {} 2022-11-07 21:23:00.538 - debug: mihome-vacuum.0 (143871) Get Device data..1 2022-11-07 21:23:00.538 - debug: mihome-vacuum.0 (143871) Message= {"id":3,"method":"miIO.info"} 2022-11-07 21:23:02.540 - debug: mihome-vacuum.0 (143871) your device is connected, but didn't answer yet - sometime connection is broken and can take up to 10 Minutes 2022-11-07 21:23:02.541 - debug: mihome-vacuum.0 (143871) GETMODELFROMAPI:Data: {} 2022-11-07 21:23:02.541 - debug: mihome-vacuum.0 (143871) Get Device data..2 2022-11-07 21:23:02.541 - debug: mihome-vacuum.0 (143871) Message= {"id":4,"method":"miIO.info"} 2022-11-07 21:23:04.543 - debug: mihome-vacuum.0 (143871) your device is connected, but didn't answer yet - sometime connection is broken and can take up to 10 Minutes 2022-11-07 21:23:04.544 - debug: mihome-vacuum.0 (143871) GETMODELFROMAPI:Data: {} 2022-11-07 21:23:04.544 - debug: mihome-vacuum.0 (143871) Get Device data..3 2022-11-07 21:23:04.544 - debug: mihome-vacuum.0 (143871) Message= {"id":5,"method":"miIO.info"} 2022-11-07 21:23:06.534 - debug: mihome-vacuum.0 (143871) Receive <<< Helo <<< 213100200000000005c27ac26369692affffffffffffffffffffffffffffffff 2022-11-07 21:23:06.545 - debug: mihome-vacuum.0 (143871) your device is connected, but didn't answer yet - sometime connection is broken and can take up to 10 Minutes 2022-11-07 21:23:06.546 - debug: mihome-vacuum.0 (143871) GETMODELFROMAPI:Data: {} 2022-11-07 21:23:06.547 - debug: mihome-vacuum.0 (143871) Get Device data..4 2022-11-07 21:23:06.547 - error: mihome-vacuum.0 (143871) YOUR DEVICE IS CONNECTED BUT DID NOT ANSWER YET - CONNECTION CAN TAKE UP TO 10 MINUTES - PLEASE BE PATIENT AND DO NOT TURN THE ADAPTER OFF 2022-11-07 21:23:06.547 - warn: mihome-vacuum.0 (143871) No Answer for DeviceModel use old one 2022-11-07 21:23:06.547 - debug: mihome-vacuum.0 (143871) DeviceModel selected to: roborock.vacuum.s5 2022-11-07 21:23:06.549 - info: mihome-vacuum.0 (143871) select standard vacuum protocol.... 2022-11-07 21:23:06.570 - debug: mihome-vacuum.0 (143871) Search can't be optimized because wildcard not at the end, fallback to keys!: function(doc) { if (doc.type === 'state') emit(doc._id, doc) } 2022-11-07 21:23:06.606 - debug: mihome-vacuum.0 (143871) Create State for control: {"id":"mihome-vacuum.0.control"} 2022-11-07 21:23:06.633 - debug: mihome-vacuum.0 (143871) Create State for Queue: queue 2022-11-07 21:23:06.634 - debug: mihome-vacuum.0 (143871) Create State for Queue: clearQueue 2022-11-07 21:23:06.644 - debug: mihome-vacuum.0 (143871) Create State for map: 2022-11-07 21:23:06.644 - debug: mihome-vacuum.0 (143871) Create State for map: map64 2022-11-07 21:23:06.644 - debug: mihome-vacuum.0 (143871) Create State for map: actualMap 2022-11-07 21:23:06.645 - debug: mihome-vacuum.0 (143871) Create State for map: mapStatus 2022-11-07 21:23:06.645 - debug: mihome-vacuum.0 (143871) Create State for map: mapURL 2022-11-07 21:23:06.645 - debug: mihome-vacuum.0 (143871) Create State for map: loadMap 2022-11-07 21:23:06.646 - debug: mihome-vacuum.0 (143871) Create State done! 2022-11-07 21:23:06.646 - debug: mihome-vacuum.0 (143871) get params for stock Vacuum 2022-11-07 21:23:06.647 - debug: mihome-vacuum.0 (143871) Message= {"id":6,"method":"get_status"} 2022-11-07 21:23:07.218 - info: mihome-vacuum.0 (143871) settest next timer: not available 2022-11-07 21:23:08.648 - debug: mihome-vacuum.0 (143871) your device is connected, but didn't answer yet - sometime connection is broken and can take up to 10 Minutes 2022-11-07 21:23:08.649 - debug: mihome-vacuum.0 (143871) Message= {"id":7,"method":"get_network_info"} 2022-11-07 21:23:10.651 - debug: mihome-vacuum.0 (143871) your device is connected, but didn't answer yet - sometime connection is broken and can take up to 10 Minutes 2022-11-07 21:23:10.652 - debug: mihome-vacuum.0 (143871) Message= {"id":8,"method":"get_sound_volume"} 2022-11-07 21:23:12.654 - debug: mihome-vacuum.0 (143871) your device is connected, but didn't answer yet - sometime connection is broken and can take up to 10 Minutes 2022-11-07 21:23:12.656 - debug: mihome-vacuum.0 (143871) Message= {"id":9,"method":"get_multi_maps_list"} 2022-11-07 21:23:14.658 - debug: mihome-vacuum.0 (143871) your device is connected, but didn't answer yet - sometime connection is broken and can take up to 10 Minutes 2022-11-07 21:23:14.659 - debug: mihome-vacuum.0 (143871) Startup: getMultiMapsList Answer: true 2022-11-07 21:23:14.659 - debug: mihome-vacuum.0 (143871) Startup: Delete getMultiMapsList 2022-11-07 21:23:14.659 - debug: mihome-vacuum.0 (143871) Message= {"id":10,"method":"get_clean_summary"} 2022-11-07 21:23:16.545 - debug: mihome-vacuum.0 (143871) Receive <<< Helo <<< 213100200000000005c27ac263696934ffffffffffffffffffffffffffffffff 2022-11-07 21:23:16.661 - debug: mihome-vacuum.0 (143871) your device is connected, but didn't answer yet - sometime connection is broken and can take up to 10 Minutes 2022-11-07 21:23:16.662 - debug: mihome-vacuum.0 (143871) Startup: setGetCleanSummary Answer: false 2022-11-07 21:23:16.662 - debug: mihome-vacuum.0 (143871) Message= {"id":11,"method":"get_consumable"} 2022-11-07 21:23:18.664 - debug: mihome-vacuum.0 (143871) your device is connected, but didn't answer yet - sometime connection is broken and can take up to 10 Minutes 2022-11-07 21:23:18.664 - debug: mihome-vacuum.0 (143871) Startup: setGetConsumable Answer: false 2022-11-07 21:23:26.556 - debug: mihome-vacuum.0 (143871) Receive <<< Helo <<< 213100200000000005c27ac26369693effffffffffffffffffffffffffffffff
Der map64 Datenpunkt wurde ganz normal aktualisiert. Das Verzeichnis bzw. die Datei existieren weiterhin nicht. Auf "files" hat ganz normal iobroker zugriff:
drwxrwxr-x+ 59 iobroker iobroker 4096 Nov 7 20:10 files/
Noch als Ergänzung:
michael@iobroker:/opt/iobroker/iobroker-data$ node -v v16.16.0 michael@iobroker:/opt/iobroker/iobroker-data$ npm -v 8.11.0
-
@tazdevil20 sagte in Test Adapter Mihome-vacuum v3.1.6 Next Generarition:
Noch als Ergänzung:
Noch als Ergänzung von mir: System aktuell halten. 16.18.1 ist aktuell.
-
@thomas-braun
Dann müsste ich aber auf v19 (latest) oder v18 (lts)
Glaube mit 16.16.0 bin ich jetzt nicht wirklich schlecht dran. Mache aber das Update. -
@tazdevil20 sagte in Test Adapter Mihome-vacuum v3.1.6 Next Generarition:
Dann müsste ich aber auf v19 (latest) oder v18 (lts)
Glaube mit 16.16.0 bin ich jetzt nicht wirklich schlecht dran. Mache aber das Update.???? Node 16.18.1 ist die aktuelle Version im 16er-Zweig.
Zum schlecht dran sein nur:New security releases now available for Node.js 14, 16, 18, 19 release lines
-
@thomas-braun
Ich glaube das ist eine ganz andere Diskussion die hier nicht unbedingt geführt werden muss. Habe bei einem anderen Thema auch schon mir anhören müssen, dass ich doch besser auf stable und nicht auf beta mit den Adaptern wäre. Das sollte doch bitte jedem selbst überlassen sein wie er sein System aktuell hält oder nicht bzw. die letzten Features nutzen möchte oder nicht...
Da es sich "nur" um Secruity Releses handelt hat es vermutlich nichts mit meinem Problem zu tun. -
Beim Thema 'System aktuell halten' gibt es keine zwei Meinungen.
-
@tazdevil20 das ist auf jeden fall ein problem ins filesystem zu schreiben, das problem ist, dass der adapter völlig abstürzt, das kann ich nicht abfangen.
Der stürzt bei adapter.writeFile(... ab -
@dirkhe
Danke.Ein iob fix hat nicht geholfen. Das Problem ist scheinbar redis.
Das System sieht von der Konfiguration so aus:
iobroker is running on this host. At least one iobroker host is running. Objects type: redis States type: redis
Nach dem ich die Konfiguration auf file/file umgestellt habe hat wieder alles funktioniert. Wieder auf redis/redis umgestellt funktioniert das Speichern der Karte nicht.
Eine Idee wie man das lösen könnte? Ich nutze die png nur um mir nach dem Saugvorgang ein Bild des gesaugten Bereichs per Telegram zu senden. Lässt sich das auch mit base64 lösen? Dann hätte ich einen Workaround.
-
laeuft denn dein Redis-Server?
-
@ilovegym
Der Dienst läuft und wenn ich die redis-cli starte kann ich auch ganz normal z. B. "info server" mir anzeigen lassen.
Ich suche gerade eine Möglichkeit mittels Javascript Daten aus der Redis-DB auszulesen. Ich denke, dass das mein Problem ist da die Daten nicht mehr im Filesystem abgelegt werden. Oder habe ich redis falsch verstanden? -
hast du richtig verstanden, deine Daten liegen bei redis/redis in der Redis-Datenbank. Zugriff hast du damit mit bei iobroker javascript mit readfile / writefile, im Gegenzug zu readfilefs/writefilefs was aufs Filesystem zugreift.
-
hmm ich habe gerade mit den Räumen bisschen rumgespielt. Ich bekomme nur IDs angezeigt keine Namen.
Wie finde ich nun raus was welcher Raum ist? So weiss ich ja welcher Mapindex dann der Raum ist und dann den Staubsauger zum Mapindex schicken.
Leider kann man wohl auch nicht erkennen in welchem Raum er gerade ist? Ich bekomme in dem Räumen leider keine änderungen wenn er sich darin befindet. -
@chrisxy da hilft nur den Raum einmal mit dem Button roomclean reinigen zu lassen, dann siehst du, welcher das ist..
oder hat jemand ne andere Idee ??? -
@ilovegym
Dann war die Überlegung nicht ganz falsch. Aber nächstes Problem. Ich bekomme die Daten aus Redis nicht raus.In den Beispielen in der Dokumentation (https://github.com/ioBroker/ioBroker.javascript/blob/master/docs/en/javascript.md#readfile) würde es wie folgt aussehen:
readFile('mihome-vacuum.admin', '/actualMap_0.png', function (error, data) { console.log(data.substring(0, 50)); });
oder
readFile('/../mihome-vacuum.admin/actualMap_0.png', function (error) { console.log(data.substring(0, 50)); });
Bei beiden Abfragen kommt die Meldung
TypeError: Cannot read properties of undefined (reading 'substring')
zusätzlich stürzt der komplette javascript-Adapter ab. Das Beispiel 1 aus der Dokumentation funktioniert. Das Beispiel zwei nicht.
Hab jemand das schon hinbekommen und kann mir mitteilen wo ich den Fehler habe?