NEWS
Test Adapter mihome-vacuum 3.x.x (STYJ02YM / Viomi)
-
@kakacs sagte in Test Adapter mihome-vacuum 3.x.x (STYJ02YM / Viomi):
viomi.vacuum.v19
bitte nochmal von git installieren und debug posten (bitte log in codetags)
-
@meistertr @meistertr said in Test Adapter mihome-vacuum 3.x.x (STYJ02YM / Viomi):
log in codetags
ok mache ich wie geht das mit log in code tags ??? bin noch nicht so fit mit iobroker sorry.
hast du geshen in dem log was ich gepostet habe ws bedeutet das
Time difference between Mihome Vacuum and ioBroker ich installier den adapter noch mal neu den du mir empfohlen hast richtig?? und soll ich erst wieder löschen ?? -
@meistertr hab den gelöscht und will den noch mal installieren und dann kommt das
$ ./iobroker url " https://github.com/iobroker-community-adapters/ioBroker.mihome-vacuum/tarball/rebuild3" --debug
install "
NPM version: 6.14.11
npm install " --loglevel error --prefix "/opt/iobroker" (System call)
/bin/sh: 1: Syntax error: Unterminated quoted string
ERROR: host.raspberrypi Cannot install ": 2
ERROR: process exited with code 25 -
@kakacs sagte in Test Adapter mihome-vacuum 3.x.x (STYJ02YM / Viomi):
leerzeichen davor
-
@kakacs löschen brachst du ihn vor dem drüber installieren nicht. das sind nur kleine Änderungen die ich vornehme. Die Timedifference ist nebensächlich, das bedeutet nur dass der roboter und der adapter unterschiedliche uhrzeiten haben und die Nachrichten daran angepasst werden
-
@meistertr ok ich hab denn jetzt schon gelöscht wie meinst du leerzeichen davor
-
@kakacs Du hattest vor dem Link nen Leerzeichen
-
@audi1503 hab ich gemerckt grins ist das normal alles was da steht beim installieren
$ ./iobroker url "https://github.com/iobroker-community-adapters/ioBroker.mihome-vacuum/tarball/rebuild3" --debug
install iobroker-community-adapters/ioBroker.mihome-vacuum#rebuild3
NPM version: 6.14.11npm install iobroker-community-adapters/ioBroker.mihome-vacuum#rebuild3 --loglevel error --prefix "/opt/iobroker" (System call)canvas@2.7.0 install /opt/iobroker/node_modules/canvas> node-pre-gyp install --fallback-to-build
make: Verzeichnis „/opt/iobroker/node_modules/canvas/build“ wird betreten
SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node
COPY Release/canvas-postbuild.node
CXX(target) Release/obj.target/canvas/src/backend/Backend.o
CXX(target) Release/obj.target/canvas/src/backend/ImageBackend.o
CXX(target) Release/obj.target/canvas/src/backend/PdfBackend.o
CXX(target) Release/obj.target/canvas/src/backend/SvgBackend.o
CXX(target) Release/obj.target/canvas/src/bmp/BMPParser.o
../src/bmp/BMPParser.cc: In member function ‘void BMPParser::Parser::parse(uint8_t*, int, uint8_t*)’:
../src/bmp/BMPParser.cc:186:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] E(ptr - data > imgdOffset, "image data overlaps with another structure"); ~~../src/bmp/BMPParser.cc:10:25: note: in definition of macro ‘E’ #define E(cond, msg) if(cond) return setErr(msg) ^~~~^
../src/bmp/BMPParser.cc:201:27: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare] E(ptr - data + imgdSize > len, "not enough image data"); ~~~~~~~~~~~~~~~~~../src/bmp/BMPParser.cc:10:25: note: in definition of macro ‘E’ #define E(cond, msg) if(cond) return setErr(msg) ^^
CXX(target) Release/obj.target/canvas/src/Backends.o
CXX(target) Release/obj.target/canvas/src/Canvas.o
CXX(target) Release/obj.target/canvas/src/CanvasGradient.o
CXX(target) Release/obj.target/canvas/src/CanvasPattern.o
CXX(target) Release/obj.target/canvas/src/CanvasRenderingContext2d.o
CXX(target) Release/obj.target/canvas/src/closure.o
CXX(target) Release/obj.target/canvas/src/color.o
CXX(target) Release/obj.target/canvas/src/Image.o
CXX(target) Release/obj.target/canvas/src/ImageData.o
CXX(target) Release/obj.target/canvas/src/init.o
CXX(target) Release/obj.target/canvas/src/register_font.o
SOLINK_MODULE(target) Release/obj.target/canvas.node
COPY Release/canvas.node
make: Verzeichnis „/opt/iobroker/node_modules/canvas/build“ wird verlassen- iobroker.mihome-vacuum@3.0.0
added 23 packages from 15 contributors in 70.367s
52 packages are looking for funding run
npm fund
for details
upload [11] mihome-vacuum.admin /opt/iobroker/node_modules/iobroker.mihome-vacuum/admin/words.js words.js application/javascript
upload [10] mihome-vacuum.admin /opt/iobroker/node_modules/iobroker.mihome-vacuum/admin/valetudo_logo_small.svg valetudo_logo_small.svg image/svg+xml
upload [9] mihome-vacuum.admin /opt/iobroker/node_modules/iobroker.mihome-vacuum/admin/valetudo_conf.png valetudo_conf.png image/png
upload [8] mihome-vacuum.admin /opt/iobroker/node_modules/iobroker.mihome-vacuum/admin/tank.png tank.png image/png
upload [7] mihome-vacuum.admin /opt/iobroker/node_modules/iobroker.mihome-vacuum/admin/spaceship.png spaceship.png image/png
upload [6] mihome-vacuum.admin /opt/iobroker/node_modules/iobroker.mihome-vacuum/admin/root/howto.md root/howto.md text/markdown
upload [5] mihome-vacuum.admin /opt/iobroker/node_modules/iobroker.mihome-vacuum/admin/robot1.png robot1.png image/png
upload [4] mihome-vacuum.admin /opt/iobroker/node_modules/iobroker.mihome-vacuum/admin/robot.png robot.png image/png
upload [3] mihome-vacuum.admin /opt/iobroker/node_modules/iobroker.mihome-vacuum/admin/mihome-vacuum.png mihome-vacuum.png image/png
upload [2] mihome-vacuum.admin /opt/iobroker/node_modules/iobroker.mihome-vacuum/admin/index_m.html index_m.html text/html
upload [1] mihome-vacuum.admin /opt/iobroker/node_modules/iobroker.mihome-vacuum/admin/index.html index.html text/html
upload [0] mihome-vacuum.admin /opt/iobroker/node_modules/iobroker.mihome-vacuum/admin/S5.png S5.png image/png
process exited with code 0das sagt der log jetzt
mihome-vacuum.0 2021-04-04 17:14:52.696 debug (2687) system.adapter.admin.0: logging true
mihome-vacuum.0 2021-04-04 16:14:51.546 debug (2687) Recievded params for viomi: {"result":[],"id":5,"exe_time":100}
mihome-vacuum.0 2021-04-04 16:14:51.545 debug (2687) MIIO RECIVE: {"result":[],"id":5,"exe_time":100}
mihome-vacuum.0 2021-04-04 16:14:51.206 debug (2687) Message= {"id":5,"method":"get_prop","params":["run_state","suction_grade","mode","err_state","battary_life","start_time","order_time","s_time","s_area","v_state","zone_data","repeat_state","r
mihome-vacuum.0 2021-04-04 16:14:51.204 debug (2687) get params for Viomi
mihome-vacuum.0 2021-04-04 16:14:49.851 warn (2687) Time difference between Mihome Vacuum and ioBroker: -1617220013 sec
mihome-vacuum.0 2021-04-04 16:14:49.849 debug (2687) Receive <<< Helo <<< 21310020000000001661f4ca0005063cffffffffffffffffffffffffffffffff
mihome-vacuum.0 2021-04-04 16:14:31.203 debug (2687) Recievded params for viomi: {"result":[],"id":4,"exe_time":100}
mihome-vacuum.0 2021-04-04 16:14:31.201 debug (2687) MIIO RECIVE: {"result":[],"id":4,"exe_time":100}
mihome-vacuum.0 2021-04-04 16:14:30.897 debug (2687) system.adapter.admin.0: logging false
mihome-vacuum.0 2021-04-04 16:14:30.649 debug (2687) Message= {"id":4,"method":"get_prop","params":["run_state","suction_grade","mode","err_state","battary_life","start_time","order_time","s_time","s_area","v_state","zone_data","repeat_state","r
mihome-vacuum.0 2021-04-04 16:14:30.647 debug (2687) get params for Viomi
mihome-vacuum.0 2021-04-04 16:14:10.645 debug (2687) Recievded params for viomi: {"result":[],"id":3,"exe_time":100}
mihome-vacuum.0 2021-04-04 16:14:10.644 debug (2687) MIIO RECIVE: {"result":[],"id":3,"exe_time":100}
mihome-vacuum.0 2021-04-04 16:14:10.420 debug (2687) Message= {"id":3,"method":"get_prop","params":["run_state","suction_grade","mode","err_state","battary_life","start_time","order_time","s_time","s_area","v_state","zone_data","repeat_state","rund es steht defentiv mehr drin
- iobroker.mihome-vacuum@3.0.0
-
@meistertr also ich kann jetzt über objecte steuern super arbeit echt ist das den möglich das ich den über alexa starten kann weil ja da in einstellung von dem adapter gibt die option füge ein status für alexa zu ??
-
@meistertr Kann mit dem Adapter auch den mijia.vacuum.v2 steuern oder sind das auch andere Befehle wie mit dem Dreame.vacuum.mc1808. Diese beiden hab ich und die lassen sich noch nicht einbinden.
-
@kakacs aldos starten und stoppen geht?
-
@meistertr ich kann unter xiaomi objecten den sauger starten und auch pausieren
und zurück zur lade station schicken . das klappt super. jetzt würde ich ihn gern über alexa steuern also starten zu mindestens. -
@kakacs hab da noch ein paar mehr anforderungen kannst du mal über sende eigene befehle (in der config aktivieren) ein paar sachen ausprobieren?
get_status get_sound_volume get_consumable get_clean_summary get_map_v1
und berichten was in response steht
-
@meistertr ja klar kann ich gerne machen das ist kein problem
-
@kakacs hier wird die response angezeigt
-
@audi1503 sagte in Test Adapter mihome-vacuum 3.x.x (STYJ02YM / Viomi):
mijia.vacuum.v2
bitte den Adapter installieren (rebulid3) einloggen und devices abrufen, Sauger auswählen eigene Kommandos aktivieren in config, speichern (nicht schließen) auf der ersten Seite oben rechts config downloaden
deviceId in ein leeres Textfile speichernfolgende Kommandos in untenstehender Form unter Objekten
bei send_command eingeben
Antworten bitte in ein Textfile kopieren, neben die Kommandos und postenKommandos (PIID und SIID)
# https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:vacuum:0000A006:mijia-v1:1 "battery": {"siid": 3, "piid": 1}, "charge_state": {"siid": 3, "piid": 2}, "error": {"siid": 2, "piid": 2}, "state": {"siid": 2, "piid": 1}, "fan_speed": {"siid": 2, "piid": 6}, "operating_mode": {"siid": 2, "piid": 4}, "mop_state": {"siid": 16, "piid": 1}, "water_level": {"siid": 2, "piid": 5}, "brush_life_level": {"siid": 14, "piid": 1}, # "brush_life_time": {"siid": 14, "piid": 2}, "brush_life_level2": {"siid": 15, "piid": 1}, # "brush_life_time2": {"siid": 15, "piid": 2}, "filter_life_level": {"siid": 11, "piid": 1}, # "filter_life_time": {"siid": 11, "piid": 2}, "clean_area": {"siid": 9, "piid": 1}, "clean_time": {"siid": 18, "piid": 5}, "total_clean_count": {"siid": 9, "piid": 5}, # "total_clean_area": {"siid": 9, "piid": 3}, # "dnd_enabled": {"siid": 12, "piid": 2}, # "audio_volume": {"siid": 4, "piid": 2}, # "direction_key": {"siid": 8, "piid": 1}
das ist die form wie es in das Objekt muss:
get_properties;[{"did":"AUSCONFIG","siid":3,"piid":1}]
Bitte einmal durchtesten
-
@Meistertr
Hier die angeforderten Antworten auf den Kommandos:"battery": {"siid": 3, "piid": 1}, = [{"did":"334314795","siid":3,"piid":1,"code":0,"value":100}] "charge_state": {"siid": 3, "piid": 2}, = [{"did":"334314795","siid":3,"piid":2,"code":0,"value":2}] "error": {"siid": 2, "piid": 2}, = [{"did":"334314795","siid":2,"piid":2,"code":0,"value":0}] "state": {"siid": 2, "piid": 1}, = [{"did":"334314795","siid":2,"piid":1,"code":0,"value":5}] "fan_speed": {"siid": 2, "piid": 6}, = [{"did":"334314795","siid":2,"piid":6,"code":0,"value":1}] "operating_mode": {"siid": 2, "piid": 4}, = [{"did":"334314795","siid":2,"piid":4,"code":0,"value":1}] "mop_state": {"siid": 16, "piid": 1}, = [{"did":"334314795","siid":16,"piid":1,"code":0,"value":0}] "water_level": {"siid": 2, "piid": 5}, = [{"did":"334314795","siid":2,"piid":5,"code":0,"value":2}] "brush_life_level": {"siid": 14, "piid": 1}, = [{"did":"334314795","siid":14,"piid":1,"code":0,"value":58}] # "brush_life_time": {"siid": 14, "piid": 2}, = [{"did":"334314795","siid":14,"piid":2,"code":0,"value":10504}] "brush_life_level2": {"siid": 15, "piid": 1}, = [{"did":"334314795","siid":15,"piid":1,"code":0,"value":14}] # "brush_life_time2": {"siid": 15, "piid": 2}, = [{"did":"334314795","siid":15,"piid":2,"code":0,"value":1280}] "filter_life_level": {"siid": 11, "piid": 1}, = [{"did":"334314795","siid":11,"piid":1,"code":0,"value":16}] # "filter_life_time": {"siid": 11, "piid": 2}, = [{"did":"334314795","siid":11,"piid":2,"code":0,"value":1504}] "clean_area": {"siid": 9, "piid": 1}, = [{"did":"334314795","siid":9,"piid":1,"code":0,"value":0}] "clean_time": {"siid": 18, "piid": 5}, = [{"did":"334314795","siid":18,"piid":5,"code":-4003}] "total_clean_count": {"siid": 9, "piid": 5}, = [{"did":"334314795","siid":9,"piid":5,"code":0,"value":0}] # "total_clean_area": {"siid": 9, "piid": 3}, = [{"did":"334314795","siid":9,"piid":3,"code":0,"value":0}] # "dnd_enabled": {"siid": 12, "piid": 2}, = [{"did":"334314795","siid":12,"piid":2,"code":0,"value":false}] # "audio_volume": {"siid": 4, "piid": 2}, = [MESSAGE TIMEOUT] # "direction_key": {"siid": 8, "piid": 1} = [{"did":"334314795","siid":8,"piid":1,"code":-4003}]
Habe im Log auch noch Model mijia.vacuum.v2 not supported stehen
-
bei mir steht da nix
-
@kakacs du musst in dem feld rechts den befehl eingeben get_status z.B dann steht dadrüber die Antwort
-
@audi1503 sehr cool, damit kann ich ihn einbinden, dauert aber noch ein paar tage bis den adapter umgeschrieben habe