|  Developer
Updated on May 17, 2022

update_gateway()

  • Modify a gateway registered for a plugin the current script belongs to.
Edit

  • params: gateway (table).
fields type description
manual_device_adding string “wizard” or “no”, depending on whether the gateway should have the ability to add/remove devices
ready bool whether or not a gateway is operational
info object additional information about gateway
  • return: none.
Edit
				
					require "core"

local can_add_remove_devices = ...

core.update_gateway({
    manual_device_adding = can_add_remove_devices and "wizard" or "no"
})