Defining the topics and commands to control home automation