don't know if if matters but I implemented a "home/away" hack for myself using apilio.io:
Create a new boolean variable in Apilio.io:
Name it “xxx_Home "
Leave the value on "true"
Save the variable, copy the "toggle"-URL and make it somehow available on your phone (e.g. e-mail it to yourself or open Apilio on your smartphone)
I’ve already set my Almond to switch to “Away” when I leave. Now set up rules for telling Apilio.io that you’re home or away in IFTTT:
If xxx’s Phone connects from your Almond., then set xxx_Home:trueTrigger: A device has disconnected
Device: xxx’s Phone
Action: Make a web request
URL:
https://apilio. herokuapp.com/boolean_variables/xxx_Home/ set_true/with_key/nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Method: POST
Content Type: application/x-www-form-urlencoded
If xxx’s Phone disconnects from your Almond., then set xxx_Home:falseTrigger: A device has disconnected
Device: xxx’s Phone
Action: Make a web request
URL:
https://apilio. herokuapp.com/boolean_variables/xxx_Home/ set_false/with_key/nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Method: POST
Content Type: application/x-www-form-urlencoded
Now set up rules in IFTTT that will respond to Apilio.io reporting that you’re home or away. I wanted to arm my surveillance cameras:
Recipe Title: “If Maker Event "BlueIris_On", then turn on BlueIris”Trigger: Receive the web request
Event Name: BlueIris_On
Action: Make a web request
URL:
http://xxx.xxx.xxx.xxx:81/admin?signal=1&user=xxx&pw=xxxMethod: GET
Content Type: application/x-www-form-urlencoded
Recipe Title: “If Maker Event "BlueIris_Off", then turn off BlueIris”
Trigger: Receive the web request
Event Name: BlueIris_On
Action: Make a web request
URL:
http://xxx.xxx.xxx.xxx:81/admin?signal=1&user=xxx&pw=xxxMethod: GET
Content Type: application/x-www-form-urlencoded
Create new Conditions in Apilio.io:
Name: xxx_Home_TrueType of condition: Boolean
Linked to variable: xxx_Home
Rule: Must be true
Name: xxx_Home_False
Type of condition: Boolean
Linked to variable: xxx_Home
Rule: Must be true
Create new Logicblocks in Apilio.io:
blueiris_homeLinked to conditions: xxx_Home_True
Action Settings
True-action:
https://maker.ifttt.com/trigger/BlueIris_Off/with/key/nnnnnnnnnnnnnnnnnnnnnnFalse-action:
Advanced Options
Automatic evaluation: true
Only fire action if result changed: false
Evaluate Logicblock
Use the following URLs to trigger the logicblock from IFTTT or your connected device:
Evaluate:
https://apilio.herokuapp.com/logicblocks/blueiris_home/evaluate/with_key/nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnblueiris_away
Linked to conditions: xxx_Home_False
Action Settings
True-action:
https://maker.ifttt.com/trigger/BlueIris_On/with/key/ nnnnnnnnnnnnnnnnnnnnnn
False-action:
Advanced Options
Automatic evaluation: true
Only fire action if result changed: false
Evaluate Logicblock
Use the following URLs to trigger the logicblock from IFTTT or your connected device:
Evaluate:
https://apilio.herokuapp.com/logicblocks/blueiris_away/evaluate/with_key/nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnAnd you’re done!