no more duplicate messages when lamp is off. thanks to peterk_de