Habe einen alten Beitrag von dir gefunden Meister, deshalb habe ich mal etwas gesucht.
Folgende Urls habe ich schon einmal gefunden:
# http://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:vacuum:0000A006:roidmi-v60:1
gibt auch noch mit :2
# http://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:vacuum:0000A006:roidmi-v60:2
Des Weiteren habe ich dann mal die alten Befehle genutzt, die vermutlich hier nicht passen werden.
Bitte hier um Berichtigung und evtl. um ein/zwei Beispiele, dann setze ich die Befehle anders um:
"battery": {"siid": 3, "piid": 1}, [{"code":0,"did":"408365077","piid":1,"siid":3,"value":100}]
"charge_state": {"siid": 3, "piid": 2}, [{"code":0,"did":"408365077","piid":2,"siid":3,"value":1}]
"error": {"siid": 2, "piid": 2}, [{"code":0,"did":"408365077","piid":2,"siid":2,"value":0}]
"state": {"siid": 2, "piid": 1}, [{"code":0,"did":"408365077","piid":1,"siid":2,"value":9}]
"fan_speed": {"siid": 2, "piid": 6}, [{"code":-4003,"did":"408365077","piid":6,"siid":2}]
"operating_mode": {"siid": 2, "piid": 4}, [{"code":0,"did":"408365077","piid":4,"siid":2,"value":2}]
"mop_state": {"siid": 16, "piid": 1}, [{"did":"408365077","piid":1,"siid":16}]
"water_level": {"siid": 2, "piid": 5}, [{"code":-4003,"did":"408365077","piid":5,"siid":2}]
"brush_life_level": {"siid": 14, "piid": 1}, [{"code":0,"did":"408365077","piid":1,"siid":14,"value":0}]
# "brush_life_time": {"siid": 14, "piid": 2}, [{"code":-4003,"did":"408365077","piid":2,"siid":14}]
"brush_life_level2": {"siid": 15, "piid": 1}, [{"code":0,"did":"408365077","piid":1,"siid":15,"value":1722}]
# "brush_life_time2": {"siid": 15, "piid": 2}, [{"code":0,"did":"408365077","piid":2,"siid":15,"value":95}]
"filter_life_level": {"siid": 11, "piid": 1}, [{"code":0,"did":"408365077","piid":1,"siid":11,"value":17922}]
# "filter_life_time": {"siid": 11, "piid": 2}, [{"code":0,"did":"408365077","piid":2,"siid":11,"value":99}]
"clean_area": {"siid": 9, "piid": 1}, [{"code":0,"did":"408365077","piid":1,"siid":9,"value":40}]
"clean_time": {"siid": 18, "piid": 5}, [{"did":"408365077","piid":5,"siid":18}]
"total_clean_count": {"siid": 9, "piid": 5}, [{"code":-4003,"did":"408365077","piid":5,"siid":9}]
# "total_clean_area": {"siid": 9, "piid": 3}, [{"code":-4003,"did":"408365077","piid":3,"siid":9}]
# "dnd_enabled": {"siid": 12, "piid": 2}, [{"code":0,"did":"408365077","piid":2,"siid":12,"value":99}]
# "audio_volume": {"siid": 4, "piid": 2}, [{"did":"408365077","piid":2,"siid":4}]
# "direction_key": {"siid": 8, "piid": 1} [{"code":0,"did":"408365077","piid":1,"siid":8,"value":0}]
Folgende Fehlermeldung kommt wenn ich die Befehle ausgeführt habe:
host.iobroker 2021-04-14 21:11:04.084 info instance system.adapter.mihome-vacuum.0 started with pid 1074
host.iobroker 2021-04-14 21:10:34.061 info Restart adapter system.adapter.mihome-vacuum.0 because enabled
host.iobroker 2021-04-14 21:10:34.061 error instance system.adapter.mihome-vacuum.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
mihome-vacuum.0 2021-04-14 21:10:33.381 warn (32537) Terminated (UNCAUGHT_EXCEPTION): Without reason
mihome-vacuum.0 2021-04-14 21:10:33.380 info (32537) terminating
mihome-vacuum.0 2021-04-14 21:10:33.368 error (32537) Cannot read property 'stateChange' of null
mihome-vacuum.0 2021-04-14 21:10:33.367 error (32537) TypeError: Cannot read property 'stateChange' of null at MihomeVacuum.onStateChange (/opt/iobroker/node_modules/iobroker.mihome-vacuum/main.js:316:10) at process._tickCallback (interna
mihome-vacuum.0 2021-04-14 21:10:33.367 error (32537) unhandled promise rejection: Cannot read property 'stateChange' of null
mihome-vacuum.0 2021-04-14 21:10:33.367 error (32537) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
mihome-vacuum.0 2021-04-14 21:10:33.366 debug (32537) Get self send data:{"id":6,"result":[{"code":0,"did":"408365077","piid":1,"siid":8,"value":0}]}
mihome-vacuum.0 2021-04-14 21:10:33.366 debug (32537) MIIO RECIVE: {"id":6,"result":[{"code":0,"did":"408365077","piid":1,"siid":8,"value":0}]}
mihome-vacuum.0 2021-04-14 21:10:33.099 debug (32537) Message= {"id":6,"method":"get_properties","params":[{"did":"408365077","siid":8,"piid":1}]}
mihome-vacuum.0 2021-04-14 21:10:33.099 info (32537) send message: Method: get_properties Params: [{"did":"408365077","siid":8,"piid":1}]
Gruß
Blacky