switch(mode_id) Initiate a switch to the specified mode Cancels current transition to a different mode, if it is in progress Params Return Example Edit mode_id: string Edit delay (in seconds) before the modes are switched: number Edit local house_modes = require("house_modes") local delay = house_modes.switch("2")