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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
start | mutation | protected | create | no |
stop | mutation | protected | create | no |
getStatus | query | protected | view | no |
getDevices | query | protected | view | no |
reloadDevice | mutation | protected | create | no |
supportsDiscovery | query | protected | view | no |
discoverDevices | mutation | admin | admin only | no |
getDiscoveryModes | query | protected | view | no |
classifyDiscoveryHits | mutation | admin | admin only | no |
getDiscoveryParamsSchema | query | protected | view | no |
getManualCreationType | query | protected | view | no |
adoptDiscoveredDevice | mutation | admin | admin only | no |
supportsManualCreation | query | protected | view | no |
getChildCreationSchema | query | protected | view | no |
createDevice | mutation | admin | admin only | no |
testCreationField | mutation | admin | admin only | no |
deviceProvider.start
- Kind: mutation —
POST /trpc/deviceProvider.start - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitydevice-provider, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=deviceProvider.starton your hub
Input
voidOutput
voiddeviceProvider.stop
- Kind: mutation —
POST /trpc/deviceProvider.stop - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitydevice-provider, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=deviceProvider.stopon your hub
Input
voidOutput
voiddeviceProvider.getStatus
- Kind: query —
GET /trpc/deviceProvider.getStatus - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitydevice-provider, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=deviceProvider.getStatuson your hub
Input
voidOutput
ProviderStatusSchemaShapes: ProviderStatusSchema
deviceProvider.getDevices
- Kind: query —
GET /trpc/deviceProvider.getDevices - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitydevice-provider, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=deviceProvider.getDeviceson your hub
Input
voidOutput
({ 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:
createon capabilitydevice-provider, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=deviceProvider.reloadDeviceon 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:
viewon capabilitydevice-provider, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=deviceProvider.supportsDiscoveryon your hub
Input
{}Output
booleandeviceProvider.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.discoverDeviceson 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:
viewon capabilitydevice-provider, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=deviceProvider.getDiscoveryModeson 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.classifyDiscoveryHitson 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:
viewon capabilitydevice-provider, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=deviceProvider.getDiscoveryParamsSchemaon your hub
Input
{}Output
unknowndeviceProvider.getManualCreationType
- Kind: query —
GET /trpc/deviceProvider.getManualCreationType - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitydevice-provider, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=deviceProvider.getManualCreationTypeon 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.adoptDiscoveredDeviceon 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:
viewon capabilitydevice-provider, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=deviceProvider.supportsManualCreationon your hub
Input
{}Output
booleandeviceProvider.getChildCreationSchema
- Kind: query —
GET /trpc/deviceProvider.getChildCreationSchema - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitydevice-provider, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=deviceProvider.getChildCreationSchemaon 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
unknowndeviceProvider.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.createDeviceon 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.testCreationFieldon 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 }