Hello, I have movement sensor of Xiaomi, and I want that the light of the kitchen turns OFF, after 15 minutes, of NO MOVEMENT, basically when the sensor is OFF for 15 minutes, after changing from ON to OFF…
But I’m not able, anyone could help me?
Xiaomi sensors have an attribute No motion since that you can use. You can use a template trigger with the following template. {{states.binary_sensor.motion_sensor_158d00016daecc.attributes["No motion since"] > 900}}
This will return true if there has been no motion for more than 15 minutes.