Skip to main content
Skip table of contents

Device_Type

Purpose

The Device_API should be set appropriately if the device is a part of an API, set to Plug_In if it is not a part of an API but is owned by a Plug-In, or set to No_API if it is not owned by a plug-in and is not a part of an API.  If the Device_API is set to an API type such as Thermostat or Music, then the Device_Type should be set to one of the API types for those APIs. (See DeviceTypeInfo Enums)


Parameters

The Device_Type property is an integer denoting the device type of an API, if any, that this device is a part of:

Public Property Device_Type As Integer


Returns



Example

Sample Code

VB
	(This sets the device to the thermostat API type "Mode Set")
	Dim DT As New DeviceAPI.DeviceTypeInfo
	DT.Device_API = DeviceAPI.DeviceTypeInfo.eDeviceAPI.Thermostat
	DT.Device_Type = DeviceAPI.DeviceTypeInfo.eDeviceType_Thermostat.Mode_Set
	dv.DeviceType_Set(hs) = DT
	hs.SaveEventsDevices

	(This sets the device to a plug-in custom type.)
	Dim DT As New DeviceAPI.DeviceTypeInfo
	DT.Device_API = DeviceAPI.DeviceTypeInfo.eDeviceAPI.Plug_In
	DT.Device_Type = CInt(PlugDeviceType_X)
	DT.Device_SubType = 4
	dv.DeviceType_Set(hs) = DT
	hs.SaveEventsDevices


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.