Humidity, window sensor with alarm

Hi
I’m very very new to this so I’m not very clued up yet. I’ve not got any equipment yet, 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 goes up and the window is closed. My idea was to use a humidity sensor, a window sensor, a ZB mini which says the bathroom light is on and some kind of buzzer/alarm.
Is this possible to do?
Thanks

Yes, that is possible.

1 Like

So Ive got everything setup and it appears to be all working correctly but I cant quite get the automation correct because I’m a noob I guess.
Its doing more or less what I want it to do but the siren (Tuya Neo) Is only sounding for about 9 seconds and i have no idea how to change it.

EDIT
Found it