Moving forward, updates to this subflow will be found at the following repository: https://github.com/sstratoti/actionable-notifications-subflow-for-ios
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "360f1317.265a9c", | |
"type": "tab", | |
"label": "BabbyBuddy", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "3df976b9.981fea", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sensor: | |
- platform: rest | |
scan_interval: 15 | |
name: BabyBuddy Feedings | |
resource: https://babybuddy.YOURDOMAIN.com/api/feedings/?limit=20 | |
value_template: N/A | |
json_attributes: | |
- results | |
headers: | |
Authorization: !secret baby_buddy_token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"2c868d6d.c2ee2a","type":"http request","z":"b2a0a.3b747df7","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"http://192.168.1.150:6415/entities","tls":"","persist":false,"proxy":"","authType":"","x":710,"y":520,"wires":[["af857cc.d8fa8"]]},{"id":"c50bc7c8.db9c08","type":"inject","z":"b2a0a.3b747df7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":230,"y":580,"wires":[["2c868d6d.c2ee2a"]]},{"id":"af857cc.d8fa8","type":"function","z":"b2a0a.3b747df7","name":"","func":"msg.notification = '';\nmsg.notification_in = '';\n\nfor (i=0; i < msg.payload.length; i++){\n \n if (msg.payload[i].name == \"Steves-iPhone-BLE Room Presence\"){\n\n if (msg.payload[i].distances['Living Room'].outOfRange) {\n msg.notification += \"<br> Living Room Out Of Range (\" + msg.payload[i].distances['Living Room'].distance + \")\";\n } else {\n msg.notification_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msg.notification = ''; | |
msg.notification_in = ''; | |
for (i=0; i < msg.payload.length; i++){ | |
if (msg.payload[i].name == "Steves-iPhone-BLE Room Presence"){ | |
if (msg.payload[i].distances['Living Room'].outOfRange) { | |
msg.notification += "<br> Living Room Out Of Range (" + msg.payload[i].distances['Living Room'].distance + ")"; | |
} else { | |
msg.notification_in += " <br> Living Room (" + msg.payload[i].distances['Living Room'].distance + ")"; | |
} | |
if (msg.payload[i].distances['Kitchen'].outOfRange) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "eec8b4376623cc26", | |
"type": "subflow", | |
"name": "HA Alert Queue", | |
"info": "", | |
"category": "", | |
"in": [ | |
{ | |
"x": 180, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "90e68c3c3bca25ff", | |
"type": "ha-entity", | |
"z": "eff29b39482d7ed4", | |
"name": "Active Alert", | |
"server": "74f36281.ae094c", | |
"version": 1, | |
"debugenabled": false, | |
"outputs": 1, |
OlderNewer