Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

HS103 Support #35

@PrabhanshuAttri

Description

@PrabhanshuAttri

Hi @adumont

First of all, thank you for creating this library. I noticed that it doesn't contain support for HS103. I looked through the code and found a way to do it. HS100 class can be used to toggle the device.

Here is the code for HS103 to toggle the device.

const deviceFound = await tplink.findDevice(deviceName);
const hs103Device = new HS100(tplink, deviceFound);
await hs103Device.toggle();

I think if all devices in tplink.ts are exported (hs100, hs110, hs200, etc), the package can support more devices.

Let me know if you want me to work on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions