Platform Accessory

An instance of this class is created for each Roomba.

Constructors

Methods

  • 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.

    Note: These get requests are verry performance sensitive. Make sure to optimize them as much as possible.

    Returns Promise<CharacteristicValue>

  • Returns Promise<CharacteristicValue>

  • Parameters

    • cleanMissionStatus: {
          [x: string]: string | boolean;
      }
      • [x: string]: string | boolean

    Returns boolean

  • Parameters

    • cleanMissionStatus: {
          [x: string]: string | boolean;
      }
      • [x: string]: string | boolean

    Returns boolean

  • Handle "SET" requests from HomeKit

    Parameters

    • value: CharacteristicValue

    Returns Promise<void>

  • Parameters

    • value: CharacteristicValue

    Returns Promise<void>

  • Parameters

    • lastCommand: {
          pmap_id: never;
          regions: [{
              parameters: object;
              region_id?: string;
              type?: string;
          }];
          user_pmapv_id: never;
      }
      • pmap_id: never
      • regions: [{
            parameters: object;
            region_id?: string;
            type?: string;
        }]
      • user_pmapv_id: never

    Returns void