Goal: using phones as presence detectors (location and geofence via smartthings), set modes to: home, away, or asleep based on condition.
I have two phones I am using as presence detectors. I am having an issue creating a stringify flow that will meet the following conditions:
- If one (or more) phone is detected, set mode to "Home"
- If one (or more) phone is detected AND it is past 9pm, set mode to "Sleep"
- If zero phones are detected, set mode to "Away"
Any help would be greatly appreciated.