Hello @ricardol
I have found this topic about a “WiFi door/windows sensor” […] “The contact connects to the WiFi only to transmit the status change, it does not remain connected continuously.”
And here is maybe a solution:
However, I did find a bit of a workaround, utilising Alexa. You need to expose a Switchable Item from openHAB to Alexa, and then set up two Routines - one for when the Smart Life sensor reports “Open”, and another when it reports “Close”, which will change the state of this openHAB Item.
Reaction time wasn’t too bad - generally within a second or so of the status changing in SmartLife, it also reported in openHAB.
But, it does rely on the cloud for, SmartLife, Alexa AND openHAB to all be functioning, and performant.
This may be a solution for these types of sensors. However, as I understand it, it can’t work only locally, it has to be connected to the Cloud.
I will try this solution only for my sensor to see if it works!