A burglar who conned hotel staff into letting him into a couple’s room got away with their jewellery and heart medication, York magistrates heard.