Dominevo
ReferenceHTTP API

deviceProvider

The deviceProvider router: 16 methods of the device-provider capability, with tier, scope, input and output.

Capability device-provider · scope system · mode collection · source packages/types/src/capabilities/device-provider.cap.ts:209.

Every method is called at /trpc/deviceProvider.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
startmutationprotectedcreateno
stopmutationprotectedcreateno
getStatusqueryprotectedviewno
getDevicesqueryprotectedviewno
reloadDevicemutationprotectedcreateno
supportsDiscoveryqueryprotectedviewno
discoverDevicesmutationadminadmin onlyno
getDiscoveryModesqueryprotectedviewno
classifyDiscoveryHitsmutationadminadmin onlyno
getDiscoveryParamsSchemaqueryprotectedviewno
getManualCreationTypequeryprotectedviewno
adoptDiscoveredDevicemutationadminadmin onlyno
supportsManualCreationqueryprotectedviewno
getChildCreationSchemaqueryprotectedviewno
createDevicemutationadminadmin onlyno
testCreationFieldmutationadminadmin onlyno

deviceProvider.start

  • Kind: mutation — POST /trpc/deviceProvider.start
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability device-provider, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.start on your hub

Input

void

Output

void

deviceProvider.stop

  • Kind: mutation — POST /trpc/deviceProvider.stop
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability device-provider, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.stop on your hub

Input

void

Output

void

deviceProvider.getStatus

  • Kind: query — GET /trpc/deviceProvider.getStatus
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-provider, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.getStatus on your hub

Input

void

Output

ProviderStatusSchema

Shapes: ProviderStatusSchema

deviceProvider.getDevices

  • Kind: query — GET /trpc/deviceProvider.getDevices
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-provider, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.getDevices on your hub

Input

void

Output

({ id: string; name: string; type: string })[]

deviceProvider.reloadDevice

  • Kind: mutation — POST /trpc/deviceProvider.reloadDevice
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability device-provider, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.reloadDevice on your hub

Input

{ stableId: string }

Output

{ deviceId: number }

deviceProvider.supportsDiscovery

  • Kind: query — GET /trpc/deviceProvider.supportsDiscovery
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-provider, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.supportsDiscovery on your hub

Input

{}

Output

boolean

deviceProvider.discoverDevices

  • Kind: mutation — POST /trpc/deviceProvider.discoverDevices
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.discoverDevices on your hub

Input

{ params?: Record<string, unknown> }

Output

({ stableId: string; type: "camera" | "light" | "siren" | "switch" | "sensor" | "climate" | "button" | "event-emitter" | "update" | "generic" | "notifier" | "script" | "automation" | "lock" | "cover" | "valve" | "humidifier" | "water-heater" | "fan" | "media-player" | "alarm-panel" | "control" | "presence" | "weather" | "weather-station" | "vacuum" | "lawn-mower" | "container" | "image" | "pet-feeder" | "pet-fountain" | "dishwasher" | "washer" | "dryer" | "gateway" | "heat-pump" | "vehicle" | "energy-system" | "workload"; suggestedName: string; prefilledConfig: Record<string, unknown>; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" | "pressure" | "speed" | "precipitation" | "precipitation-rate" | "length" | "area" | "illuminance" | "irradiance" | "power" | "energy" | "voltage" | "current" | "apparent-power" | "humidity" | "percentage" | "concentration-volume" | "concentration-mass" | "concentration-ppb" | "volume" | "price-per-volume" | "duration" | "duration-ms" | "information" | "sound-level" | "signal-level" | "signal-ratio" | "frequency" | "colour-temperature" | "angle" | "bitrate" | "rate" | "mass" | "index" | "ratio" | "count" | "none" | "device"; dateTimeShape?: "date" | "time" | "datetime"; raw?: Record<string, unknown> }; alreadyOnboarded?: boolean; onboardedDeviceId?: number; onboardedName?: string; setupIntegration?: boolean; parentStableId?: string; selectable?: boolean; needsParams?: string[] })[]

deviceProvider.getDiscoveryModes

  • Kind: query — GET /trpc/deviceProvider.getDiscoveryModes
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-provider, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.getDiscoveryModes on your hub

Input

{}

Output

DiscoveryModeSchema[]

Shapes: DiscoveryModeSchema

deviceProvider.classifyDiscoveryHits

  • Kind: mutation — POST /trpc/deviceProvider.classifyDiscoveryHits
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.classifyDiscoveryHits on your hub

Input

{ hits: DiscoveryHitSchema[]; params?: Record<string, unknown> }

Output

({ stableId: string; type: "camera" | "light" | "siren" | "switch" | "sensor" | "climate" | "button" | "event-emitter" | "update" | "generic" | "notifier" | "script" | "automation" | "lock" | "cover" | "valve" | "humidifier" | "water-heater" | "fan" | "media-player" | "alarm-panel" | "control" | "presence" | "weather" | "weather-station" | "vacuum" | "lawn-mower" | "container" | "image" | "pet-feeder" | "pet-fountain" | "dishwasher" | "washer" | "dryer" | "gateway" | "heat-pump" | "vehicle" | "energy-system" | "workload"; suggestedName: string; prefilledConfig: Record<string, unknown>; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" | "pressure" | "speed" | "precipitation" | "precipitation-rate" | "length" | "area" | "illuminance" | "irradiance" | "power" | "energy" | "voltage" | "current" | "apparent-power" | "humidity" | "percentage" | "concentration-volume" | "concentration-mass" | "concentration-ppb" | "volume" | "price-per-volume" | "duration" | "duration-ms" | "information" | "sound-level" | "signal-level" | "signal-ratio" | "frequency" | "colour-temperature" | "angle" | "bitrate" | "rate" | "mass" | "index" | "ratio" | "count" | "none" | "device"; dateTimeShape?: "date" | "time" | "datetime"; raw?: Record<string, unknown> }; alreadyOnboarded?: boolean; onboardedDeviceId?: number; onboardedName?: string; setupIntegration?: boolean; parentStableId?: string; selectable?: boolean; needsParams?: string[] })[]

Shapes: DiscoveryHitSchema

deviceProvider.getDiscoveryParamsSchema

  • Kind: query — GET /trpc/deviceProvider.getDiscoveryParamsSchema
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-provider, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.getDiscoveryParamsSchema on your hub

Input

{}

Output

unknown

deviceProvider.getManualCreationType

  • Kind: query — GET /trpc/deviceProvider.getManualCreationType
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-provider, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.getManualCreationType on your hub

Input

{ integrationId?: string }

Output

{ deviceType: "camera" | "light" | "siren" | "switch" | "sensor" | "climate" | "button" | "event-emitter" | "update" | "generic" | "notifier" | "script" | "automation" | "lock" | "cover" | "valve" | "humidifier" | "water-heater" | "fan" | "media-player" | "alarm-panel" | "control" | "presence" | "weather" | "weather-station" | "vacuum" | "lawn-mower" | "container" | "image" | "pet-feeder" | "pet-fountain" | "dishwasher" | "washer" | "dryer" | "gateway" | "heat-pump" | "vehicle" | "energy-system" | "workload" | null }

deviceProvider.adoptDiscoveredDevice

  • Kind: mutation — POST /trpc/deviceProvider.adoptDiscoveredDevice
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.adoptDiscoveredDevice on your hub

Input

{ candidate: { stableId: string; type: "camera" | "light" | "siren" | "switch" | "sensor" | "climate" | "button" | "event-emitter" | "update" | "generic" | "notifier" | "script" | "automation" | "lock" | "cover" | "valve" | "humidifier" | "water-heater" | "fan" | "media-player" | "alarm-panel" | "control" | "presence" | "weather" | "weather-station" | "vacuum" | "lawn-mower" | "container" | "image" | "pet-feeder" | "pet-fountain" | "dishwasher" | "washer" | "dryer" | "gateway" | "heat-pump" | "vehicle" | "energy-system" | "workload"; suggestedName: string; prefilledConfig: Record<string, unknown>; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" | "pressure" | "speed" | "precipitation" | "precipitation-rate" | "length" | "area" | "illuminance" | "irradiance" | "power" | "energy" | "voltage" | "current" | "apparent-power" | "humidity" | "percentage" | "concentration-volume" | "concentration-mass" | "concentration-ppb" | "volume" | "price-per-volume" | "duration" | "duration-ms" | "information" | "sound-level" | "signal-level" | "signal-ratio" | "frequency" | "colour-temperature" | "angle" | "bitrate" | "rate" | "mass" | "index" | "ratio" | "count" | "none" | "device"; dateTimeShape?: "date" | "time" | "datetime"; raw?: Record<string, unknown> }; alreadyOnboarded?: boolean; onboardedDeviceId?: number; onboardedName?: string; setupIntegration?: boolean; parentStableId?: string; selectable?: boolean; needsParams?: string[] }; integrationId?: string }

Output

{ id: number; stableId: string; addonId: string; type: string; name: string; parentDeviceId: number | null; online: boolean; features: string[]; config: Record<string, unknown>; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" | "pressure" | "speed" | "precipitation" | "precipitation-rate" | "length" | "area" | "illuminance" | "irradiance" | "power" | "energy" | "voltage" | "current" | "apparent-power" | "humidity" | "percentage" | "concentration-volume" | "concentration-mass" | "concentration-ppb" | "volume" | "price-per-volume" | "duration" | "duration-ms" | "information" | "sound-level" | "signal-level" | "signal-ratio" | "frequency" | "colour-temperature" | "angle" | "bitrate" | "rate" | "mass" | "index" | "ratio" | "count" | "none" | "device"; dateTimeShape?: "date" | "time" | "datetime"; raw?: Record<string, unknown> } }

deviceProvider.supportsManualCreation

  • Kind: query — GET /trpc/deviceProvider.supportsManualCreation
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-provider, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.supportsManualCreation on your hub

Input

{}

Output

boolean

deviceProvider.getChildCreationSchema

  • Kind: query — GET /trpc/deviceProvider.getChildCreationSchema
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-provider, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.getChildCreationSchema on your hub

Input

{ type: "camera" | "light" | "siren" | "switch" | "sensor" | "climate" | "button" | "event-emitter" | "update" | "generic" | "notifier" | "script" | "automation" | "lock" | "cover" | "valve" | "humidifier" | "water-heater" | "fan" | "media-player" | "alarm-panel" | "control" | "presence" | "weather" | "weather-station" | "vacuum" | "lawn-mower" | "container" | "image" | "pet-feeder" | "pet-fountain" | "dishwasher" | "washer" | "dryer" | "gateway" | "heat-pump" | "vehicle" | "energy-system" | "workload"; integrationId?: string }

Output

unknown

deviceProvider.createDevice

  • Kind: mutation — POST /trpc/deviceProvider.createDevice
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.createDevice on your hub

Input

{ type: "camera" | "light" | "siren" | "switch" | "sensor" | "climate" | "button" | "event-emitter" | "update" | "generic" | "notifier" | "script" | "automation" | "lock" | "cover" | "valve" | "humidifier" | "water-heater" | "fan" | "media-player" | "alarm-panel" | "control" | "presence" | "weather" | "weather-station" | "vacuum" | "lawn-mower" | "container" | "image" | "pet-feeder" | "pet-fountain" | "dishwasher" | "washer" | "dryer" | "gateway" | "heat-pump" | "vehicle" | "energy-system" | "workload"; config: Record<string, unknown>; integrationId?: string }

Output

{ id: number; stableId: string; addonId: string; type: string; name: string; parentDeviceId: number | null; online: boolean; features: string[]; config: Record<string, unknown>; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" | "pressure" | "speed" | "precipitation" | "precipitation-rate" | "length" | "area" | "illuminance" | "irradiance" | "power" | "energy" | "voltage" | "current" | "apparent-power" | "humidity" | "percentage" | "concentration-volume" | "concentration-mass" | "concentration-ppb" | "volume" | "price-per-volume" | "duration" | "duration-ms" | "information" | "sound-level" | "signal-level" | "signal-ratio" | "frequency" | "colour-temperature" | "angle" | "bitrate" | "rate" | "mass" | "index" | "ratio" | "count" | "none" | "device"; dateTimeShape?: "date" | "time" | "datetime"; raw?: Record<string, unknown> } }

deviceProvider.testCreationField

  • Kind: mutation — POST /trpc/deviceProvider.testCreationField
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceProvider.testCreationField on your hub

Input

{ type: "camera" | "light" | "siren" | "switch" | "sensor" | "climate" | "button" | "event-emitter" | "update" | "generic" | "notifier" | "script" | "automation" | "lock" | "cover" | "valve" | "humidifier" | "water-heater" | "fan" | "media-player" | "alarm-panel" | "control" | "presence" | "weather" | "weather-station" | "vacuum" | "lawn-mower" | "container" | "image" | "pet-feeder" | "pet-fountain" | "dishwasher" | "washer" | "dryer" | "gateway" | "heat-pump" | "vehicle" | "energy-system" | "workload"; key: string; value: unknown; formValues?: Record<string, unknown> }

Output

{ status: "ok" | "error"; labels?: string[]; error?: string }