homee-Saugroboter-Roborock-ohne-ioBroker

Direkte Anbindung des Xiaomi Roborock an - z.B. homee - mit Node-Red inklusiv Zonenreinigung und Zielpunkten.

Die jeweiligen Befehle werden über Webhooks ausgelöst. Beispielsweise direkt als homeegram oder als Schalter von homeeUp

Sobald sich der Roborock wieder im Dock befindet schaltet der Flow per Webhook die Schalter auf "aus".

Es wird die Node contrib-xiaomi-roborock benötigt: https://flows.nodered.org/node/node-red-contrib-xiaomi-roborock

[{"id":"a9a23cc7.fddfc","type":"roborock","z":"aa31d9dc.3898a8","connection":"f1dc36d1.66bc18","name":"ROBO Status","command":"","args":"","jobid":"","x":1020,"y":880,"wires":[["63021aa8.a2fa34","f7530c7c.f1e3f8"]]},{"id":"f8160314.86de28","type":"http in","z":"aa31d9dc.3898a8","name":"roborock-starten","url":"/roborock-starten","method":"get","upload":false,"swaggerDoc":"","x":280,"y":200,"wires":[["b199aa13.e5ea18","b1078441.eb50c8"]]},{"id":"cbefd6b2.0d22f","type":"http in","z":"aa31d9dc.3898a8","name":"roborock-suchen","url":"/roborock-suchen","method":"get","upload":false,"swaggerDoc":"","x":280,"y":100,"wires":[["46bb451f.54d824"]]},{"id":"46bb451f.54d824","type":"template","z":"aa31d9dc.3898a8","name":"","field":"payload","fieldType":"msg","format":"json","syntax":"plain","template":"{\"command\":\"find_me\"}","output":"json","x":680,"y":100,"wires":[["a9a23cc7.fddfc"]]},{"id":"5687375d.6afef8","type":"http in","z":"aa31d9dc.3898a8","name":"roborock-müll","url":"/roborock-muell","method":"get","upload":false,"swaggerDoc":"","x":270,"y":500,"wires":[["75f49e1e.4aa958","654ea983.e80d3","b1078441.eb50c8"]]},{"id":"9ea7d333.e67c6","type":"inject","z":"aa31d9dc.3898a8","name":"zum Müll","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":300,"y":540,"wires":[["75f49e1e.4aa958","654ea983.e80d3","b1078441.eb50c8"]]},{"id":"d85415ed.bee368","type":"change","z":"aa31d9dc.3898a8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"command\":\"app_goto_target\",\"args\":[30900,27800]}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":500,"wires":[["a9a23cc7.fddfc"]]},{"id":"b199aa13.e5ea18","type":"template","z":"aa31d9dc.3898a8","name":"","field":"payload","fieldType":"msg","format":"json","syntax":"plain","template":"{\"command\":\"app_start\"}","output":"json","x":680,"y":200,"wires":[["a9a23cc7.fddfc"]]},{"id":"58060cab.c0dfa4","type":"inject","z":"aa31d9dc.3898a8","name":"starten","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":240,"wires":[["b199aa13.e5ea18","b1078441.eb50c8"]]},{"id":"9f439dad.c6a718","type":"inject","z":"aa31d9dc.3898a8","name":"suchen","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":140,"wires":[["46bb451f.54d824"]]},{"id":"dd4302ed.aecd48","type":"http in","z":"aa31d9dc.3898a8","name":"roborock-pause","url":"/roborock-pause","method":"get","upload":false,"swaggerDoc":"","x":280,"y":300,"wires":[["654ea983.e80d3"]]},{"id":"654ea983.e80d3","type":"template","z":"aa31d9dc.3898a8","name":"","field":"payload","fieldType":"msg","format":"json","syntax":"plain","template":"{\"command\":\"app_pause\"}","output":"json","x":680,"y":300,"wires":[["a9a23cc7.fddfc"]]},{"id":"fffde4ef.902aa","type":"inject","z":"aa31d9dc.3898a8","name":"pause","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":340,"wires":[["654ea983.e80d3"]]},{"id":"255ba5c6.1fc00a","type":"http in","z":"aa31d9dc.3898a8","name":"roborock-dock","url":"/roborock-dock","method":"get","upload":false,"swaggerDoc":"","x":280,"y":400,"wires":[["495fb586.a78dfc","654ea983.e80d3","b1078441.eb50c8"]]},{"id":"dcd8805f.69c53","type":"template","z":"aa31d9dc.3898a8","name":"","field":"payload","fieldType":"msg","format":"json","syntax":"plain","template":"{\"command\":\"app_charge\"}","output":"json","x":680,"y":400,"wires":[["a9a23cc7.fddfc"]]},{"id":"9113d996.4078f","type":"inject","z":"aa31d9dc.3898a8","name":"zum Dock","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":300,"y":440,"wires":[["495fb586.a78dfc","654ea983.e80d3","b1078441.eb50c8"]]},{"id":"60e5f870.ddee78","type":"http in","z":"aa31d9dc.3898a8","name":"roborock-sauge-esstisch","url":"/roborock-sauge-esstisch","method":"get","upload":false,"swaggerDoc":"","x":310,"y":700,"wires":[["e19b24e5.d3bb7","b1078441.eb50c8"]]},{"id":"584ad693.c50468","type":"inject","z":"aa31d9dc.3898a8","name":"Sauge Esstisch","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":320,"y":740,"wires":[["e19b24e5.d3bb7","b1078441.eb50c8"]]},{"id":"e19b24e5.d3bb7","type":"change","z":"aa31d9dc.3898a8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"command\":\"app_zoned_clean\",\"args\":[[27765,24991,31665,29591,1]],\"jobid\":\"105\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":700,"wires":[["a9a23cc7.fddfc"]]},{"id":"3e1531d9.604166","type":"http in","z":"aa31d9dc.3898a8","name":"roborock-sauge-wc","url":"/roborock-sauge-wc","method":"get","upload":false,"swaggerDoc":"","x":290,"y":1000,"wires":[["415b1a7f.1f8ea4","b1078441.eb50c8"]]},{"id":"e891cffa.f8c5f8","type":"inject","z":"aa31d9dc.3898a8","name":"Sauge WC","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":300,"y":1040,"wires":[["415b1a7f.1f8ea4","b1078441.eb50c8"]]},{"id":"415b1a7f.1f8ea4","type":"change","z":"aa31d9dc.3898a8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"command\":\"app_zoned_clean\",\"args\":[[24860,31162,27060,33662,1]],\"jobid\":\"105\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":1000,"wires":[["a9a23cc7.fddfc"]]},{"id":"2d318928.ceaf8e","type":"http in","z":"aa31d9dc.3898a8","name":"roborock-sauge-sofa","url":"/roborock-sauge-sofa","method":"get","upload":false,"swaggerDoc":"","x":300,"y":800,"wires":[["32a86bfa.4ea8bc","b1078441.eb50c8"]]},{"id":"295f4a01.798916","type":"inject","z":"aa31d9dc.3898a8","name":"Sauge Sofa","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":310,"y":840,"wires":[["32a86bfa.4ea8bc","b1078441.eb50c8"]]},{"id":"32a86bfa.4ea8bc","type":"change","z":"aa31d9dc.3898a8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"command\":\"app_zoned_clean\",\"args\":[[24794,25071,27894,31121,1]],\"jobid\":\"105\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":800,"wires":[["a9a23cc7.fddfc"]]},{"id":"dd6e9e8d.15ed6","type":"http in","z":"aa31d9dc.3898a8","name":"roborock-sauge-wohnen","url":"/roborock-sauge-wohnen","method":"get","upload":false,"swaggerDoc":"","x":310,"y":900,"wires":[["c8e33f07.28082","b1078441.eb50c8"]]},{"id":"a5165f65.c72238","type":"inject","z":"aa31d9dc.3898a8","name":"Sauge Wohnen","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":320,"y":940,"wires":[["c8e33f07.28082","b1078441.eb50c8"]]},{"id":"c8e33f07.28082","type":"change","z":"aa31d9dc.3898a8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"command\":\"app_zoned_clean\",\"args\":[[24844,24956,31794,31156,1]],\"jobid\":\"105\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":900,"wires":[["a9a23cc7.fddfc"]]},{"id":"56ea9f86.a8e3d","type":"http in","z":"aa31d9dc.3898a8","name":"roborock-sauge-eingang","url":"/roborock-sauge-eingang","method":"get","upload":false,"swaggerDoc":"","x":310,"y":1100,"wires":[["8e504da8.e0e44","b1078441.eb50c8"]]},{"id":"a052973.889e4e8","type":"inject","z":"aa31d9dc.3898a8","name":"Sauge Eingang","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":320,"y":1140,"wires":[["8e504da8.e0e44","b1078441.eb50c8"]]},{"id":"8e504da8.e0e44","type":"change","z":"aa31d9dc.3898a8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"command\":\"app_zoned_clean\",\"args\":[[29927,31124,32477,33774,1]],\"jobid\":\"105\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":1100,"wires":[["a9a23cc7.fddfc"]]},{"id":"2e10d61e.664902","type":"http in","z":"aa31d9dc.3898a8","name":"roborock-sauge-büro","url":"/roborock-sauge-buero","method":"get","upload":false,"swaggerDoc":"","x":300,"y":1200,"wires":[["376c05b8.956c7a","b1078441.eb50c8"]]},{"id":"a0f2541e.7bdef","type":"inject","z":"aa31d9dc.3898a8","name":"Sauge Büro","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":310,"y":1240,"wires":[["376c05b8.956c7a","b1078441.eb50c8"]]},{"id":"376c05b8.956c7a","type":"change","z":"aa31d9dc.3898a8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"command\":\"app_zoned_clean\",\"args\":[[24748,33776,32048,37126,1]],\"jobid\":\"105\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":1200,"wires":[["a9a23cc7.fddfc"]]},{"id":"495fb586.a78dfc","type":"delay","z":"aa31d9dc.3898a8","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":540,"y":400,"wires":[["dcd8805f.69c53"]]},{"id":"75f49e1e.4aa958","type":"delay","z":"aa31d9dc.3898a8","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":540,"y":500,"wires":[["d85415ed.bee368"]]},{"id":"4ac985f2.bd5484","type":"comment","z":"aa31d9dc.3898a8","name":"https://flows.nodered.org/node/node-red-contrib-xiaomi-roborock","info":"","x":260,"y":20,"wires":[]},{"id":"e4a4d401.ddccd","type":"http in","z":"aa31d9dc.3898a8","name":"roborock-vors-sofa","url":"/roborock-vors-sofa","method":"get","upload":false,"swaggerDoc":"","x":290,"y":600,"wires":[["8ad04971.fce5f","654ea983.e80d3","b1078441.eb50c8"]]},{"id":"60502b4c.fd9d44","type":"inject","z":"aa31d9dc.3898a8","name":"vors Sofa","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":300,"y":640,"wires":[["8ad04971.fce5f","654ea983.e80d3","b1078441.eb50c8"]]},{"id":"c64e6c47.9f0d2","type":"change","z":"aa31d9dc.3898a8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"command\":\"app_goto_target\",\"args\":[26600,28500]}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":600,"wires":[["a9a23cc7.fddfc"]]},{"id":"8ad04971.fce5f","type":"delay","z":"aa31d9dc.3898a8","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":540,"y":600,"wires":[["c64e6c47.9f0d2"]]},{"id":"63021aa8.a2fa34","type":"debug","z":"aa31d9dc.3898a8","name":"roborock","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":1200,"y":920,"wires":[]},{"id":"ea487188.bcc888","type":"template","z":"aa31d9dc.3898a8","name":"","field":"payload","fieldType":"msg","format":"json","syntax":"plain","template":"{\"command\":\"get_status\"}","output":"json","x":1560,"y":780,"wires":[["a9a23cc7.fddfc"]]},{"id":"f7530c7c.f1e3f8","type":"change","z":"aa31d9dc.3898a8","name":"Status","rules":[{"t":"set","p":"payload","pt":"msg","to":"result[0].state","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1190,"y":880,"wires":[["1fe51304.3cd6fd","d1f7150b.69349"]]},{"id":"d1f7150b.69349","type":"debug","z":"aa31d9dc.3898a8","name":"Status","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":1430,"y":920,"wires":[]},{"id":"fc690f51.efd6b8","type":"trigger","z":"aa31d9dc.3898a8","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"-10","extend":false,"units":"s","reset":"false","bytopic":"all","name":"","x":1390,"y":780,"wires":[["ea487188.bcc888"]]},{"id":"c0a73aaa.794c38","type":"change","z":"aa31d9dc.3898a8","name":"Roborock aktiv","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":760,"wires":[["fc690f51.efd6b8"]]},{"id":"89ed01c.502108","type":"comment","z":"aa31d9dc.3898a8","name":"Grundfunktionen","info":"","x":100,"y":100,"wires":[]},{"id":"92a64185.e8ec2","type":"comment","z":"aa31d9dc.3898a8","name":"Zonen","info":"","x":70,"y":700,"wires":[]},{"id":"1fe51304.3cd6fd","type":"switch","z":"aa31d9dc.3898a8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"8","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":1430,"y":880,"wires":[["e99fb3c6.f828c8","163adfe5.478e4"]]},{"id":"e99fb3c6.f828c8","type":"change","z":"aa31d9dc.3898a8","name":"Roborock im Dock","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1170,"y":800,"wires":[["fc690f51.efd6b8"]]},{"id":"bb9692d7.6e3fe","type":"comment","z":"aa31d9dc.3898a8","name":"Schleife ob im Dock","info":"","x":1170,"y":720,"wires":[]},{"id":"163adfe5.478e4","type":"http request","z":"aa31d9dc.3898a8","name":"Webhook -> Schalter homee aus","method":"GET","ret":"txt","url":"","tls":"","x":1700,"y":880,"wires":[[]]},{"id":"ab34bcef.1f941","type":"comment","z":"aa31d9dc.3898a8","name":"Ziele","info":"","x":70,"y":400,"wires":[]},{"id":"b1078441.eb50c8","type":"delay","z":"aa31d9dc.3898a8","name":"","pauseType":"delay","timeout":"20","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1000,"y":760,"wires":[["c0a73aaa.794c38"]]},{"id":"ee53ffdf.e7773","type":"comment","z":"aa31d9dc.3898a8","name":"https://github.com/marcelrv/XiaomiRobotVacuumProtocol","info":"","x":230,"y":60,"wires":[]},{"id":"f1dc36d1.66bc18","type":"roborock-config","z":"","host":"xxx.xxx.xxx.xx","token":""}]

Flow Info

Created 5 years, 5 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • change (x11)
  • comment (x6)
  • debug (x2)
  • delay (x4)
  • http in (x12)
  • http request (x1)
  • inject (x12)
  • switch (x1)
  • template (x5)
  • trigger (x1)
Other

Tags

  • xiaomi
  • xiaomi roborock
  • roborock
  • homee
  • vacuum
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option