Options
All
  • Public
  • Public/Protected
  • All
Menu

Platform Accessory An instance of this class is created for each accessory your platform registers Each accessory may expose multiple services of different service types.

Hierarchy

  • iRobotPlatformAccessory

Index

Constructors

Properties

active: boolean = false
battery: Service
batteryStatus: { charging: boolean; low: boolean; percent: number } = ...

Type declaration

  • charging: boolean
  • low: boolean
  • percent: number
binConfig: string[] = ...
binContact: Service
binFilter: Service
binMotion: Service
binfull: number = 0
lastCommandStatus: { pmap_id: null } = ...

Type declaration

  • pmap_id: null
lastStatus: { cycle: string; phase: string } = ...

Type declaration

  • cycle: string
  • phase: string
roomByRoom: boolean = false
roomba: Local
service: Service
shutdown: boolean = false
state: number = 0
stuck: Service
stuckStatus: boolean = false

Methods

  • configureRoomba(): Promise<void>
  • get(): Promise<CharacteristicValue>
  • Handle the "GET" requests from HomeKit These are sent when HomeKit wants to know the current state of the accessory, for example, checking if a Light bulb is on.

    GET requests should return as fast as possbile. A long delay here will result in HomeKit being unresponsive and a bad user experience in general.

    If your device takes time to respond you should update the status of your device asynchronously instead using the updateCharacteristic method instead.

    example

    this.service.updateCharacteristic(this.platform.Characteristic.On, true)

    Returns Promise<CharacteristicValue>

  • getBatteryLevel(): Promise<CharacteristicValue>
  • getBatteryStatus(): Promise<CharacteristicValue>
  • getBinfull(): Promise<CharacteristicValue>
  • getBinfullBoolean(): Promise<CharacteristicValue>
  • getChargeState(): Promise<CharacteristicValue>
  • getEveInactive(cleanMissionStatus: any): boolean
  • getHomekitActive(cleanMissionStatus: any): boolean
  • getMode(): Promise<CharacteristicValue>
  • getState(): Promise<CharacteristicValue>
  • getStuck(): Promise<CharacteristicValue>
  • identify(): Promise<void>
  • set(value: CharacteristicValue): Promise<void>
  • Handle "SET" requests from HomeKit These are sent when the user changes the state of an accessory, for example, changing the Brightness

    Parameters

    • value: CharacteristicValue

    Returns Promise<void>

  • setMode(value: CharacteristicValue): Promise<void>
  • updateMap(lastCommand: any): void
  • updateRoombaState(data: any): void
  • updateRooms(): void

Generated using TypeDoc