e-mcgee / paradox_platform

Paradox alarm homebridge platform
25 stars 6 forks source link

increasing status frequency #15

Closed HajLender closed 6 years ago

HajLender commented 6 years ago

Hi, thank you for your effort, the plugin works much much better now.

Is there a way to increase the frequency of getting status of specific sensors/zones? I would like to use some of them for light turn on/off (e.g. when motion identified in garage turn on the light) and by now it works cca. once of five tries (when the status is requested exactly at the time when the motion is detected)

Thank you

e-mcgee commented 6 years ago

I changed the last version to 5 seconds. There is a constant in the plugin you change. The minimum would be about three quarters of a second as that is the time it takes to get the status form the alarm. The constant is called POLL_DELAY on line 76 of index.js

e-mcgee commented 6 years ago

I just published an updated verison (254) where you can tune all the parameters. The Poll delay parameter as well so you can do this in your config.json file.