|  Developer
Updated on November 18, 2021

switch(mode_id)

  • Initiate a switch to the specified mode Cancels current transition to a different mode, if it is in progress
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")