Skip to content

Instantly share code, notes, and snippets.

@memooox3
Created November 1, 2018 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save memooox3/6d284006f0116e4d6776fe78568f179c to your computer and use it in GitHub Desktop.
Save memooox3/6d284006f0116e4d6776fe78568f179c to your computer and use it in GitHub Desktop.
homee-xiaomi-Saugroboter-mit-Zonenreinigung

Raumabhängige Zonenreinigung mit dem Xiaomi Saugroboter in homee über iobroker und Node Red.

[
{
"id": "d5e15e9f.11d0f8",
"type": "wemo-emulator",
"z": "e06357ff.0654a",
"name": "Robbi",
"friendlyName": "Robbi",
"serial": "23",
"port": "491",
"onTopic": "switch/Robbi",
"onPayload": "on",
"offTopic": "switch/Robbi",
"offPayload": "off",
"x": 116,
"y": 57.999969482421875,
"wires": [
[
"6fedc438.4b4f44"
]
]
},
{
"id": "a8cd5bdb.c448f",
"type": "wemo out",
"z": "e06357ff.0654a",
"name": "Robbi",
"device": "dcd5c9d6.2d2898",
"label": "Robbi",
"x": 1494,
"y": 44.00006103515625,
"wires": []
},
{
"id": "95ea90d9.469ad8",
"type": "function",
"z": "e06357ff.0654a",
"name": "Robi fertig",
"func": "if (msg.payload === `8`)\n{return {payload: `off` };}",
"outputs": 1,
"noerr": 0,
"x": 1122,
"y": 124.00006103515625,
"wires": [
[
"a8cd5bdb.c448f",
"1d3a60e4.0bacff",
"ec15fd69.735bd8",
"332bc4f8.29b4a4",
"fc5316d1.1f0c98",
"e1cd856a.a0d23",
"e6c951d8.f6d358",
"ec09b391.f2906",
"11966c18.4eb2c4",
"9ef570f3.dc3df"
]
]
},
{
"id": "da724943.7c3948",
"type": "ioBroker in",
"z": "e06357ff.0654a",
"name": "Vacuum state",
"topic": "mihome-vacuum.0.info.state",
"payloadType": "value",
"onlyack": "",
"func": "rbe",
"gap": "",
"x": 902,
"y": 200.00006103515625,
"wires": [
[
"95ea90d9.469ad8",
"1d3a60e4.0bacff"
]
]
},
{
"id": "b826e89c.e3bb3",
"type": "wemo-emulator",
"z": "e06357ff.0654a",
"name": "Saugen Gästeklo",
"friendlyName": "Saugen Gästeklo",
"serial": "34",
"port": "653",
"onTopic": "switch/Gästeklo",
"onPayload": "on",
"offTopic": "switch/Gästeklo",
"offPayload": "off",
"x": 140.88333129882812,
"y": 125.88331604003906,
"wires": [
[
"33c4eaf6.98ebe6"
]
]
},
{
"id": "c0408b88.feaf8",
"type": "ioBroker out",
"z": "e06357ff.0654a",
"name": "send command",
"topic": "mihome-vacuum.0.control.X_send_command",
"ack": "false",
"autoCreate": "false",
"x": 922.7666015625,
"y": 110.28334045410156,
"wires": []
},
{
"id": "33c4eaf6.98ebe6",
"type": "function",
"z": "e06357ff.0654a",
"name": "Gästeklo saugen",
"func": "if (msg.payload === `on`)\n{return {payload: `app_zoned_clean;[[22000,32750,25000,34000,3]]` };}",
"outputs": 1,
"noerr": 0,
"x": 450.8833312988281,
"y": 102.88331604003906,
"wires": [
[
"c0408b88.feaf8"
]
]
},
{
"id": "ed06bdad.ac068",
"type": "wemo-emulator",
"z": "e06357ff.0654a",
"name": "Saugen Küche",
"friendlyName": "Saugen Küche",
"serial": "98",
"port": "4916",
"onTopic": "switch/Gästeklo",
"onPayload": "on",
"offTopic": "switch/Gästeklo",
"offPayload": "off",
"x": 145.88333129882812,
"y": 192.88331604003906,
"wires": [
[
"7b9d8390.6bfbfc"
]
]
},
{
"id": "fa431e6c.31ba88",
"type": "wemo-emulator",
"z": "e06357ff.0654a",
"name": "Saugen Wohnzimmer",
"friendlyName": "Saugen Wohnzimmer",
"serial": "99",
"port": "999",
"onTopic": "switch/Gästeklo",
"onPayload": "on",
"offTopic": "switch/Gästeklo",
"offPayload": "off",
"x": 156.88333129882812,
"y": 265.88330078125,
"wires": [
[
"5df8fb99.f68a44"
]
]
},
{
"id": "9081d8e5.05fce8",
"type": "wemo-emulator",
"z": "e06357ff.0654a",
"name": "Saugen Esszimmer",
"friendlyName": "Saugen Esszimmer",
"serial": "47",
"port": "4963",
"onTopic": "switch/Gästeklo",
"onPayload": "on",
"offTopic": "switch/Gästeklo",
"offPayload": "off",
"x": 134.88333129882812,
"y": 342.88330078125,
"wires": [
[
"ad4711e8.6a51b8"
]
]
},
{
"id": "a5077e7d.f5463",
"type": "wemo-emulator",
"z": "e06357ff.0654a",
"name": "Saugen Schlafzimmer",
"friendlyName": "Saugen Schlafzimmer",
"serial": "76",
"port": "764",
"onTopic": "switch/Gästeklo",
"onPayload": "on",
"offTopic": "switch/Gästeklo",
"offPayload": "off",
"x": 147.88333129882812,
"y": 411.88330078125,
"wires": [
[
"83cb34ee.ee2f18"
]
]
},
{
"id": "63d98dbd.c2ee64",
"type": "wemo-emulator",
"z": "e06357ff.0654a",
"name": "Saugen Badezimmer",
"friendlyName": "Saugen Badezimmer",
"serial": "55",
"port": "546",
"onTopic": "switch/Gästeklo",
"onPayload": "on",
"offTopic": "switch/Gästeklo",
"offPayload": "off",
"x": 145.88333129882812,
"y": 477.88330078125,
"wires": [
[
"817474a.da33e08"
]
]
},
{
"id": "6b30fae2.0df074",
"type": "wemo-emulator",
"z": "e06357ff.0654a",
"name": "Saugen Büro",
"friendlyName": "Saugen Büro",
"serial": "87",
"port": "499",
"onTopic": "switch/Gästeklo",
"onPayload": "on",
"offTopic": "switch/Gästeklo",
"offPayload": "off",
"x": 120.88333129882812,
"y": 549.88330078125,
"wires": [
[
"fcea1d93.5cfa08"
]
]
},
{
"id": "6b3252e1.e36e54",
"type": "wemo-emulator",
"z": "e06357ff.0654a",
"name": "Saugen Diele",
"friendlyName": "Saugen Diele",
"serial": "587",
"port": "839",
"onTopic": "switch/Gästeklo",
"onPayload": "on",
"offTopic": "switch/Gästeklo",
"offPayload": "off",
"x": 122.88333129882812,
"y": 624.683349609375,
"wires": [
[
"3dcea181.4459a6"
]
]
},
{
"id": "c3c5de0b.17eb18",
"type": "wemo out",
"z": "e06357ff.0654a",
"name": "",
"device": "4efd620c.229a2c",
"label": "Saugen Gästeklo",
"x": 1497.7666015625,
"y": 94.75009155273438,
"wires": []
},
{
"id": "7b9d8390.6bfbfc",
"type": "function",
"z": "e06357ff.0654a",
"name": "Küche saugen",
"func": "if (msg.payload === `on`)\n{return {payload: `app_zoned_clean;[[22000,29040,24800,31640,1]]` };}",
"outputs": 1,
"noerr": 0,
"x": 423.8833312988281,
"y": 172.4833221435547,
"wires": [
[
"c0408b88.feaf8"
]
]
},
{
"id": "5df8fb99.f68a44",
"type": "function",
"z": "e06357ff.0654a",
"name": "Wohnzimmer saugen",
"func": "if (msg.payload === `on`)\n{return {payload: `app_zoned_clean;[[26050,25000,32500,29500,1]]` };}",
"outputs": 1,
"noerr": 0,
"x": 397.8833312988281,
"y": 250.4833221435547,
"wires": [
[
"c0408b88.feaf8"
]
]
},
{
"id": "ad4711e8.6a51b8",
"type": "function",
"z": "e06357ff.0654a",
"name": "Esszimmer saugen",
"func": "if (msg.payload === `on`)\n{return {payload: `app_zoned_clean;[[22000,25000,26050,29040,1]]` };}",
"outputs": 1,
"noerr": 0,
"x": 378.8833312988281,
"y": 341.4833221435547,
"wires": [
[
"c0408b88.feaf8"
]
]
},
{
"id": "83cb34ee.ee2f18",
"type": "function",
"z": "e06357ff.0654a",
"name": "Schlafzimmer saugen",
"func": "if (msg.payload === `on`)\n{return {payload: `app_zoned_clean;[[29500,32300,34000,37000,1]]` };}",
"outputs": 1,
"noerr": 0,
"x": 379.8833312988281,
"y": 408.4833221435547,
"wires": [
[
"c0408b88.feaf8"
]
]
},
{
"id": "817474a.da33e08",
"type": "function",
"z": "e06357ff.0654a",
"name": "Badezimmer saugen",
"func": "if (msg.payload === `on`)\n{return {payload: `app_zoned_clean;[[28400,29500,32500,32500,1]]` };}",
"outputs": 1,
"noerr": 0,
"x": 382.8833312988281,
"y": 477.4833221435547,
"wires": [
[
"c0408b88.feaf8"
]
]
},
{
"id": "fcea1d93.5cfa08",
"type": "function",
"z": "e06357ff.0654a",
"name": "Büro saugen",
"func": "if (msg.payload === `on`)\n{return {payload: `app_zoned_clean;[[26500,34000,29500,37000,1]]` };}",
"outputs": 1,
"noerr": 0,
"x": 347.8833312988281,
"y": 543.4833221435547,
"wires": [
[
"c0408b88.feaf8"
]
]
},
{
"id": "3dcea181.4459a6",
"type": "function",
"z": "e06357ff.0654a",
"name": "Diele saugen",
"func": "if (msg.payload === `on`)\n{return {payload: `app_zoned_clean;[[24800,29500,28000,34000,1]]` };}",
"outputs": 1,
"noerr": 0,
"x": 331.8833312988281,
"y": 626.4833221435547,
"wires": [
[
"c0408b88.feaf8"
]
]
},
{
"id": "cfdc629d.269998",
"type": "wemo out",
"z": "e06357ff.0654a",
"name": "",
"device": "ddfdb26e.fb7048",
"label": "Saugen Küche",
"x": 1481.88330078125,
"y": 152.48342895507812,
"wires": []
},
{
"id": "6fedc438.4b4f44",
"type": "function",
"z": "e06357ff.0654a",
"name": "Wohnung saugen",
"func": "if (msg.payload === `on`)\n{return {payload: `app_zoned_clean;[[22000,25000,34000,37000,1]]` };}",
"outputs": 1,
"noerr": 0,
"x": 454.8833312988281,
"y": 43.88330078125,
"wires": [
[
"c0408b88.feaf8"
]
]
},
{
"id": "5086d245.0f81b4",
"type": "wemo out",
"z": "e06357ff.0654a",
"name": "Saugen Wohnzimmer",
"device": "4bb4d3b6.0cf984",
"label": "Saugen Wohnzimmer",
"x": 1514.88330078125,
"y": 206.88333129882812,
"wires": []
},
{
"id": "af0e14bf.58e2e8",
"type": "wemo out",
"z": "e06357ff.0654a",
"name": "Saugen Esszimmer",
"device": "57a3553f.5c1724",
"label": "Saugen Esszimmer",
"x": 1492.88330078125,
"y": 269.8833312988281,
"wires": []
},
{
"id": "3c1ead47.340e9a",
"type": "wemo out",
"z": "e06357ff.0654a",
"name": "Saugen Schlafzimmer",
"device": "e679aec5.e86128",
"label": "Saugen Schlafzimmer",
"x": 1492.88330078125,
"y": 334.8833312988281,
"wires": []
},
{
"id": "adcaf911.bae52",
"type": "wemo out",
"z": "e06357ff.0654a",
"name": "Saugen Badezimmer",
"device": "d5efa401.2fa7c8",
"label": "Saugen Badezimmer",
"x": 1506.88330078125,
"y": 398.8833312988281,
"wires": []
},
{
"id": "f8708e52.a0cb38",
"type": "wemo out",
"z": "e06357ff.0654a",
"name": "Saugen Büro",
"device": "cee570d5.b453a8",
"label": "Saugen Büro",
"x": 1493.88330078125,
"y": 449.8833312988281,
"wires": []
},
{
"id": "76a06e12.c2fce8",
"type": "wemo out",
"z": "e06357ff.0654a",
"name": "Saugen Diele",
"device": "b01122.b5d206e",
"label": "Saugen Diele",
"x": 1489.88330078125,
"y": 508.88330078125,
"wires": []
},
{
"id": "1d3a60e4.0bacff",
"type": "debug",
"z": "e06357ff.0654a",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 1064.7666015625,
"y": 315.4499816894531,
"wires": []
},
{
"id": "ec15fd69.735bd8",
"type": "delay",
"z": "e06357ff.0654a",
"name": "",
"pauseType": "delay",
"timeout": "2",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 1308.88330078125,
"y": 141.88333129882812,
"wires": [
[
"cfdc629d.269998"
]
]
},
{
"id": "332bc4f8.29b4a4",
"type": "delay",
"z": "e06357ff.0654a",
"name": "",
"pauseType": "delay",
"timeout": "2",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 1320.88330078125,
"y": 190.88333129882812,
"wires": [
[
"5086d245.0f81b4"
]
]
},
{
"id": "fc5316d1.1f0c98",
"type": "delay",
"z": "e06357ff.0654a",
"name": "",
"pauseType": "delay",
"timeout": "4",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 1325.88330078125,
"y": 227.88333129882812,
"wires": [
[
"af0e14bf.58e2e8"
]
]
},
{
"id": "e1cd856a.a0d23",
"type": "delay",
"z": "e06357ff.0654a",
"name": "",
"pauseType": "delay",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 1304.88330078125,
"y": 279.8833312988281,
"wires": [
[
"3c1ead47.340e9a"
]
]
},
{
"id": "e6c951d8.f6d358",
"type": "delay",
"z": "e06357ff.0654a",
"name": "",
"pauseType": "delay",
"timeout": "6",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 1297.88330078125,
"y": 347.8833312988281,
"wires": [
[
"adcaf911.bae52"
]
]
},
{
"id": "ec09b391.f2906",
"type": "delay",
"z": "e06357ff.0654a",
"name": "",
"pauseType": "delay",
"timeout": "7",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 1281.88330078125,
"y": 398.8833312988281,
"wires": [
[
"f8708e52.a0cb38"
]
]
},
{
"id": "11966c18.4eb2c4",
"type": "delay",
"z": "e06357ff.0654a",
"name": "",
"pauseType": "delay",
"timeout": "8",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 1288.88330078125,
"y": 458.8833312988281,
"wires": [
[
"76a06e12.c2fce8"
]
]
},
{
"id": "9ef570f3.dc3df",
"type": "delay",
"z": "e06357ff.0654a",
"name": "",
"pauseType": "delay",
"timeout": "1",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 1302.88330078125,
"y": 97.88333129882812,
"wires": [
[
"c3c5de0b.17eb18"
]
]
},
{
"id": "b1f8b65b.92b71",
"type": "ioBroker in",
"z": "e06357ff.0654a",
"name": "Wandschalter Diele.ButtonState",
"topic": "homee.0.TwoButtonRemote-99.ButtonState-691",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"x": 735.7666015625,
"y": 490.6666564941406,
"wires": [
[
"8b513894.be6a6"
]
]
},
{
"id": "8b513894.be6a6",
"type": "function",
"z": "e06357ff.0654a",
"name": "Robbi nach Hause schicken",
"func": "if (msg.payload === `1`)\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1063.7665405273438,
"y": 509.8666687011719,
"wires": [
[
"f93cf457.c7cc18",
"14912c7.de2ffd4"
]
]
},
{
"id": "f93cf457.c7cc18",
"type": "ioBroker out",
"z": "e06357ff.0654a",
"name": "Pause vacuum",
"topic": "mihome-vacuum.0.control.pause",
"ack": "false",
"autoCreate": "true",
"x": 1311.9833984375,
"y": 626,
"wires": []
},
{
"id": "14912c7.de2ffd4",
"type": "delay",
"z": "e06357ff.0654a",
"name": "",
"pauseType": "delay",
"timeout": "1",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 1134.9832763671875,
"y": 673,
"wires": [
[
"e266e6b9.c8f058"
]
]
},
{
"id": "e266e6b9.c8f058",
"type": "ioBroker out",
"z": "e06357ff.0654a",
"name": "Go home",
"topic": "mihome-vacuum.0.control.home",
"ack": "false",
"autoCreate": "true",
"x": 1337.9833984375,
"y": 681,
"wires": []
},
{
"id": "dcd5c9d6.2d2898",
"type": "wemo-dev",
"z": "",
"device": "23",
"name": "Robbi"
},
{
"id": "4efd620c.229a2c",
"type": "wemo-dev",
"z": "",
"device": "34",
"name": "Saugen Gästeklo"
},
{
"id": "ddfdb26e.fb7048",
"type": "wemo-dev",
"z": "",
"device": "98",
"name": "Saugen Küche"
},
{
"id": "4bb4d3b6.0cf984",
"type": "wemo-dev",
"z": "",
"device": "99",
"name": "Saugen Wohnzimmer"
},
{
"id": "57a3553f.5c1724",
"type": "wemo-dev",
"z": "",
"device": "47",
"name": "Saugen Esszimmer"
},
{
"id": "e679aec5.e86128",
"type": "wemo-dev",
"z": "",
"device": "76",
"name": "Saugen Schlafzimmer"
},
{
"id": "d5efa401.2fa7c8",
"type": "wemo-dev",
"z": "",
"device": "55",
"name": "Saugen Badezimmer"
},
{
"id": "cee570d5.b453a8",
"type": "wemo-dev",
"z": "",
"device": "87",
"name": "Saugen Büro"
},
{
"id": "b01122.b5d206e",
"type": "wemo-dev",
"z": "",
"device": "587",
"name": "Saugen Diele"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment