Xiaomi Home Automation - Door Sensor

Hi All,

I have embarked in the home automation journey, exploring options to make my home smart.

Yesterday I received my first (of many) Xiaomi home automation kit. I want to create a scene to alert me when a door is left open for more than a certain period. All my attempts so far has failed.

Has anyone tried to program these sensors to send an alert if a door is left open for an extended period, but turn off the rule if the door is closed within the given period?

Eg: Door is open for more than 15 minutes, the alarm goes off

Thanks

T

You don’t actually program the sensor to do that. You create an automation in HASS that monitors how long the door is open and then sends an alert when it’s been open for your set amount of time.

Is there any out of the box solution with Xiaomi hub, without involving any codes?

No clue. I don’t use that hub.

You want the alert component - it’s designed to do exactly what you’re after (and it’s how I use it).