If any of these devices change, then this - What's wrong?


#1

1) Give a description of the problem
My problem is the IF on line 49. If mode is “Away” and one of the switch/contact/motion changes. It should trigger.
I think I have the $status changes, then notify. $status is the only option it gives me though. Is there a way to do this with out grouping switches, contacts, and montion sensors into separate IFs?

**4)


#2

Status won’t give you want you want. Assuming you want to monitor open/closed status with all those contact sensors, just change $status to contact and it should work.


#3

Well what are you trying to test for that is a combined feature of both the motion sensors and the contact switches? Because if you put all together on the same IF condition then I would expect that you’re looking to determine something about them that they share in common.

My understanding is that Motion sensors go “active” and “inactive” and contact sensors “open” and “close”. Which is likely why you can only choose status for your test…because they all share that.

I would expect that splitting the motion sensors away from the contact sensors would get you what you want (providing you want open/close/active/inactive as your result).


#4

I figure “status” was good for any kind of sensor, whether it is motion, switches, or contacts.

So if I had a group of mixed devices and the status changed for any of them - trigger.
I can’t select “contact” since I have a mix of devices. The only option I have is “status” with the mix.

I could group the switches, contacts, and motion sensors into different IFs, just thought the status change would work though.


#5

But “$status” is not the same as “status”.

$status holds info such is if the device is “Offline” or not…

You can’t compare the “status” of all those devices on the same IF condition as 1) it’s not available and 2) it’s not available because the values that would be returned are different.