1) Give a description of the problem
I’m looking for a better way to get status for each device in a list.
2) What is the expected behavior?
I have a global variable that reflects the number of people that are home. What I want to do is make this ‘set variable’ automatic so I don’t have to manually type in each new sensor as it’s added, just as the tile statement above it would (without creating a loop).
3) What is happening/not happening?
Everything is working, I’m just looking for a better way to do it. I’m not sure this is possible but what I was trying to do is “add up presence for all sensors listed in the Device Sensors variable”… 1 for present, 0 for not present.
I tried the variable $devices but came up short. I don’t have any pistons that use that variable and have yet to figure out how to put it to use… can anyone provide a quick explanation?
Is there a way to do that? Probably pretty narrow use if not… just wondering if there was something quick way to glean information from devices I was missing.
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
Not necessary