NEWS
Test Adapter Mihome-vacuum v3.1.6 Next Generarition
-
@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?
-
@ilovegym ja nun hat es geklappt ich musste jeweils den Staubsauger zur Ladestation schicken. Sonst hat er es nicht angekommen. Noch ein Tipp? Wie kann ich nun per Control eine ID angeben? Geht das? Also Mapindex 12 soll er reinigen? Oder muss ich dies zwingend über den room.71284738.clean.. gehen ?
Plan war es eine Dropdown im VIS oder ähnliches zu machen wo man den Raum nur auswählen muss. Notlösung jeder Raum ein Schalter.
Den Status in welchem Raum er ist kann man nicht sehen? Außer die MAP
-
@chrisxy mit den ID's hab ich noch nie gearbeitet .. k.a.
Ich hab das gar nicht in der VIS drin, nur die Raeume mit dem iot-Adapter verknuepft, Alexa reinige Wohnzimmer, und fertich.. mehr brauchen wir hier nicht.. der Rest geht automatisch, wenn keiner Zuhause ist mit den 4 Saugern..
@tazdevil20
was hast du denn vor?Ich lasse mir nur Statusmeldungen und die Map aufs Handy schicken per SynoChat..
Und wenn der Staubbehaelter voll ist, fahren se zum Muelleimer.. dazu hab ich ein Script, dass zu jedem vollendeten Saugvorgang einen Zaehler hochsetzt, bis der Behaelter voll ist ( hab ich selbst rausklabustert wieviel das bei welchem Sauger ist).. Wenn der Behaelter geleert ist, muss ich den Datenpunkt dann wieder manuell auf 0% setzen, was ich zu 99% vergesse und er beim naechsten mal wieder zum Muelleimer faehrt.. er vergisst ja nix..
-
@chrisxy
In vis so:
und mit einem Script:
// Mihome - Staubsauger var request = require('request'), logging = true, Auto_Sprache = 'javascript.0.System.Automatik.Sprachausgabe'; var ID_Wz = "2803", ID_Kueche = "2831", ID_Buero = "2832", ID_Flur = "5081", ID_Sz = "2868", ID_Bad = "2870", ID_GaesteWC = "2902", ID_Arbeitsz = "3924" // Räume: Erdgeschoss Kellergeschoss // 451001032803 Wohnzimmer 451001035078 ??? // 451001032831 Küche 451001035079 ??? // 451001032832 Büro 451001035080 ??? // 451001035081 Flur // 451001032868 Schlafzimmer // 451001032870 Bad // 451001032902 Gäste WC // 451001033924 Arbeitszimmer // Zonen - Reinigung ---------------------------------------------------------------------------------------------- on({id: "javascript.0.Geräte.Staubsauger.Taster_Zone", change: "ne", val:true}, function() { // Taster wurde gedrückt var Zone = []; setState('mihome-vacuum.0.cleanmap.actualMap', 0); // 0 = Erdgeschoss, 1 = Kellergeschoss setTimeout(function() { if (getState("javascript.0.Geräte.Staubsauger.Zone_Arbeitszimmer").val) { setState('mihome-vacuum.0.rooms.45100103' + ID_Arbeitsz + '.roomClean', true); Zone.push("Arbeitszimmer"); }}, 500); setTimeout(function() { if (getState("javascript.0.Geräte.Staubsauger.Zone_Bad").val) { setState('mihome-vacuum.0.rooms.45100103' + ID_Bad + '.roomClean', true); Zone.push("Bad"); }}, 1000); setTimeout(function() { if (getState("javascript.0.Geräte.Staubsauger.Zone_Büro").val) { setState('mihome-vacuum.0.rooms.45100103' + ID_Buero + '.roomClean', true); Zone.push("Büro"); }}, 1500); setTimeout(function() { if (getState("javascript.0.Geräte.Staubsauger.Zone_Flur").val) { setState('mihome-vacuum.0.rooms.45100103' + ID_Flur + '.roomClean', true); Zone.push("Flur"); }}, 2000); setTimeout(function() { if (getState("javascript.0.Geräte.Staubsauger.Zone_GästeWC").val) { setState('mihome-vacuum.0.rooms.45100103' + ID_GaesteWC + '.roomClean', true); Zone.push("Gäste WC"); }}, 2500); setTimeout(function() { if (getState("javascript.0.Geräte.Staubsauger.Zone_Küche").val) { setState('mihome-vacuum.0.rooms.45100103' + ID_Kueche + '.roomClean', true); Zone.push("Küche"); }}, 3000); setTimeout(function() { if (getState("javascript.0.Geräte.Staubsauger.Zone_Schlafzimmer").val) { setState('mihome-vacuum.0.rooms.45100103' + ID_Sz + '.roomClean', true); Zone.push("Schlafzimmer"); }}, 3500); setTimeout(function() { if (getState("javascript.0.Geräte.Staubsauger.Zone_Wohnzimmer").val) { setState('mihome-vacuum.0.rooms.45100103' + ID_Wz + '.roomClean', true); Zone.push("Wohnzimmer"); }}, 4000); setTimeout(function() { if (Zone.length == 0) { if (Sprache === true || Sprache === 1) { Tablet_Lautstaerke(getState("javascript.0.System.Sonstige.Laut_Gong").val); setState('sayit.3.tts.text', '/opt/iobroker/iobroker-data/files/vis.0/mp3/tos-computer-03.mp3'); setTimeout(function() { Tablet_Lautstaerke(getState("javascript.0.System.Sonstige.Laut_Text").val); }, 2800); setTimeout(function() { setState('sayit.4.tts.text', "Achtung, zur Zonenreinigung muss mindestens 1 Raum angeklickt sein!")}, 3000); } log ("Zonenreinigung: Es wurde kein Raum angeklickt!"); } else { var Sprache = getState(Auto_Sprache).val; var Str_Zone = Zone.join(', '); if (Sprache === true || Sprache === 1) { Tablet_Lautstaerke(getState("javascript.0.System.Sonstige.Laut_Gong").val); setState('sayit.3.tts.text', '/opt/iobroker/iobroker-data/files/vis.0/mp3/tos-computer-03.mp3'); setTimeout(function() { Tablet_Lautstaerke(getState("javascript.0.System.Sonstige.Laut_Text").val); }, 2800); setTimeout(function() { setState('sayit.4.tts.text', "ok, Die Zonenreinigung wird im " + Str_Zone + " ausgeführt!")}, 2000); } log ("Zonenreinigung wird im " + Str_Zone + " durchgeführt!"); } }, 5000); }); // Fahre zum Mülleimer ---------------------------------------------------------------------------------------------- on({id: "javascript.0.Geräte.Staubsauger.Taster_Muell", change: "ne", val:true}, function() { // Taster wurde gedrückt var Sprache = getState(Auto_Sprache).val; if (Sprache === true || Sprache === 1) { Tablet_Lautstaerke(getState("javascript.0.System.Sonstige.Laut_Gong").val); setState('sayit.3.tts.text', '/opt/iobroker/iobroker-data/files/vis.0/mp3/tos-computer-03.mp3'); setTimeout(function() { Tablet_Lautstaerke(getState("javascript.0.System.Sonstige.Laut_Text").val); }, 2800); setTimeout(function() { setState('sayit.4.tts.text', "ok, Der Staubsauger fährt zum Mülleimer!")}, 2000); } //setState('mihome-vacuum.0.control.fan_power', 104); // Beschleunige die Fahrt auf 100% setStateDelayed('mihome-vacuum.0.control.goTo', "17500,29300", 3000); //setStateDelayed('mihome-vacuum.0.control.X_send_command','app_goto_target; [17350,22600]', 3000); //setStateDelayed('mihome-vacuum.0.control.fan_power', 102, 300000); // nach 5 Minuten die Power wieder auf 50% });
-
warum machst du das aller per script? Du hast doch für jeden raum deine datenpunkte und kansst die starten, sauglevel einstelle usw. Dax fanze kannst du auch für eine zone machen, einfach addroom ancklicken ubd koordinaten eingeben
-
@dirkhe sagte in Test Adapter Mihome-vacuum v3.1.6 Next Generarition:
warum machst du das aller per script? Du hast doch für jeden raum deine datenpunkte und kansst die starten, sauglevel einstelle usw. Dax fanze kannst du auch für eine zone machen, einfach addroom ancklicken ubd koordinaten eingeben
addroom ging bei mir nicht (oder ich hab es nicht hinbekommen).
Deshalb hab ich mir ein Script geschrieben. -
@ilovegym
Habe es aufgegeben mit Redis das ganze zu lösen. Schlussendlich habe ich die Funktion wie in der Doku (umwandlung in eine jpg-Datei im Filesystem) eingebaut:function send(text) { request.get({url: 'http://iobroker.fritz.box:8082/mihome-vacuum.admin/actualMap_0.png', encoding: 'binary'}, function (err, response, body) { fs.writeFile("/tmp/roborock.jpg", body, 'binary', function(err) { if (err) { console.error(err); } else { sendTo('telegram.0', { text: '/tmp/roborock.jpg', caption: text }); } }); }); }
Zumindest funktioniert es wieder so wie ich wollte.
Vielen Dank an alle für die Hinweise und Hilfe.