Add client ip to log - fix lamp on/off setting