Seem to be doubting myself on a few things lately. Here’s another one. What would be. Eat for this situation - using the any of these in the trigger part or should they be listed separately with “or” between them? What would be the difference? Additionally what’s best here - two separate statements like I’ve got or one statement using “else” for both actions?
Piston Construction Questions
I would be more concerned about both states being triggered concurrently. Since you are relying on 3 different services for presence if one triggers home and the other triggers quickly away both conditions would be triggered say with a small delay. But as you have it coded this is the most efficient way of handling the condition of present or not present with multiple devices.
OK, just going to throw this out there but what happens when your presence sensors report present at different times? I see the potential for the garage door possibly opening at three different times. one reports as present, the GD opens, you come in, shut the GD, go in the house and a few minutes later you hear the GD opening again after another presence sensor reports itself as present
You may want to consider using a virtual presence sensor, where it is set by the first presence sensor that reports.
I actually do have another piston where I’m doing what you’re saying (I think) and maybe could use that here. I’ve just got this one piston I’m trying to fix that always marks as away and closes the contact sensor but doesn’t always mark as present and open it consistently.
Here’s another example of where I question on which method is best. In this situation would it be best to use a restriction or a condition?