Corrects value sent to device for state on reconnection, extracts state-to-color to a dictionary