Hi, I have a xiaomi door sensor and a broadlink tc2 switch.
My need is
- when the door opens send switch command_on signal
- when the door closes send switch command_off signal
- after X minute of the door being open send switch command_off signal
Which is the best way to do it? SOme examples?
Thanks