Alarm of some kind if the parameters are met

Hi

I’m very very new to this so I’m not very clued up yet. I’ve been using Sonoff Mini R4 for a while to control lights but now I’m wanting to try something more adventurous, I’m just hoping my idea will work.
So, my problem is, the kids keep leaving the bathroom window closed when they have a bath or shower, I’m wanting to setup a system where an alarm goes off when the humidity gets to a certain level with the window closed.

I’ve got a
ZBmini L2 for the light
SNZB-02P humidity sensor
SNZB-04P for the window
TUYA siren

IF
Light on

IF
Window sensor is closed

IF humidity is x

THEN
Turn ON alarm

Once the window has been opened

IF
Light on

IF
Window sensor is open

IF humidity is x

THEN
Turn Off alarm

It should work, but the conditions in the scene must be set to meet all conditions, then the action.
img2

Thanks. I’m still waiting for all of the parts to be delivered so can’t test it out yet.

Something like this may be helpful:

1 Like

Well, there will still be the closed window condition. The second scene will be similar, but with the window open and the alarm off.

@jam3 what software is that, EWeLink web dark?