Hi,
I created this little script with help from code inside a color change script that Sparkman posted a while back and thought I would share. The purpose is to be able to rely on Lux information even if you use the LED feature.
I use the Lux information along with sunset time to determine when motion should turn on certain lights. I use the LED feature to let me know about statuses of certain things around the house. If the Lux information is polled while the LED is on you will get a really high number. This script prevents that by turning the LED off if on, polling Lux, then returning LED to its previous state. You must disable automatic reporting of Lux in order to make sure you are not ever reading the LED brightness.
You must pass 3 parameters: name|luxRefID|ledRefID
Change the extension of the attached txt to vb.
Hopefully someone else finds this useful. Let me know if you have any questions.
Cheers!
I created this little script with help from code inside a color change script that Sparkman posted a while back and thought I would share. The purpose is to be able to rely on Lux information even if you use the LED feature.
I use the Lux information along with sunset time to determine when motion should turn on certain lights. I use the LED feature to let me know about statuses of certain things around the house. If the Lux information is polled while the LED is on you will get a really high number. This script prevents that by turning the LED off if on, polling Lux, then returning LED to its previous state. You must disable automatic reporting of Lux in order to make sure you are not ever reading the LED brightness.
You must pass 3 parameters: name|luxRefID|ledRefID
Change the extension of the attached txt to vb.
Hopefully someone else finds this useful. Let me know if you have any questions.
Cheers!