I got me some Door sensors, they are Tuya WiFi Door/Window sensor:
It uses a phone app called Smart Life:
It sort of works fine.
it bugs me senseless how these IOT devices use some cloud service and tie you to this one app etc.
And in this particular case the SmartLife app shows me a great log of open/close events but provides no means to export this data for statistical analysis. As it happens, these are sensors on the doors of a street library and we want to collect stats on frequency of use, times of day, and more. But the out of the box offerings are not there for that.
So, I have these on a LAN with an Omnia as a gateway and it strikes me it should be eminently possible (with some ssl concerns on the table), given I know the MAC and IP of each switch, to log all the traffic from and to it on the Omnia. Further, to possibly process those logs then (a Python script) to produce a neat summary of open/close events.
Alas I don’t know quite where to start or if this is a pipe dream because of SSL comms (though surely as man in the middle it’s possible to decrypt even SSL? being privy to whole comms - though I fear it be complicated and again not out-of-the-box). But it remains a premise in any case that the device opens a SSL socket on some remote server and sends its open/close events.
Wondering if anyone is doing anything similar?
Or is this a case of having to find a way to reflash the firmware on these switches to use something open?