Class PlatformAccessory<T>

Type Parameters

Hierarchy

  • EventEmitter
    • PlatformAccessory

Constructors

Properties

_associatedHAPAccessory: Accessory
_associatedPlatform?: string
_associatedPlugin?: string
category: Categories
context: T = ...

This is a way for Plugin developers to store custom data with their accessory

displayName: string
reachable: boolean = false

reachability has no effect and isn't supported anymore

services: Service[] = []
UUID: string

Methods

  • Parameters

    • service: Service

    Returns Service

  • Type Parameters

    • S extends typeof Service

    Parameters

    • serviceConstructor: S
    • Rest...constructorArgs: ConstructorArgs<S>

    Returns Service

  • Type Parameters

    • T extends WithUUID<typeof Service>

    Parameters

    • name: string | T

    Returns undefined | Service

  • Type Parameters

    • T extends WithUUID<typeof Service>

    Parameters

    • uuid: string | T
    • subType: string

    Returns undefined | Service

  • Type Parameters

    • T extends WithUUID<typeof Service>

    Parameters

    • uuid: string | T
    • subType: string

    Returns undefined | Service

    use getServiceById directly

  • Parameters

    • event: "identify"
    • listener: (() => void)
        • (): void
        • Returns void

    Returns this

  • Parameters

    • reachable: boolean

    Returns void

    reachability has no effect and isn't supported anymore