Hi all
I'm developing a database for the state of my devices over time (After all, how smart is a house if it doesn't remember anything?)
At the moment I have a python script that runs every 15 secs and posts every state of every device to my web service.
As you can imagine, that's both massively inefficient, and not granular enough. If a door sensor opens and closes in between that 15 sec interval, it will never be recorded in the DB.
Ideally, what I would like is a way to run a script when *any* device's state changes, as long as I can also find out which device / state changed
Can anybody suggest how this can be achieved?
Thanks!