Ignore message number one and two?

I am considering making an automation for a door lock, and I am a little bit unsure where to start. I have one sensor which put the house in "away" I can give it a value "1" Then I have another sensor on my garage door. Which tells if its open or not (0,1). What I want to achieve is the following.

I leave the house, put it in away mode and my door lock locks my front door. Then I open my garage door and I dont want anything to happen when the sensor change from 1 (Garage door closed), to 0 (Garage door open) And I also want nothing to happen when my garage door closes, 0 to 1. But then when someone arrive and open the door I want the signal changing from 1 to 0, to trigger my door lock. When entering the front door the house goes to mode "Home" and it can do a reset.

I assume during nice weather in the summer that it is a possibility that the garage door is open so maybe it should have to wait for the change value when garage door goes from open to closed, to fire the event next time it changes from closed to open again.

Hope this was understandable and that anyone can point me in a direction where I can solve this.

Best regards
Freddy.

If I'm understanding correctly, then if someone breaks into the garage, while you are away you want it to unlock the front door ???

1 Like

That is a possibility, but it was not my question. It have been considered, also considering adding geolocation. But I do want to solve this first one for a starter.

I would suggest a grace period then for the garage door.
So if you put it in away mode you store the time, any actions on the garage door within say 5 mins of this time are ignored.

Thank you, just make a simple delay then. Then trigger the action the next time the garage door opens. Is it possible to do IFs and ANDs, like: if away and door open and phone present, the trigger door lock.

Yes there are many ways to do that kind of logic.

But you are probably right, I should find more secure ways to open the front door. Easy is not necessary the best.

1 Like

Well - I wouldn't recommend your first suggestion :wink: