Implemented correct change of LED status for devices.