Trying to fix bug in hasChanged that impedes propagation of states to other lamps