Skip to content

Instantly share code, notes, and snippets.

@IT-Berater
Last active January 7, 2019 19:53
Show Gist options
  • Select an option

  • Save IT-Berater/b36e37cb1e903d86ae08426a457b4668 to your computer and use it in GitHub Desktop.

Select an option

Save IT-Berater/b36e37cb1e903d86ae08426a457b4668 to your computer and use it in GitHub Desktop.
Send openHAB 2 events to pushover

This Flow send openHAB 2 Events to Pushover.

Two door and one window and one Testbutton for check Pushover.

Details see http://blog.wenzlaff.de/?p=12499 (German).

[
{
"id": "c486d98b.e3b238",
"type": "tab",
"label": "Pushover Benachrichtigungen",
"disabled": false,
"info": ""
},
{
"id": "fd2bf97a.f97078",
"type": "pushover",
"z": "c486d98b.e3b238",
"name": "",
"device": "",
"title": "openHAB 2",
"priority": 0,
"sound": "magic",
"url": "http://www.wenzlaff.info",
"url_title": "Homeautomatisation",
"html": false,
"x": 1110,
"y": 180,
"wires": []
},
{
"id": "2cc1f817.99e8a8",
"type": "inject",
"z": "c486d98b.e3b238",
"name": "",
"topic": "",
"payload": "Test Pushover",
"payloadType": "str",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 730,
"y": 80,
"wires": [
[
"fd2bf97a.f97078"
]
]
},
{
"id": "72297b5e.1f94b4",
"type": "comment",
"z": "c486d98b.e3b238",
"name": "Testen: Versende eine Test-Pushover Nachricht",
"info": "",
"x": 700,
"y": 40,
"wires": []
},
{
"id": "e8109cdb.1badf",
"type": "openhab2-in",
"z": "c486d98b.e3b238",
"name": "Terrassentür im Wohnzimmer",
"controller": "69d3086d.60bbd",
"itemname": "terrasseKontakt",
"x": 160,
"y": 160,
"wires": [
[
"fa7154d0.ae0808"
],
[]
]
},
{
"id": "74eb5306.bf9834",
"type": "debug",
"z": "c486d98b.e3b238",
"name": "Debug",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"x": 1070,
"y": 580,
"wires": []
},
{
"id": "fa7154d0.ae0808",
"type": "rbe",
"z": "c486d98b.e3b238",
"name": "Nur bei Änderung des Wert weiter",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"property": "payload",
"x": 380,
"y": 220,
"wires": [
[
"cff49725.3165"
]
]
},
{
"id": "b8199b02.9a85d",
"type": "template",
"z": "c486d98b.e3b238",
"name": "Geöffnet",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "Die Terrassentür wurde geöffnet.",
"output": "str",
"x": 740,
"y": 180,
"wires": [
[
"74eb5306.bf9834",
"fd2bf97a.f97078"
]
]
},
{
"id": "cff49725.3165",
"type": "switch",
"z": "c486d98b.e3b238",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "str"
},
{
"t": "eq",
"v": "0",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 590,
"y": 220,
"wires": [
[
"b8199b02.9a85d"
],
[
"c2a6896c.a5dad"
]
]
},
{
"id": "c2a6896c.a5dad",
"type": "template",
"z": "c486d98b.e3b238",
"name": "Geschlossen",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "Die Terrassentür wurde geschlossen.",
"output": "str",
"x": 750,
"y": 260,
"wires": [
[
"74eb5306.bf9834",
"fd2bf97a.f97078"
]
]
},
{
"id": "201dbe01.05f36a",
"type": "comment",
"z": "c486d98b.e3b238",
"name": "openHAB 2 Ereignisse die zu Pushover Nachrichten führen",
"info": "",
"x": 250,
"y": 40,
"wires": []
},
{
"id": "67bcc451.5ee09c",
"type": "comment",
"z": "c486d98b.e3b238",
"name": "(c) 2019 Thomas Wenzlaff www.wenzlaff.de",
"info": "",
"x": 210,
"y": 100,
"wires": []
},
{
"id": "121fdc72.eadf8c",
"type": "openhab2-in",
"z": "c486d98b.e3b238",
"name": "Haustür im Flur",
"controller": "69d3086d.60bbd",
"itemname": "flurKontakt",
"x": 120,
"y": 320,
"wires": [
[
"24e56612.1b76b2"
],
[]
]
},
{
"id": "24e56612.1b76b2",
"type": "rbe",
"z": "c486d98b.e3b238",
"name": "Nur bei Änderung des Wert weiter",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"property": "payload",
"x": 380,
"y": 380,
"wires": [
[
"4b35625e.4fa0e4"
]
]
},
{
"id": "4b35625e.4fa0e4",
"type": "switch",
"z": "c486d98b.e3b238",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "str"
},
{
"t": "eq",
"v": "0",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 590,
"y": 380,
"wires": [
[
"896dc6c7.fea9b"
],
[
"ffe03fb9.a6e338"
]
]
},
{
"id": "ffe03fb9.a6e338",
"type": "template",
"z": "c486d98b.e3b238",
"name": "Geschlossen",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "Die Haustür wurde geschlossen.",
"output": "str",
"x": 750,
"y": 420,
"wires": [
[
"74eb5306.bf9834",
"fd2bf97a.f97078"
]
]
},
{
"id": "896dc6c7.fea9b",
"type": "template",
"z": "c486d98b.e3b238",
"name": "Geöffnet",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "Die Haustür wurde geöffnet.",
"output": "str",
"x": 740,
"y": 340,
"wires": [
[
"74eb5306.bf9834",
"fd2bf97a.f97078"
]
]
},
{
"id": "7dda5f05.0ae358",
"type": "openhab2-in",
"z": "c486d98b.e3b238",
"name": "Fenster im Arbeitszimmer",
"controller": "69d3086d.60bbd",
"itemname": "arbeitszimmerFensterKontakt",
"x": 150,
"y": 480,
"wires": [
[
"511eb303.1ba71c"
],
[]
]
},
{
"id": "511eb303.1ba71c",
"type": "rbe",
"z": "c486d98b.e3b238",
"name": "Nur bei Änderung des Wert weiter",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"property": "payload",
"x": 380,
"y": 540,
"wires": [
[
"53fe33f5.67bb6c"
]
]
},
{
"id": "53fe33f5.67bb6c",
"type": "switch",
"z": "c486d98b.e3b238",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "str"
},
{
"t": "eq",
"v": "0",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 590,
"y": 540,
"wires": [
[
"83414a68.031a2"
],
[
"2a78623a.49899e"
]
]
},
{
"id": "83414a68.031a2",
"type": "template",
"z": "c486d98b.e3b238",
"name": "Geöffnet",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "Das Fenster im Arbeitszimmer wurde geöffnet.",
"output": "str",
"x": 740,
"y": 500,
"wires": [
[
"fd2bf97a.f97078",
"74eb5306.bf9834"
]
]
},
{
"id": "2a78623a.49899e",
"type": "template",
"z": "c486d98b.e3b238",
"name": "Geschlossen",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "Das Fenster im Arbeitszimmer geschlossen.",
"output": "str",
"x": 750,
"y": 580,
"wires": [
[
"fd2bf97a.f97078",
"74eb5306.bf9834"
]
]
},
{
"id": "69d3086d.60bbd",
"type": "openhab2-controller",
"z": "",
"name": "OpenHab2",
"protocol": "http",
"host": "localhost",
"port": "8080",
"path": "",
"username": "",
"password": ""
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment