Ensure deviceId is lower case