tmj4 Posted July 26, 2021 Share Posted July 26, 2021 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) When Macro GetOccupancy is executed 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' Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.