openhab-scripters / openhab-helper-libraries

Scripts and modules for use with openHAB
Eclipse Public License 1.0
88 stars 69 forks source link

Area T&A: Add override and lux antiflap support #322

Closed theiding closed 4 years ago

theiding commented 4 years ago

1) Override Honor an optional override item when determining action brightness. Made existing mechanism for override by state of 99 or 100 configurable to allow turning it off when it doesn't apply. Refactored light_action to eliminate duplicate code. 2) Lux antiflap Add notion of configurable lux threshold buffer to handle flapping lux sensor. As long as lux sensor reading variations stay within the buffer size no new threshold breaches are detected avoiding resulting actions to flap between on and off. Refactored to gracefully handle NULL items.

Signed-off-by: Mark Theiding mark.theiding@gmail.com