Count of WebCoRE presence sensors at place?


#1

Anybody know of a way to get a count of WebCoRE presence devices who’s currentPlace = “Home”?


#2

First crack at a solution. @people is a list of WebCoRE presence sensors. @peopleHome is an int.


#3

define
device people = device1, device2, device3 etc.
device peopleHome = (leave as not set)
integer peopleHomeCount = (leave as not set)

If any of {people} ARE 'Home’
x2 Save matching devices to {PeopleHome} (click on the cog in the IF statement to find this)
THEN
set variable {peopleHomeCount} = count(peopleHome)


#4

Thanks, I like it. What I had worked but this is better.