Class DeviceWithPower<StatusBody, CommandBody>

Type Parameters

Hierarchy (View Summary)

Constructors

  • Type Parameters

    • StatusBody extends BaseDeviceWithPowerStatusBody<
          | "Blind Tilt"
          | "Bot"
          | "Curtain"
          | "Curtain 3"
          | "Hub"
          | "Hub 2"
          | "Hub Plus"
          | "Hub Mini"
          | "Meter"
          | "MeterPlus"
          | "WoIOSensor"
          | "Smart Lock"
          | "Keypad"
          | "Keypad Touch"
          | "Remote"
          | "Motion Sensor"
          | "Contact Sensor"
          | "Ceiling Light"
          | "Ceiling Light Pro"
          | "Plug Mini (US)"
          | "Plug Mini (JP)"
          | "Plug"
          | "Strip Light"
          | "Color Bulb"
          | "Robot Vacuum Cleaner S1"
          | "Robot Vacuum Cleaner S1 Plus"
          | "Humidifier"
          | "Indoor Cam"
          | "Pan/Tilt Cam",
      >
    • CommandBody

    Parameters

    • deviceId: string
    • deps: Deps

    Returns DeviceWithPower<StatusBody, CommandBody>

Properties

_deps: Deps
_deviceId: string

Methods