Simplified it. If lights is on, then turn it off!
Refactor done. Agreed with Stefan.

Loose the Ints and Booleans and only use Floats. All tests have been
corrected. BuildingDAO was commented out, and it's usage replaced with
SensorValueCache because that's what it is.