Just wanted to validate thinking here … I have a bunch of Aqara Water leak sensors scattered about, and just put in an Aqara T1 Valve controller. Now, need a flow(s) to handle things.
If a leak is detected anywhere, and the valve is open, ask the user(s) to confirm turning off the valve. If s/he says
- YES - turn off the valve, if that fails then send notifications
- NO, then start a 2-minute timer
When that timer expires, confirm again, just in case
Here’s what I have so far
I think the flow, as is, is meeting your demands.
(Is it possible to send a confirm-notification to more then one person?)
Because I sometimes miss a confirm-notification (and the flow will pause there) I would do things a little bit different:
Water-leakage alarm > close valve > nobody at home> notification to all “device X alarm is on”
Someone at home > If person A at home > notification to person A ”check device X” > confirm-notification to person A after 2minutes “problem solved/nothing was wrong” > open valve
Person A not at home > notification to person B ”check device X” > confirm-notification to person B after 2minutes “problem solved/nothing was wrong” > open valve
I’m not sure about multiple notifications. Ideally one could send a confirm to multiple people, and the first one to reply “wins”. The “YES” replies could to into an Any block to then turn off the valve. I don’t know how to handle if one person replies “YES” and the other replies “NO” though …
Possibly could use variables - the YES path sets a variable, and the NO path checks that variable before proceeding. Same the other way around, the NO path sets another variable, and the YES path checks it.
Have to work out the logic if exactly what one wants to happen