Page 1 of 1

Polling Switch Levels

Posted: 12 Jan 2016 03:56
by markolbert
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.

Re: Polling Switch Levels

Posted: 12 Jan 2016 11:14
by pz1
But you may quite well end up overloading your Z-Wave mesh network job queue. Watch that queue with the ExpertUI, while you are testing. (Controller Info menue, top left button)