require "core"
local gateway = core.get_gateway()
local device = core.modify_device( device_id, { gateway_id = gateway.id, ... } )
require "core"
local gateway = core.get_gateway()
local sirenDevice = core.modify_device( siren_device_id, { house_modes_options = { alarms_off = {"1", "2", "3", "4" } }, ... } )
local motionSensorDevice = core.modify_device( motion_sensor_id, { house_modes_options = { disarmed = {"1", "3"} }, ... } )