NEWS
[gelöst] Registrierte Bewegung in einer bestimmten Zeit an Pushover schicken
-
Hallo zusammen,
ich habe an meinem Haus mehrere Bewegungsmelder angebracht. Jetzt möchte ich, dass mir das System zwischen 23:00 Uhr und 06:00 Uhr registrierte Bewegungen an Pushover meldet.
Das überhaupt was gemeldet wird, habe ich schon hinbekommen. Ich weiß jetzt nur nicht, wie ich die Sache mit dem Zeitfenster da reinkriege.
~~http://www.a-flow.de/bilder/bewegungsmelder.jpg" />! ````
[
{
"id": "d5634222.be50f",
"type": "ioBroker in",
"z": "71a2a5f6.8bf87c",
"name": "Bewegungsmelder-Front.MOTION",
"topic": "hm-rpc.0.LEQ0988078.1.MOTION",
"payloadType": "value",
"onlyack": true,
"func": "all",
"gap": "",
"x": 176,
"y": 53,
"wires": [
[
"60f1edfd.5f52a4"
]
]
},
{
"id": "60f1edfd.5f52a4",
"type": "switch",
"z": "71a2a5f6.8bf87c",
"name": "Prüft, ob Bewegung stattgefunden hat",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "true",
"vt": "str"
}
],
"checkall": "true",
"outputs": 1,
"x": 510,
"y": 53,
"wires": [
[
"7c08c425.e50acc"
]
]
},
{
"id": "7c08c425.e50acc",
"type": "change",
"z": "71a2a5f6.8bf87c",
"name": "Pushover Nachricht",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "Bewegung an der Hausfront registriert!",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 802,
"y": 53,
"wires": [
[
"36000dca.323892",
"d5eaa2a.f318b6"
]
]
},
{
"id": "36000dca.323892",
"type": "pushover",
"z": "71a2a5f6.8bf87c",
"name": "Pushover Nachricht senden",
"device": "",
"title": "Bewegung registriert!",
"priority": "0",
"sound": "pushover",
"x": 1044,
"y": 53,
"wires": []
},
{
"id": "d5eaa2a.f318b6",
"type": "debug",
"z": "71a2a5f6.8bf87c",
"name": "Debug",
"active": true,
"console": "true",
"complete": "payload",
"x": 974,
"y": 91,
"wires": []
},
{
"id": "3911cccf.0cfe04",
"type": "inject",
"z": "71a2a5f6.8bf87c",
"name": "Tester",
"topic": "",
"payload": "true",
"payloadType": "str",
"repeat": "",
"crontab": "",
"once": false,
"x": 268,
"y": 98,
"wires": [
[
"60f1edfd.5f52a4"
]
]
},
{
"id": "5ae98076.35458",
"type": "ioBroker in",
"z": "71a2a5f6.8bf87c",
"name": "Bewegungsmelder-Parkplatz.MOTION",
"topic": "hm-rpc.0.LEQ0988097.1.MOTION",
"payloadType": "value",
"onlyack": true,
"func": "all",
"gap": "",
"x": 171,
"y": 180,
"wires": [
[
"fffa844.051c678"
]
]
},
{
"id": "fffa844.051c678",
"type": "switch",
"z": "71a2a5f6.8bf87c",
"name": "Prüft, ob Bewegung stattgefunden hat",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "true",
"vt": "str"
}
],
"checkall": "true",
"outputs": 1,
"x": 513,
"y": 180,
"wires": [
[
"ca582c0a.c22dd"
]
]
},
{
"id": "ca582c0a.c22dd",
"type": "change",
"z": "71a2a5f6.8bf87c",
"name": "Pushover Nachricht",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "Bewegung auf dem Parkplatz registriert!",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 805,
"y": 180,
"wires": [
[
"fe49114a.2a857",
"ab4a6710.f59e18"
]
]
},
{
"id": "fe49114a.2a857",
"type": "pushover",
"z": "71a2a5f6.8bf87c",
"name": "Pushover Nachricht senden",
"device": "",
"title": "Bewegung registriert!",
"priority": "0",
"sound": "pushover",
"x": 1047,
"y": 180,
"wires": []
},
{
"id": "ab4a6710.f59e18",
"type": "debug",
"z": "71a2a5f6.8bf87c",
"name": "Debug",
"active": true,
"console": "true",
"complete": "payload",
"x": 977,
"y": 218,
"wires": []
},
{
"id": "27418c59.926714",
"type": "inject",
"z": "71a2a5f6.8bf87c",
"name": "Tester",
"topic": "",
"payload": "true",
"payloadType": "str",
"repeat": "",
"crontab": "",
"once": false,
"x": 271,
"y": 225,
"wires": [
[
"fffa844.051c678"
]
]
},
{
"id": "a12bc594.284ae8",
"type": "ioBroker in",
"z": "71a2a5f6.8bf87c",
"name": "Bewegungsmelder-Stichstraße.MOTION",
"topic": "hm-rpc.0.MEQ0246964.1.MOTION",
"payloadType": "value",
"onlyack": true,
"func": "all",
"gap": "",
"x": 165,
"y": 307,
"wires": [
[
"eaffdb09.1b7bd8"
]
]
},
{
"id": "eaffdb09.1b7bd8",
"type": "switch",
"z": "71a2a5f6.8bf87c",
"name": "Prüft, ob Bewegung stattgefunden hat",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "true",
"vt": "str"
}
],
"checkall": "true",
"outputs": 1,
"x": 516,
"y": 307,
"wires": [
[
"67ed4203.0f017c"
]
]
},
{
"id": "67ed4203.0f017c",
"type": "change",
"z": "71a2a5f6.8bf87c",
"name": "Pushover Nachricht",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "Bewegung in der Stichstraße registriert!",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 808,
"y": 307,
"wires": [
[
"73d671e4.ddbbd",
"b64d1a62.f86848"
]
]
},
{
"id": "73d671e4.ddbbd",
"type": "pushover",
"z": "71a2a5f6.8bf87c",
"name": "Pushover Nachricht senden",
"device": "",
"title": "Bewegung registriert!",
"priority": "0",
"sound": "pushover",
"x": 1050,
"y": 307,
"wires": []
},
{
"id": "b64d1a62.f86848",
"type": "debug",
"z": "71a2a5f6.8bf87c",
"name": "Debug",
"active": true,
"console": "true",
"complete": "payload",
"x": 980,
"y": 345,
"wires": []
},
{
"id": "57ced1e6.cd7ea",
"type": "inject",
"z": "71a2a5f6.8bf87c",
"name": "Tester",
"topic": "",
"payload": "true",
"payloadType": "str",
"repeat": "",
"crontab": "",
"once": false,
"x": 274,
"y": 352,
"wires": [
[
"eaffdb09.1b7bd8"
]
]
}
]Ich habe für jeden Bewegungsmelder einen eigenen Flow erstellt, da die Pushover-Meldung jeweils den Namen des Bewegungsmelders enthält. Würde mich freuen, wenn mir da jemand weiterhelfen kann!~~ -
Hallo a-flow,
Füge diesen node hinzu, indem du den npm-package Namen in den Adaptereinstellungen zufügst:
http://flows.nodered.org/node/node-red- … nge-switch
Gesendet von meinem SM-G900F mit Tapatalk
-
@nobody: Vielen Dank, das hat soweit funktioniert!
Hier nochmal die Lösung:
~~http://www.a-flow.de/bilder/bewegungsmelder2.jpg" />! ````
[
{
"id": "d5634222.be50f",
"type": "ioBroker in",
"z": "71a2a5f6.8bf87c",
"name": "Bewegungsmelder-Front.MOTION",
"topic": "hm-rpc.0.LEQ0988078.1.MOTION",
"payloadType": "value",
"onlyack": true,
"func": "all",
"gap": "",
"x": 176,
"y": 53,
"wires": [
[
"60f1edfd.5f52a4"
]
]
},
{
"id": "60f1edfd.5f52a4",
"type": "switch",
"z": "71a2a5f6.8bf87c",
"name": "Prüft, ob Bewegung stattgefunden hat",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "true",
"vt": "str"
}
],
"checkall": "true",
"outputs": 1,
"x": 510,
"y": 53,
"wires": [
[
"cb9fb890.0116a8"
]
]
},
{
"id": "7c08c425.e50acc",
"type": "change",
"z": "71a2a5f6.8bf87c",
"name": "Pushover Nachricht",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "Bewegung an der Hausfront registriert!",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 964,
"y": 53,
"wires": [
[
"36000dca.323892",
"d5eaa2a.f318b6"
]
]
},
{
"id": "36000dca.323892",
"type": "pushover",
"z": "71a2a5f6.8bf87c",
"name": "Pushover Nachricht senden",
"device": "",
"title": "Bewegung registriert!",
"priority": "0",
"sound": "pushover",
"x": 1206,
"y": 53,
"wires": []
},
{
"id": "d5eaa2a.f318b6",
"type": "debug",
"z": "71a2a5f6.8bf87c",
"name": "Debug",
"active": true,
"console": "true",
"complete": "payload",
"x": 1136,
"y": 91,
"wires": []
},
{
"id": "3911cccf.0cfe04",
"type": "inject",
"z": "71a2a5f6.8bf87c",
"name": "Tester",
"topic": "",
"payload": "true",
"payloadType": "str",
"repeat": "",
"crontab": "",
"once": false,
"x": 268,
"y": 98,
"wires": [
[
"60f1edfd.5f52a4"
]
]
},
{
"id": "5ae98076.35458",
"type": "ioBroker in",
"z": "71a2a5f6.8bf87c",
"name": "Bewegungsmelder-Parkplatz.MOTION",
"topic": "hm-rpc.0.LEQ0988097.1.MOTION",
"payloadType": "value",
"onlyack": true,
"func": "all",
"gap": "",
"x": 171,
"y": 180,
"wires": [
[
"fffa844.051c678"
]
]
},
{
"id": "fffa844.051c678",
"type": "switch",
"z": "71a2a5f6.8bf87c",
"name": "Prüft, ob Bewegung stattgefunden hat",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "true",
"vt": "str"
}
],
"checkall": "true",
"outputs": 1,
"x": 513,
"y": 180,
"wires": [
[
"8a95704e.108fe"
]
]
},
{
"id": "ca582c0a.c22dd",
"type": "change",
"z": "71a2a5f6.8bf87c",
"name": "Pushover Nachricht",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "Bewegung auf dem Parkplatz registriert!",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 969,
"y": 179,
"wires": [
[
"fe49114a.2a857",
"ab4a6710.f59e18"
]
]
},
{
"id": "fe49114a.2a857",
"type": "pushover",
"z": "71a2a5f6.8bf87c",
"name": "Pushover Nachricht senden",
"device": "",
"title": "Bewegung registriert!",
"priority": "0",
"sound": "pushover",
"x": 1211,
"y": 179,
"wires": []
},
{
"id": "ab4a6710.f59e18",
"type": "debug",
"z": "71a2a5f6.8bf87c",
"name": "Debug",
"active": true,
"console": "true",
"complete": "payload",
"x": 1141,
"y": 217,
"wires": []
},
{
"id": "27418c59.926714",
"type": "inject",
"z": "71a2a5f6.8bf87c",
"name": "Tester",
"topic": "",
"payload": "true",
"payloadType": "str",
"repeat": "",
"crontab": "",
"once": false,
"x": 271,
"y": 225,
"wires": [
[
"fffa844.051c678"
]
]
},
{
"id": "a12bc594.284ae8",
"type": "ioBroker in",
"z": "71a2a5f6.8bf87c",
"name": "Bewegungsmelder-Stichstraße.MOTION",
"topic": "hm-rpc.0.MEQ0246964.1.MOTION",
"payloadType": "value",
"onlyack": true,
"func": "all",
"gap": "",
"x": 165,
"y": 300,
"wires": [
[
"eaffdb09.1b7bd8"
]
]
},
{
"id": "eaffdb09.1b7bd8",
"type": "switch",
"z": "71a2a5f6.8bf87c",
"name": "Prüft, ob Bewegung stattgefunden hat",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "true",
"vt": "str"
}
],
"checkall": "true",
"outputs": 1,
"x": 515,
"y": 300,
"wires": [
[
"53a78a93.35acb4"
]
]
},
{
"id": "67ed4203.0f017c",
"type": "change",
"z": "71a2a5f6.8bf87c",
"name": "Pushover Nachricht",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "Bewegung in der Stichstraße registriert!",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 971,
"y": 347,
"wires": [
[
"73d671e4.ddbbd",
"b64d1a62.f86848"
]
]
},
{
"id": "73d671e4.ddbbd",
"type": "pushover",
"z": "71a2a5f6.8bf87c",
"name": "Pushover Nachricht senden",
"device": "",
"title": "Bewegung registriert!",
"priority": "0",
"sound": "pushover",
"x": 1213,
"y": 347,
"wires": []
},
{
"id": "b64d1a62.f86848",
"type": "debug",
"z": "71a2a5f6.8bf87c",
"name": "Debug",
"active": true,
"console": "true",
"complete": "payload",
"x": 1143,
"y": 385,
"wires": []
},
{
"id": "57ced1e6.cd7ea",
"type": "inject",
"z": "71a2a5f6.8bf87c",
"name": "Tester",
"topic": "",
"payload": "true",
"payloadType": "str",
"repeat": "",
"crontab": "",
"once": false,
"x": 274,
"y": 345,
"wires": [
[
"eaffdb09.1b7bd8"
]
]
},
{
"id": "53a78a93.35acb4",
"type": "time-range-switch",
"z": "71a2a5f6.8bf87c",
"name": "Zeituhr",
"lat": "50.12",
"lon": "8.07",
"startTime": "sunrise",
"endTime": "sunset",
"x": 769,
"y": 299,
"wires": [
[
"607a888a.f1f0a8"
],
[
"67ed4203.0f017c"
]
]
},
{
"id": "f00537f7.379438",
"type": "debug",
"z": "71a2a5f6.8bf87c",
"name": "Debug",
"active": true,
"console": "true",
"complete": "payload",
"x": 1142,
"y": 295,
"wires": []
},
{
"id": "607a888a.f1f0a8",
"type": "change",
"z": "71a2a5f6.8bf87c",
"name": "Pushover Nachricht",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "Zeitraum nicht aktiv",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 970,
"y": 294,
"wires": [
[
"f00537f7.379438"
]
]
},
{
"id": "8a95704e.108fe",
"type": "time-range-switch",
"z": "71a2a5f6.8bf87c",
"name": "Zeituhr",
"lat": "50.12",
"lon": "8.07",
"startTime": "sunrise",
"endTime": "sunset",
"x": 771,
"y": 182,
"wires": [
[],
[
"ca582c0a.c22dd"
]
]
},
{
"id": "cb9fb890.0116a8",
"type": "time-range-switch",
"z": "71a2a5f6.8bf87c",
"name": "Zeituhr",
"lat": "50.12",
"lon": "8.07",
"startTime": "sunrise",
"endTime": "sunset",
"x": 766,
"y": 54,
"wires": [
[],
[
"7c08c425.e50acc"
]
]
}
]
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden