Polling Switch Levels
Posted: 12 Jan 2016 03:56
Now that poltos and others have taught me that US switches often do not notify the controller when their level changes, I'm implementing a polling process in the nodejs app I'm writing to manage my lighting.
I noticed that there was a built-in module to do this. But it doesn't allow polling to be done more often than once a minute, as I recall.
When I poll 7 switches via the JSON API (from within my nodejs app) it typically takes less than 0.3 seconds to get all the levels. This is on a raspberry pi 2.
Is that typical? If each switch takes less than 50 milliseconds to poll I could probably poll my entire home once every five seconds and not come close to tying up the z-way-server.
I noticed that there was a built-in module to do this. But it doesn't allow polling to be done more often than once a minute, as I recall.
When I poll 7 switches via the JSON API (from within my nodejs app) it typically takes less than 0.3 seconds to get all the levels. This is on a raspberry pi 2.
Is that typical? If each switch takes less than 50 milliseconds to poll I could probably poll my entire home once every five seconds and not come close to tying up the z-way-server.