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