Hi,
First post so please be gentle!
Ive read through a lot of the posts on these and saw people reported problems with Tuya integrations, particularly with these WiFi motion sensors;
https://expo.tuya.com/product/687112
However, I have managed to make some progress with this and got them to integrate and detect motion correctly which turns a light on when motion is detected which I’m taking as a small win. My issue is getting it to work the other way around.
So the way i managed to get these working is that HomeAssistant will recieve a state for around 15 seconds for whether someone is detected or its clear and then the device becomes unavailable until another state is set. So i need some help putting that into an automation script.
The only two states this can send is either “detected” or “cleared”.
For sake of argument well assume room_sensor is controlling room_light
Essentially The automation script needs to flow like this;
cleared state recieved by room_sensor
do nothing for 10 minutes
If room_sensor has not been set to state “detected” in that 10 minutes then;
switch off room_light
Just wondered if its even possible to set up an automation routine like that?
Once ive got that set up, ill share a guide as to how i got them to work along with scripts for both on and off routines because its not been the easiest journey haha
Thank You
Marc