Polling Switch Levels

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
markolbert
Posts: 64
Joined: 16 Oct 2014 06:09

Polling Switch Levels

Post 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.
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Polling Switch Levels

Post 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)
Since 29-12-2016 I am no longer a moderator for this forum
Post Reply