detect light state

added an Arab POC of lighthouse state detection
less arab

refactored to be more joey
Merge remote-tracking branch 'origin/master' into develop