Jump to content
C4 Forums | Control4

Tracking multiple users locations.


Recommended Posts

So this could very well be cleaned up and be made simpler (it was the first 'advanced' thing I programmed in C4 a few days after getting C4 going and I whipped it up in about 15 minutes), but it's still going strong and I haven't had to mess with it:

IFTTT config:

  • Phrases/strings used from PushOver need to be matched exactly in your IFTTT Action Detected programming
  • Each phone/device will need to have a IFTTT account and Pushover account (as outlined in the documentation)

Variables needed:

  • Name: <PersonA>Home Type: Boolean
  • Name: <PersonB>Home Type: Boolean
  • Name: <Person...N>Home Type: Boolean
  • Name: OccupancyCount Type: Number
  • Name: OccupancyCountPrev Type: Number
  • Name: OccupancyCountTemp Type: Number

Macros needed:

  • GetOccupancy (the main logic)
  • FirstArrival (homemade trigger event, called by GetOccupancy; place events/actions to happen on the first arrival here)
  • AnyArrival (homemade trigger event, called by GetOccupancy; place events/actions to happen on any arrival here)
  • AnyDeparture (homemade trigger event, called by GetOccupancy; place events/actions to happen on any departure here)
  • LastDeparture (homemade trigger event, called by GetOccupancy; place events/actions to happen on last departure here)

Programming:

  • IFTTT Action Detected (this will be for each phone/account, only showed one here)
    • 60489189_Screenshotfrom2021-07-2610-53-35.png.66fc1df0867e009804919cb3e64a0c18.png

 

  • When Macro GetOccupancy is executed
    • 1505683846_Screenshotfrom2021-07-2610-38-57.png.ad1a7bf379e05801e7ddc92281beb925.png

 

  • When Variable <PersonA>Home Changes
    • Execute Macro 'GetOccupancy'
  • When Variable <PersonB>Home Changes
    • Execute Macro 'GetOccupancy'
  •  When Variable <Person...N>Home Cha nges
    • Execute Macro 'GetOccupancy'

 

Link to comment
Share on other sites


This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.