RL-IoT: Reinforcement Learning to Interact with IoT Devices