Dominevo
ReferenceHTTP API

deviceManager

The deviceManager router: 118 methods of the device-manager capability, with tier, scope, input and output.

Capability device-manager · scope system · mode singleton · source packages/types/src/capabilities/device-manager.cap.ts:590.

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

MethodKindTierToken scopeViewer
allocateDeviceIdmutationprotectedcreateno
migrateDevicemutationadminadmin onlyno
repairMigrationSecretsmutationadminadmin onlyno
registerDevicemutationprotectedcreateno
removeDevicemutationprotecteddeleteno
persistConfigmutationadminadmin onlyno
loadConfigqueryadminadmin onlyno
loadRuntimeStatequeryadminadmin onlyno
loadMetaqueryprotectedviewno
setNamemutationadminadmin onlyno
setAliasmutationadminadmin onlyno
renderDeviceTemplatesqueryadminadmin onlyno
checkDeviceTemplatesqueryadminadmin onlyno
setLocationmutationadminadmin onlyno
setTagsmutationadminadmin onlyno
setTypemutationadminadmin onlyno
setIntegrationIdmutationadminadmin onlyno
setLinkDeviceIdmutationadminadmin onlyno
setPrimaryChildEntityIdmutationadminadmin onlyno
setChildLayoutmutationadminadmin onlyno
setPrimaryChildPreferencemutationadminadmin onlyno
setDisplaymutationadminadmin onlyno
getRoleDisplayDefaultsqueryprotectedviewyes
setRoleDisplayDefaultsmutationadminadmin onlyno
getWireableFieldsqueryprotectedviewno
setRolemutationadminadmin onlyno
applyInitialMetamutationadminadmin onlyno
setMetadatamutationadminadmin onlyno
setIdentifiersmutationadminadmin onlyno
listIdentityCandidatesqueryadminadmin onlyno
setAttachedIdentifiersmutationadminadmin onlyno
listIdentityLinksqueryadminadmin onlyno
confirmIdentityLinkmutationadminadmin onlyno
dismissIdentityLinkmutationadminadmin onlyno
unlinkIdentitymutationadminadmin onlyno
relinkIdentitymutationadminadmin onlyno
ensureRoommutationadminadmin onlyno
listRoomsqueryprotectedviewyes
updateRoommutationadminadmin onlyno
deleteRoommutationadminadmin onlyno
listLocationsqueryprotectedviewno
addLocationmutationadminadmin onlyno
removeLocationmutationadminadmin onlyno
renameLocationmutationadminadmin onlyno
listLocationIconsqueryprotectedviewyes
setLocationIconmutationadminadmin onlyno
listLocationDescriptionsqueryprotectedviewno
setLocationDescriptionmutationadminadmin onlyno
listSiteZonesqueryprotectedviewyes
setSiteZonemutationadminadmin onlyno
removeSiteZonemutationadminadmin onlyno
renameSiteZonemutationadminadmin onlyno
setLocationZonemutationadminadmin onlyno
setDisabledmutationadminadmin onlyno
listPersistedByAddonqueryprotectedviewno
listAllqueryprotectedviewyes
searchqueryprotectedviewyes
getDevicequeryprotectedviewno
getChildrenqueryprotectedviewyes
getChildrenBatchqueryprotectedviewno
getLinkedDevicesqueryprotectedviewyes
getLinkedDevicesBatchqueryprotectedviewyes
getStreamSourcesqueryprotectedviewno
getConfigSchemaqueryprotectedviewno
getSettingsSchemaqueryprotectedviewno
updateConfigmutationadminadmin onlyno
enablemutationadminadmin onlyno
disablemutationadminadmin onlyno
removemutationadminadmin onlyno
listDeletedSincequeryadminadmin onlyno
cleanupDeletedDevicesDatamutationadminadmin onlyno
removeByIntegrationmutationadminadmin onlyno
getStreamProfileMapqueryprotectedviewno
setStreamProfileMapmutationadminadmin onlyno
probeStreamsmutationadminadmin onlyno
getBindingsqueryprotectedviewyes
getBindingsBatchqueryprotectedviewno
getAllBindingsqueryprotectedviewno
listDeviceIdsByCapsqueryprotectedviewyes
setWrapperActivemutationadminadmin onlyno
getWrapperActivationqueryprotectedviewno
listWrappersForCapqueryprotectedviewno
listBindableCapsForDeviceTypequeryprotectedviewno
getDeviceSettingsAggregatequeryprotectedviewno
getDeviceLiveInfoAggregatequeryprotectedviewyes
getDeviceAggregatequeryprotectedviewno
runDeviceActionmutationprotectedcreateno
updateDeviceFieldmutationadminadmin onlyno
updateDeviceFieldsBatchmutationadminadmin onlyno
discoverDevicesmutationadminadmin onlyno
adoptDevicemutationadminadmin onlyno
getCreationSchemaqueryprotectedviewno
createDevicemutationadminadmin onlyno
testCreationFieldmutationadminadmin onlyno
adoptionListCandidateFiltersqueryadminadmin onlyno
adoptionListCandidatesqueryadminadmin onlyno
adoptionRefreshmutationadminadmin onlyno
adoptionAdoptmutationadminadmin onlyno
adoptionReleasemutationadminadmin onlyno
adoptionStartJobmutationadminadmin onlyno
adoptionListJobsqueryadminadmin onlyno
adoptionCancelJobmutationadminadmin onlyno
adoptionGetModequeryadminadmin onlyno
adoptionSetModemutationadminadmin onlyno
adoptionListRecordsqueryadminadmin onlyno
adoptionResyncmutationadminadmin onlyno
discoveryProvidersqueryadminadmin onlyno
discoverAllProvidersmutationadminadmin onlyno
discoverProvidermutationadminadmin onlyno
listDiscoveryProposalsqueryadminadmin onlyno
dismissDiscoveryProposalmutationadminadmin onlyno
reportDiscoveryObservationsmutationadminadmin onlyno
runDiscoverySweepmutationadminadmin onlyno
providerCreationTypequeryadminadmin onlyno
providerDiscoveryParamsSchemaqueryadminadmin onlyno
testFieldmutationadminadmin onlyno
getDeviceStatusAggregatequeryprotectedviewno
getDeviceStatusAggregateBatchqueryprotectedviewyes

deviceManager.allocateDeviceId

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

Input

{ addonId: string; stableId: string }

Output

{ id: number }

deviceManager.migrateDevice

  • Kind: mutation — POST /trpc/deviceManager.migrateDevice
  • 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=deviceManager.migrateDevice on your hub

Input

{ sourceId: number; targetId: number }

Output

MigrateDeviceResultSchema

Shapes: MigrateDeviceResultSchema

deviceManager.repairMigrationSecrets

  • Kind: mutation — POST /trpc/deviceManager.repairMigrationSecrets
  • 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=deviceManager.repairMigrationSecrets on your hub

Input

{ deviceA: number; deviceB: number; apply?: boolean = false }

Output

{ outcome: "repaired" | "would-repair" | "nothing-to-repair"; markersRepointedAtA: number; markersRepointedAtB: number; refsNowAtA: string[]; refsNowAtB: string[] }

deviceManager.registerDevice

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

Input

{ addonId: string; stableId: string; id: number; type: string; name: string; location?: string | null; disabled?: boolean; parentDeviceId: number | null; role?: string | null; features?: string[]; config: Record<string, unknown>; secretConfigPaths?: string[] }

Output

void

deviceManager.removeDevice

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

Input

{ deviceId: number }

Output

void

deviceManager.persistConfig

  • Kind: mutation — POST /trpc/deviceManager.persistConfig
  • 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=deviceManager.persistConfig on your hub

Input

{ deviceId: number; data: Record<string, unknown>; secretConfigPaths?: string[] }

Output

void

deviceManager.loadConfig

  • Kind: query — GET /trpc/deviceManager.loadConfig
  • 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=deviceManager.loadConfig on your hub

Input

{ deviceId: number }

Output

Record<string, unknown>

deviceManager.loadRuntimeState

  • Kind: query — GET /trpc/deviceManager.loadRuntimeState
  • 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=deviceManager.loadRuntimeState on your hub

Input

{ deviceId: number }

Output

Record<string, unknown>

deviceManager.loadMeta

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

Input

{ deviceId: number }

Output

{ id: number; stableId: string; addonId: string; type: string; name: string; userNamed?: boolean; location: string | null; locationId?: string | null; tags?: string[]; tagIds?: string[]; disabled: boolean; parentDeviceId: number | null; metadata?: Record<string, unknown> | null; identifiers?: { mac?: ({ value: string; origin: "read" | "derived"; readAt: number })[]; serial?: { value: string; origin: "read" | "derived"; readAt: number }; machine-uuid?: { value: string; origin: "read" | "derived"; readAt: number }; vendor-uid?: { value: string; origin: "read" | "derived"; readAt: number }; hostname?: { value: string; origin: "read" | "derived"; readAt: number }; ip?: { value: string(ipv4) | string(ipv6); origin: "read" | "derived"; readAt: number } }; attachedIdentifiers?: { mac?: ({ value: string; origin: "read" | "derived"; readAt: number })[]; serial?: { value: string; origin: "read" | "derived"; readAt: number }; machine-uuid?: { value: string; origin: "read" | "derived"; readAt: number }; vendor-uid?: { value: string; origin: "read" | "derived"; readAt: number }; hostname?: { value: string; origin: "read" | "derived"; readAt: number }; ip?: { value: string(ipv4) | string(ipv6); origin: "read" | "derived"; readAt: number } }; 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> }; integrationId?: string; linkDeviceId?: number | null; primaryChildEntityId?: string | null; childLayout?: ({ childKey: string; section: string; order?: number; collapsed?: boolean })[]; primaryChildPreference?: string[]; role?: string | null; display?: { icon?: string; label?: string; unit?: string; precision?: number; hidden?: boolean; perCap?: Record<string, { unit?: string; precision?: number }> } } | null

deviceManager.setName

  • Kind: mutation — POST /trpc/deviceManager.setName
  • 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=deviceManager.setName on your hub

Input

{ deviceId: number; name: string; stampUserNamed?: boolean }

Output

void

deviceManager.setAlias

  • Kind: mutation — POST /trpc/deviceManager.setAlias
  • 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=deviceManager.setAlias on your hub

Input

{ deviceId: number; alias: string }

Output

{ ok: true; alias: string } | { ok: false; reason: "empty" | "too-long" | "grammar" | "reserved" | "taken"; takenBy?: number }

deviceManager.renderDeviceTemplates

  • Kind: query — GET /trpc/deviceManager.renderDeviceTemplates
  • 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=deviceManager.renderDeviceTemplates on your hub

Input

{ templates: string[]; allowedDeviceIds?: number[]; thisDevice?: { deviceId: number; values?: Record<string, string | number | boolean> } }

Output

{ results: ({ ok: true; text: string; trace: ({ ref: string; reason: "unknown-alias" | "unknown-field" | "no-field" | "unavailable" })[] } | { ok: false; refusal: { reason: "too-long" | "syntax" | "forbidden-syntax" | "forbidden-member" | "unknown-filter" | "ambiguous-field" | "busy" | "budget-exceeded" | "timeout" | "output-too-large" | "render-failed" | "out-of-scope" | "unavailable"; message: string }; trace: ({ ref: string; reason: "unknown-alias" | "unknown-field" | "no-field" | "unavailable" })[] })[] }

deviceManager.checkDeviceTemplates

  • Kind: query — GET /trpc/deviceManager.checkDeviceTemplates
  • 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=deviceManager.checkDeviceTemplates on your hub

Input

{ templates: string[]; allowedDeviceIds?: number[]; thisDevice?: { deviceId: number; values?: Record<string, string | number | boolean> } }

Output

{ results: ({ ok: true; aliases: ({ alias: string; deviceId: number | null; allowed: boolean; reads: string[] })[]; readsClock: boolean } | { ok: false; refusal: { reason: "too-long" | "syntax" | "forbidden-syntax" | "forbidden-member" | "unknown-filter" | "ambiguous-field" | "busy" | "budget-exceeded" | "timeout" | "output-too-large" | "render-failed" | "out-of-scope" | "unavailable"; message: string } })[] }

deviceManager.setLocation

  • Kind: mutation — POST /trpc/deviceManager.setLocation
  • 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=deviceManager.setLocation on your hub

Input

{ deviceId: number; location?: string | null; locationId?: string | null }

Output

void

deviceManager.setTags

  • Kind: mutation — POST /trpc/deviceManager.setTags
  • 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=deviceManager.setTags on your hub

Input

{ deviceId: number; tags?: string[]; tagIds?: string[] }

Output

void

deviceManager.setType

  • Kind: mutation — POST /trpc/deviceManager.setType
  • 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=deviceManager.setType on your hub

Input

{ deviceId: number; 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" }

Output

void

deviceManager.setIntegrationId

  • Kind: mutation — POST /trpc/deviceManager.setIntegrationId
  • 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=deviceManager.setIntegrationId on your hub

Input

{ deviceId: number; integrationId: string }

Output

void

deviceManager.setLinkDeviceId

  • Kind: mutation — POST /trpc/deviceManager.setLinkDeviceId
  • 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=deviceManager.setLinkDeviceId on your hub

Input

{ deviceId: number; linkDeviceId: number | null }

Output

void

deviceManager.setPrimaryChildEntityId

  • Kind: mutation — POST /trpc/deviceManager.setPrimaryChildEntityId
  • 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=deviceManager.setPrimaryChildEntityId on your hub

Input

{ deviceId: number; primaryChildEntityId: string | null }

Output

void

deviceManager.setChildLayout

  • Kind: mutation — POST /trpc/deviceManager.setChildLayout
  • 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=deviceManager.setChildLayout on your hub

Input

{ deviceId: number; childLayout: ({ childKey: string; section: string; order?: number; collapsed?: boolean })[] }

Output

void

deviceManager.setPrimaryChildPreference

  • Kind: mutation — POST /trpc/deviceManager.setPrimaryChildPreference
  • 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=deviceManager.setPrimaryChildPreference on your hub

Input

{ deviceId: number; primaryChildPreference: string[] }

Output

void

deviceManager.setDisplay

  • Kind: mutation — POST /trpc/deviceManager.setDisplay
  • 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=deviceManager.setDisplay on your hub

Input

{ deviceId: number; display: { icon?: string; label?: string; unit?: string; precision?: number; hidden?: boolean; perCap?: Record<string, { unit?: string; precision?: number }> } | null }

Output

void

deviceManager.getRoleDisplayDefaults

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

Input

{}

Output

{ defaults: Record<string, { unit?: string; precision?: number; icon?: string }> }

deviceManager.setRoleDisplayDefaults

  • Kind: mutation — POST /trpc/deviceManager.setRoleDisplayDefaults
  • 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=deviceManager.setRoleDisplayDefaults on your hub

Input

{ defaults: Record<string, { unit?: string; precision?: number; icon?: string }> }

Output

void

deviceManager.getWireableFields

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

Input

{ deviceId: number; includeSynthesizable?: boolean }

Output

{ caps: ({ cap: string; fields: ({ path: string; kind: "string" | "number" | "boolean" | "enum" | "union"; unionMembers?: ("string" | "number" | "boolean")[]; enumValues?: string[]; item?: boolean; 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" })[]; itemArray?: { path: string; keyField: string } })[] }

deviceManager.setRole

  • Kind: mutation — POST /trpc/deviceManager.setRole
  • 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=deviceManager.setRole on your hub

Input

{ deviceId: number; role: string | null }

Output

void

deviceManager.applyInitialMeta

  • Kind: mutation — POST /trpc/deviceManager.applyInitialMeta
  • 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=deviceManager.applyInitialMeta on your hub

Input

{ deviceId: number; name?: string; location?: string | null; locationId?: string | null; tags?: string[]; tagIds?: 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"; integrationId?: string; linkDeviceId?: number | null; role?: string | null }

Output

void

deviceManager.setMetadata

  • Kind: mutation — POST /trpc/deviceManager.setMetadata
  • 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=deviceManager.setMetadata on your hub

Input

{ deviceId: number; patch: Record<string, unknown> }

Output

void

deviceManager.setIdentifiers

  • Kind: mutation — POST /trpc/deviceManager.setIdentifiers
  • 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=deviceManager.setIdentifiers on your hub

Input

{ deviceId: number; identifiers: { mac?: ({ value: string; origin: "read" | "derived"; readAt: number })[]; serial?: { value: string; origin: "read" | "derived"; readAt: number }; machine-uuid?: { value: string; origin: "read" | "derived"; readAt: number }; vendor-uid?: { value: string; origin: "read" | "derived"; readAt: number }; hostname?: { value: string; origin: "read" | "derived"; readAt: number }; ip?: { value: string(ipv4) | string(ipv6); origin: "read" | "derived"; readAt: number } } | null; unread?: ("mac" | "serial" | "machine-uuid" | "vendor-uid" | "hostname" | "ip")[] }

Output

void

deviceManager.listIdentityCandidates

  • Kind: query — GET /trpc/deviceManager.listIdentityCandidates
  • 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=deviceManager.listIdentityCandidates on your hub

Input

{}

Output

{ status: "unknown"; reason: string } | { status: "answered"; pairs: ({ a: { deviceId: number; addonId: string; integrationId: string | null }; b: { deviceId: number; addonId: string; integrationId: string | null }; keys: ({ key: "mac" | "serial" | "machine-uuid" | "vendor-uid" | "hostname" | "ip"; value: string })[]; confidence: "auto" | "proposal" })[]; undeclaredDeviceIds: number[] }

deviceManager.setAttachedIdentifiers

  • Kind: mutation — POST /trpc/deviceManager.setAttachedIdentifiers
  • 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=deviceManager.setAttachedIdentifiers on your hub

Input

{ deviceId: number; identifiers: { mac?: ({ value: string; origin: "read" | "derived"; readAt: number })[]; serial?: { value: string; origin: "read" | "derived"; readAt: number }; machine-uuid?: { value: string; origin: "read" | "derived"; readAt: number }; vendor-uid?: { value: string; origin: "read" | "derived"; readAt: number }; hostname?: { value: string; origin: "read" | "derived"; readAt: number }; ip?: { value: string(ipv4) | string(ipv6); origin: "read" | "derived"; readAt: number } } | null; unread?: ("mac" | "serial" | "machine-uuid" | "vendor-uid" | "hostname" | "ip")[] }

Output

void
  • Kind: query — GET /trpc/deviceManager.listIdentityLinks
  • 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=deviceManager.listIdentityLinks on your hub

Input

{ deviceId?: number }

Output

{ status: "not-loaded"; reason: string } | { status: "answered"; links: ({ kind: "same-device" | "poe-power"; a: { addonId: string; stableId: string; deviceId: number }; b: { addonId: string; stableId: string; deviceId: number }; state: "proposed" | "linked" | "dismissed"; origin: "auto" | "operator"; evidence: ({ key: "mac" | "serial" | "machine-uuid" | "vendor-uid" | "hostname" | "ip"; value: string })[]; evidenceGone?: true; createdAt: number; decidedAt?: number; id: string })[] }
  • Kind: mutation — POST /trpc/deviceManager.confirmIdentityLink
  • 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=deviceManager.confirmIdentityLink on your hub

Input

{ linkId: string }

Output

{ ok: true; link: { kind: "same-device" | "poe-power"; a: { addonId: string; stableId: string; deviceId: number }; b: { addonId: string; stableId: string; deviceId: number }; state: "proposed" | "linked" | "dismissed"; origin: "auto" | "operator"; evidence: ({ key: "mac" | "serial" | "machine-uuid" | "vendor-uid" | "hostname" | "ip"; value: string })[]; evidenceGone?: true; createdAt: number; decidedAt?: number; id: string } } | { ok: false; reason: "not-loaded" | "unknown-link" | "wrong-state" | "evidence-gone"; message: string }
  • Kind: mutation — POST /trpc/deviceManager.dismissIdentityLink
  • 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=deviceManager.dismissIdentityLink on your hub

Input

{ linkId: string }

Output

{ ok: true; link: { kind: "same-device" | "poe-power"; a: { addonId: string; stableId: string; deviceId: number }; b: { addonId: string; stableId: string; deviceId: number }; state: "proposed" | "linked" | "dismissed"; origin: "auto" | "operator"; evidence: ({ key: "mac" | "serial" | "machine-uuid" | "vendor-uid" | "hostname" | "ip"; value: string })[]; evidenceGone?: true; createdAt: number; decidedAt?: number; id: string } } | { ok: false; reason: "not-loaded" | "unknown-link" | "wrong-state" | "evidence-gone"; message: string }

deviceManager.unlinkIdentity

  • Kind: mutation — POST /trpc/deviceManager.unlinkIdentity
  • 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=deviceManager.unlinkIdentity on your hub

Input

{ linkId: string }

Output

{ ok: true; link: { kind: "same-device" | "poe-power"; a: { addonId: string; stableId: string; deviceId: number }; b: { addonId: string; stableId: string; deviceId: number }; state: "proposed" | "linked" | "dismissed"; origin: "auto" | "operator"; evidence: ({ key: "mac" | "serial" | "machine-uuid" | "vendor-uid" | "hostname" | "ip"; value: string })[]; evidenceGone?: true; createdAt: number; decidedAt?: number; id: string } } | { ok: false; reason: "not-loaded" | "unknown-link" | "wrong-state" | "evidence-gone"; message: string }

deviceManager.relinkIdentity

  • Kind: mutation — POST /trpc/deviceManager.relinkIdentity
  • 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=deviceManager.relinkIdentity on your hub

Input

{ linkId: string }

Output

{ ok: true; link: { kind: "same-device" | "poe-power"; a: { addonId: string; stableId: string; deviceId: number }; b: { addonId: string; stableId: string; deviceId: number }; state: "proposed" | "linked" | "dismissed"; origin: "auto" | "operator"; evidence: ({ key: "mac" | "serial" | "machine-uuid" | "vendor-uid" | "hostname" | "ip"; value: string })[]; evidenceGone?: true; createdAt: number; decidedAt?: number; id: string } } | { ok: false; reason: "not-loaded" | "unknown-link" | "wrong-state" | "evidence-gone"; message: string }

deviceManager.ensureRoom

  • Kind: mutation — POST /trpc/deviceManager.ensureRoom
  • 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=deviceManager.ensureRoom on your hub

Input

{ name: string }

Output

{ name: string; icon?: <custom>; description?: string; zoneId?: string; colour?: "tag-a" | "tag-b" | "tag-c" | "tag-d" | "tag-e" | "tag-f" | "tag-g" | "tag-h"; order?: number; id: string }

deviceManager.listRooms

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

Input

void

Output

({ name: string; icon?: <custom>; description?: string; zoneId?: string; colour?: "tag-a" | "tag-b" | "tag-c" | "tag-d" | "tag-e" | "tag-f" | "tag-g" | "tag-h"; order?: number; id: string })[]

deviceManager.updateRoom

  • Kind: mutation — POST /trpc/deviceManager.updateRoom
  • 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=deviceManager.updateRoom on your hub

Input

{ id: string; patch: { name?: string; icon?: <custom> | null; description?: string | null; zoneId?: string | null; colour?: "tag-a" | "tag-b" | "tag-c" | "tag-d" | "tag-e" | "tag-f" | "tag-g" | "tag-h" | null; order?: number | null } }

Output

{ name: string; icon?: <custom>; description?: string; zoneId?: string; colour?: "tag-a" | "tag-b" | "tag-c" | "tag-d" | "tag-e" | "tag-f" | "tag-g" | "tag-h"; order?: number; id: string }

deviceManager.deleteRoom

  • Kind: mutation — POST /trpc/deviceManager.deleteRoom
  • 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=deviceManager.deleteRoom on your hub

Input

{ id: string }

Output

{ cleared: number }

deviceManager.listLocations

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

Input

void

Output

string[]

deviceManager.addLocation

  • Kind: mutation — POST /trpc/deviceManager.addLocation
  • 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=deviceManager.addLocation on your hub

Input

{ name: string }

Output

void

deviceManager.removeLocation

  • Kind: mutation — POST /trpc/deviceManager.removeLocation
  • 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=deviceManager.removeLocation on your hub

Input

{ name: string; cascade?: boolean }

Output

void

deviceManager.renameLocation

  • Kind: mutation — POST /trpc/deviceManager.renameLocation
  • 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=deviceManager.renameLocation on your hub

Input

{ from: string; to: string }

Output

{ moved: number }

deviceManager.listLocationIcons

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

Input

void

Output

({ locationKey: string; icon: <custom> })[]

deviceManager.setLocationIcon

  • Kind: mutation — POST /trpc/deviceManager.setLocationIcon
  • 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=deviceManager.setLocationIcon on your hub

Input

{ location: string; icon: <custom> | null }

Output

void

deviceManager.listLocationDescriptions

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

Input

void

Output

({ locationKey: string; description: string })[]

deviceManager.setLocationDescription

  • Kind: mutation — POST /trpc/deviceManager.setLocationDescription
  • 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=deviceManager.setLocationDescription on your hub

Input

{ location: string; description: string | null }

Output

void

deviceManager.listSiteZones

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

Input

void

Output

({ zoneKey: string; label: string; icon: <custom> | null; locationKeys: string[] })[]

deviceManager.setSiteZone

  • Kind: mutation — POST /trpc/deviceManager.setSiteZone
  • 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=deviceManager.setSiteZone on your hub

Input

{ name: string; icon?: <custom> | null }

Output

void

deviceManager.removeSiteZone

  • Kind: mutation — POST /trpc/deviceManager.removeSiteZone
  • 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=deviceManager.removeSiteZone on your hub

Input

{ name: string }

Output

void

deviceManager.renameSiteZone

  • Kind: mutation — POST /trpc/deviceManager.renameSiteZone
  • 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=deviceManager.renameSiteZone on your hub

Input

{ from: string; to: string }

Output

void

deviceManager.setLocationZone

  • Kind: mutation — POST /trpc/deviceManager.setLocationZone
  • 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=deviceManager.setLocationZone on your hub

Input

{ location: string; zone: string | null }

Output

void

deviceManager.setDisabled

  • Kind: mutation — POST /trpc/deviceManager.setDisabled
  • 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=deviceManager.setDisabled on your hub

Input

{ deviceId: number; disabled: boolean }

Output

void

deviceManager.listPersistedByAddon

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

Input

{ addonId: string }

Output

({ id: number; stableId: string; type: string; name: string; location: string | null; locationId?: string | null; tags?: string[]; tagIds?: string[]; disabled: boolean; parentDeviceId: number | null; role?: string | null })[]

deviceManager.listAll

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

Input

{ addonId?: string; projection?: "full" | "slim"; isCamera?: boolean; deviceIds?: number[] }

Output

DeviceInfoSchema[]

Shapes: DeviceInfoSchema

deviceManager.search

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

Input

DeviceSearchInputSchema

Output

DeviceSearchResultSchema

Shapes: DeviceSearchInputSchema · DeviceSearchResultSchema

deviceManager.getDevice

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

Input

{ deviceId: number }

Output

DeviceInfoSchema | null

Shapes: DeviceInfoSchema

deviceManager.getChildren

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

Input

{ parentDeviceId: number }

Output

DeviceInfoSchema[]

Shapes: DeviceInfoSchema

deviceManager.getChildrenBatch

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

Input

{ parentDeviceIds: number[] }

Output

Record<string, DeviceInfoSchema[]>

Shapes: DeviceInfoSchema

deviceManager.getLinkedDevices

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

Input

{ deviceId: number }

Output

{ mode: LinkedDevicesModeSchema; devices: LinkedDeviceSchema[] }

Shapes: LinkedDevicesModeSchema · LinkedDeviceSchema

deviceManager.getLinkedDevicesBatch

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

Input

{ deviceIds: number[] }

Output

({ deviceId: number; mode: LinkedDevicesModeSchema; devices: LinkedDeviceSchema[] })[]

Shapes: LinkedDevicesModeSchema · LinkedDeviceSchema

deviceManager.getStreamSources

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

Input

{ deviceId: number }

Output

StreamSourceEntrySchema[]

Shapes: StreamSourceEntrySchema

deviceManager.getConfigSchema

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

Input

{ deviceId: number }

Output

ConfigEntrySchema[]

Shapes: ConfigEntrySchema

deviceManager.getSettingsSchema

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

Input

{ deviceId: number }

Output

unknown | null

deviceManager.updateConfig

  • Kind: mutation — POST /trpc/deviceManager.updateConfig
  • 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=deviceManager.updateConfig on your hub

Input

{ deviceId: number; values: Record<string, unknown> }

Output

{ success: true }

deviceManager.enable

  • Kind: mutation — POST /trpc/deviceManager.enable
  • 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=deviceManager.enable on your hub

Input

{ deviceId: number }

Output

{ success: true }

deviceManager.disable

  • Kind: mutation — POST /trpc/deviceManager.disable
  • 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=deviceManager.disable on your hub

Input

{ deviceId: number }

Output

{ success: true }

deviceManager.remove

  • Kind: mutation — POST /trpc/deviceManager.remove
  • 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=deviceManager.remove on your hub

Input

{ deviceId: number }

Output

{ success: true }

deviceManager.listDeletedSince

  • Kind: query — GET /trpc/deviceManager.listDeletedSince
  • 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=deviceManager.listDeletedSince on your hub

Input

{ sinceMs: number }

Output

DeviceTombstoneSchema[]

Shapes: DeviceTombstoneSchema

deviceManager.cleanupDeletedDevicesData

  • Kind: mutation — POST /trpc/deviceManager.cleanupDeletedDevicesData
  • 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=deviceManager.cleanupDeletedDevicesData on your hub

Input

{ confirm: boolean }

Output

CleanupDeletedDevicesResultSchema

Shapes: CleanupDeletedDevicesResultSchema

deviceManager.removeByIntegration

  • Kind: mutation — POST /trpc/deviceManager.removeByIntegration
  • 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=deviceManager.removeByIntegration on your hub

Input

{ integrationId: string }

Output

{ removed: number }

deviceManager.getStreamProfileMap

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

Input

{ deviceId: number }

Output

Record<string, string | null>

deviceManager.setStreamProfileMap

  • Kind: mutation — POST /trpc/deviceManager.setStreamProfileMap
  • 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=deviceManager.setStreamProfileMap on your hub

Input

{ deviceId: number; profileMap: Record<string, string | null> }

Output

{ success: true }

deviceManager.probeStreams

  • Kind: mutation — POST /trpc/deviceManager.probeStreams
  • 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=deviceManager.probeStreams on your hub

Input

{ deviceId: number }

Output

({ streamId: string; width?: number; height?: number; codec?: string; fps?: number; bitrateKbps?: number })[]

deviceManager.getBindings

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

Input

{ deviceId: number }

Output

{ deviceId: number; entries: ({ capName: string; kind: "native" | "wrapped"; providerAddonId: string; providerNodeId: string; nativeAddonId: string; implementedMethods?: string[] })[] }

deviceManager.getBindingsBatch

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

Input

{ deviceIds: number[] }

Output

({ deviceId: number; entries: ({ capName: string; kind: "native" | "wrapped"; providerAddonId: string; providerNodeId: string; nativeAddonId: string; implementedMethods?: string[] })[] })[]

deviceManager.getAllBindings

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

Input

{}

Output

({ deviceId: number; entries: ({ capName: string; kind: "native" | "wrapped"; providerAddonId: string; providerNodeId: string; nativeAddonId: string; implementedMethods?: string[] })[] })[]

deviceManager.listDeviceIdsByCaps

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

Input

{ capNames: string[] }

Output

number[]

deviceManager.setWrapperActive

  • Kind: mutation — POST /trpc/deviceManager.setWrapperActive
  • 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=deviceManager.setWrapperActive on your hub

Input

{ deviceId: number; capName: string; wrapperAddonId: string; active: boolean }

Output

void

deviceManager.getWrapperActivation

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

Input

{ deviceId: number; capName: string }

Output

WrapperActivationReadSchema

Shapes: WrapperActivationReadSchema

deviceManager.listWrappersForCap

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

Input

{ capName: string }

Output

string[]

deviceManager.listBindableCapsForDeviceType

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

Input

{ deviceType: string }

Output

({ capName: string; wrappers: string[] })[]

deviceManager.getDeviceSettingsAggregate

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

Input

{ deviceId: number }

Output

SettingsSchemaWithValuesSchema | null

Shapes: SettingsSchemaWithValuesSchema

deviceManager.getDeviceLiveInfoAggregate

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

Input

{ deviceId: number }

Output

SettingsSchemaWithValuesSchema | null

Shapes: SettingsSchemaWithValuesSchema

deviceManager.getDeviceAggregate

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

Input

{ deviceId: number }

Output

{ settings: SettingsSchemaWithValuesSchema | null; live: SettingsSchemaWithValuesSchema | null }

Shapes: SettingsSchemaWithValuesSchema

deviceManager.runDeviceAction

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

Input

{ deviceId: number; action: string; input: unknown }

Output

unknown

deviceManager.updateDeviceField

  • Kind: mutation — POST /trpc/deviceManager.updateDeviceField
  • 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=deviceManager.updateDeviceField on your hub

Input

{ deviceId: number; writerCapName: string; writerAddonId: string; key: string; value: unknown }

Output

{ success: true }

deviceManager.updateDeviceFieldsBatch

  • Kind: mutation — POST /trpc/deviceManager.updateDeviceFieldsBatch
  • 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=deviceManager.updateDeviceFieldsBatch on your hub

Input

{ deviceId: number; changes: ({ writerCapName: string; writerAddonId: string; key: string; value: unknown })[] }

Output

{ success: true; failures: ({ writerCapName: string; writerAddonId: string; error: string })[] }

deviceManager.discoverDevices

  • Kind: mutation — POST /trpc/deviceManager.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=deviceManager.discoverDevices on your hub

Input

{ addonId: string }

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[] })[]

deviceManager.adoptDevice

  • Kind: mutation — POST /trpc/deviceManager.adoptDevice
  • 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=deviceManager.adoptDevice on your hub

Input

{ addonId: string; 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> } }

deviceManager.getCreationSchema

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

Input

{ addonId: 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"; integrationId?: string }

Output

unknown | null

deviceManager.createDevice

  • Kind: mutation — POST /trpc/deviceManager.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=deviceManager.createDevice on your hub

Input

{ addonId: 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"; 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> } }

deviceManager.testCreationField

  • Kind: mutation — POST /trpc/deviceManager.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=deviceManager.testCreationField on your hub

Input

{ addonId: 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"; key: string; value: unknown; formValues?: Record<string, unknown> }

Output

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

deviceManager.adoptionListCandidateFilters

  • Kind: query — GET /trpc/deviceManager.adoptionListCandidateFilters
  • 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=deviceManager.adoptionListCandidateFilters on your hub

Input

{ addonId: string; integrationId: string }

Output

{ filters: AdoptionFilterSchema[] }

Shapes: AdoptionFilterSchema

deviceManager.adoptionListCandidates

  • Kind: query — GET /trpc/deviceManager.adoptionListCandidates
  • 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=deviceManager.adoptionListCandidates on your hub

Input

{ integrationId: string; page?: number = 1; pageSize?: number = 50; filter?: string; filterText?: CandidateQueryFilterSchema; addonId: string }

Output

AdoptionListCandidatesOutputSchema

Shapes: CandidateQueryFilterSchema · AdoptionListCandidatesOutputSchema

deviceManager.adoptionRefresh

  • Kind: mutation — POST /trpc/deviceManager.adoptionRefresh
  • 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=deviceManager.adoptionRefresh on your hub

Input

{ addonId: string; integrationId: string }

Output

AdoptionStatusSchema

Shapes: AdoptionStatusSchema

deviceManager.adoptionAdopt

  • Kind: mutation — POST /trpc/deviceManager.adoptionAdopt
  • 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=deviceManager.adoptionAdopt on your hub

Input

{ integrationId: string; childNativeIds: string[]; filter?: string; importLocations?: boolean; perCandidate?: Record<string, { name?: string; hiddenChildIds?: string[] }>; addonId: string }

Output

AdoptionAdoptResultSchema

Shapes: AdoptionAdoptResultSchema

deviceManager.adoptionRelease

  • Kind: mutation — POST /trpc/deviceManager.adoptionRelease
  • 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=deviceManager.adoptionRelease on your hub

Input

{ integrationId: string; camDeviceId: number; addonId: string }

Output

void

deviceManager.adoptionStartJob

  • Kind: mutation — POST /trpc/deviceManager.adoptionStartJob
  • 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=deviceManager.adoptionStartJob on your hub

Input

{ integrationId: string; childNativeIds: string[]; filter?: string; importLocations?: boolean; perCandidate?: Record<string, { name?: string; hiddenChildIds?: string[] }>; addonId: string }

Output

{ jobId: string }

deviceManager.adoptionListJobs

  • Kind: query — GET /trpc/deviceManager.adoptionListJobs
  • 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=deviceManager.adoptionListJobs on your hub

Input

{ addonId: string; integrationId?: string }

Output

({ jobId: string; addonId: string; integrationId: string; state: "running" | "done" | "failed" | "cancelled"; total: number; processed: number; adopted: number; alreadyAdopted: number; failed: number; accessoriesCreated: number; currentChildNativeId: string | null; results: ({ childNativeId: string; outcome: "adopted" | "already-adopted" | "failed" | "cancelled"; parentDeviceId: number | null; accessoryCount: number; error: string | null })[]; startedAt: number; finishedAt: number | null; error: string | null })[]

deviceManager.adoptionCancelJob

  • Kind: mutation — POST /trpc/deviceManager.adoptionCancelJob
  • 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=deviceManager.adoptionCancelJob on your hub

Input

{ jobId: string }

Output

{ cancelled: boolean }

deviceManager.adoptionGetMode

  • Kind: query — GET /trpc/deviceManager.adoptionGetMode
  • 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=deviceManager.adoptionGetMode on your hub

Input

{ addonId: string; integrationId: string }

Output

{ adoptMode: AdoptModeSchema; stored: boolean }

Shapes: AdoptModeSchema

deviceManager.adoptionSetMode

  • Kind: mutation — POST /trpc/deviceManager.adoptionSetMode
  • 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=deviceManager.adoptionSetMode on your hub

Input

{ addonId: string; integrationId: string; adoptMode: AdoptModeSchema }

Output

void

Shapes: AdoptModeSchema

deviceManager.adoptionListRecords

  • Kind: query — GET /trpc/deviceManager.adoptionListRecords
  • 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=deviceManager.adoptionListRecords on your hub

Input

{ addonId: string; integrationId?: string }

Output

AdoptionRecordSchema[]

Shapes: AdoptionRecordSchema

deviceManager.adoptionResync

  • Kind: mutation — POST /trpc/deviceManager.adoptionResync
  • 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=deviceManager.adoptionResync on your hub

Input

{ camDeviceId: number; resetToSource?: boolean }

Output

{ changed: boolean; rebuiltChildren: number; removedChildren?: number }

deviceManager.discoveryProviders

  • Kind: query — GET /trpc/deviceManager.discoveryProviders
  • 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=deviceManager.discoveryProviders on your hub

Input

{}

Output

{ providers: ({ addonId: string; label: string })[] }

deviceManager.discoverAllProviders

  • Kind: mutation — POST /trpc/deviceManager.discoverAllProviders
  • 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=deviceManager.discoverAllProviders on your hub

Input

{ subnets?: string[] }

Output

{ groups: ({ addonId: string; label: string; candidates: ({ 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[] })[]; error: string | null })[] }

deviceManager.discoverProvider

  • Kind: mutation — POST /trpc/deviceManager.discoverProvider
  • 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=deviceManager.discoverProvider on your hub

Input

{ addonId: string; params?: Record<string, unknown>; subnets?: string[] }

Output

{ candidates: ({ 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[] })[] }

deviceManager.listDiscoveryProposals

  • Kind: query — GET /trpc/deviceManager.listDiscoveryProposals
  • 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=deviceManager.listDiscoveryProposals on your hub

Input

{}

Output

{ proposals: DiscoveryProposalSchema[] }

Shapes: DiscoveryProposalSchema

deviceManager.dismissDiscoveryProposal

  • Kind: mutation — POST /trpc/deviceManager.dismissDiscoveryProposal
  • 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=deviceManager.dismissDiscoveryProposal on your hub

Input

{ id: string }

Output

{ dismissed: boolean }

deviceManager.reportDiscoveryObservations

  • Kind: mutation — POST /trpc/deviceManager.reportDiscoveryObservations
  • 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=deviceManager.reportDiscoveryObservations on your hub

Input

{ observations: DiscoveryObservationSchema[] }

Output

{ proposed: number }

Shapes: DiscoveryObservationSchema

deviceManager.runDiscoverySweep

  • Kind: mutation — POST /trpc/deviceManager.runDiscoverySweep
  • 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=deviceManager.runDiscoverySweep on your hub

Input

{}

Output

{ providers: number; proposed: number }

deviceManager.providerCreationType

  • Kind: query — GET /trpc/deviceManager.providerCreationType
  • 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=deviceManager.providerCreationType on your hub

Input

{ addonId: string; 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 }

deviceManager.providerDiscoveryParamsSchema

  • Kind: query — GET /trpc/deviceManager.providerDiscoveryParamsSchema
  • 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=deviceManager.providerDiscoveryParamsSchema on your hub

Input

{ addonId: string }

Output

unknown

deviceManager.testField

  • Kind: mutation — POST /trpc/deviceManager.testField
  • 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=deviceManager.testField on your hub

Input

{ deviceId: number; key: string; value: unknown }

Output

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

deviceManager.getDeviceStatusAggregate

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

Input

{ deviceId: number; caps?: string[] }

Output

Record<string, unknown | null>

deviceManager.getDeviceStatusAggregateBatch

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

Input

{ deviceIds: number[]; caps?: string[] }

Output

Record<string, Record<string, unknown | null>>

On this page

deviceManager.allocateDeviceIddeviceManager.migrateDevicedeviceManager.repairMigrationSecretsdeviceManager.registerDevicedeviceManager.removeDevicedeviceManager.persistConfigdeviceManager.loadConfigdeviceManager.loadRuntimeStatedeviceManager.loadMetadeviceManager.setNamedeviceManager.setAliasdeviceManager.renderDeviceTemplatesdeviceManager.checkDeviceTemplatesdeviceManager.setLocationdeviceManager.setTagsdeviceManager.setTypedeviceManager.setIntegrationIddeviceManager.setLinkDeviceIddeviceManager.setPrimaryChildEntityIddeviceManager.setChildLayoutdeviceManager.setPrimaryChildPreferencedeviceManager.setDisplaydeviceManager.getRoleDisplayDefaultsdeviceManager.setRoleDisplayDefaultsdeviceManager.getWireableFieldsdeviceManager.setRoledeviceManager.applyInitialMetadeviceManager.setMetadatadeviceManager.setIdentifiersdeviceManager.listIdentityCandidatesdeviceManager.setAttachedIdentifiersdeviceManager.listIdentityLinksdeviceManager.confirmIdentityLinkdeviceManager.dismissIdentityLinkdeviceManager.unlinkIdentitydeviceManager.relinkIdentitydeviceManager.ensureRoomdeviceManager.listRoomsdeviceManager.updateRoomdeviceManager.deleteRoomdeviceManager.listLocationsdeviceManager.addLocationdeviceManager.removeLocationdeviceManager.renameLocationdeviceManager.listLocationIconsdeviceManager.setLocationIcondeviceManager.listLocationDescriptionsdeviceManager.setLocationDescriptiondeviceManager.listSiteZonesdeviceManager.setSiteZonedeviceManager.removeSiteZonedeviceManager.renameSiteZonedeviceManager.setLocationZonedeviceManager.setDisableddeviceManager.listPersistedByAddondeviceManager.listAlldeviceManager.searchdeviceManager.getDevicedeviceManager.getChildrendeviceManager.getChildrenBatchdeviceManager.getLinkedDevicesdeviceManager.getLinkedDevicesBatchdeviceManager.getStreamSourcesdeviceManager.getConfigSchemadeviceManager.getSettingsSchemadeviceManager.updateConfigdeviceManager.enabledeviceManager.disabledeviceManager.removedeviceManager.listDeletedSincedeviceManager.cleanupDeletedDevicesDatadeviceManager.removeByIntegrationdeviceManager.getStreamProfileMapdeviceManager.setStreamProfileMapdeviceManager.probeStreamsdeviceManager.getBindingsdeviceManager.getBindingsBatchdeviceManager.getAllBindingsdeviceManager.listDeviceIdsByCapsdeviceManager.setWrapperActivedeviceManager.getWrapperActivationdeviceManager.listWrappersForCapdeviceManager.listBindableCapsForDeviceTypedeviceManager.getDeviceSettingsAggregatedeviceManager.getDeviceLiveInfoAggregatedeviceManager.getDeviceAggregatedeviceManager.runDeviceActiondeviceManager.updateDeviceFielddeviceManager.updateDeviceFieldsBatchdeviceManager.discoverDevicesdeviceManager.adoptDevicedeviceManager.getCreationSchemadeviceManager.createDevicedeviceManager.testCreationFielddeviceManager.adoptionListCandidateFiltersdeviceManager.adoptionListCandidatesdeviceManager.adoptionRefreshdeviceManager.adoptionAdoptdeviceManager.adoptionReleasedeviceManager.adoptionStartJobdeviceManager.adoptionListJobsdeviceManager.adoptionCancelJobdeviceManager.adoptionGetModedeviceManager.adoptionSetModedeviceManager.adoptionListRecordsdeviceManager.adoptionResyncdeviceManager.discoveryProvidersdeviceManager.discoverAllProvidersdeviceManager.discoverProviderdeviceManager.listDiscoveryProposalsdeviceManager.dismissDiscoveryProposaldeviceManager.reportDiscoveryObservationsdeviceManager.runDiscoverySweepdeviceManager.providerCreationTypedeviceManager.providerDiscoveryParamsSchemadeviceManager.testFielddeviceManager.getDeviceStatusAggregatedeviceManager.getDeviceStatusAggregateBatch