[quote=“qwertypo, post:1, topic:18674”]
[inactive]
[/quote]the [] indicate an array of values, which means motion1 has multiple:true and there just happens to be only one motion sensor in there. In other words, you might have an array of them.
So, you could test for montionState.contains(“inactive”) which will work so long as any of the motion detectors has no motion. If you want to make sure ALL of them have no motion, you’d need to check
Very welcome. Groovy is kinda nice because it “just works” most of the time - but it actually hides a lot of subtleties (as does the SmartThings models of devices and how you use them) that kinda bite you in the behind at first