Coder Social home page Coder Social logo

joeshaw / kasa-homekit Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 9 KB

HomeKit support for TP-Link Kasa smart home devices using HomeControl

License: MIT License

Dockerfile 6.62% Go 93.38%
homekit homekit-accessory tp-link kasa homecontrol golang tp-link-hs100 kasa-devices

kasa-homekit's Introduction

kasa-homekit

Apple HomeKit support for TP-Link Kasa smart home devices using hc.

Devices are detected and communicated with via the local network APIs. This module does not use the cloud APIs and does not require you to log into the Kasa cloud service.

Currently this service only supports Kasa HS1xx Smart Plugs.

Once the device is paired with your iOS Home app, you can control it with any service that integrates with HomeKit, including Siri ("Turn off the Christmas tree") and Apple Watch. If you have a home hub like an Apple TV or iPad, you can control the device remotely.

Installing

The tool can be installed with:

go get -u github.com/joeshaw/kasa-homekit

Then you can run the service:

kasa-homekit

The service will search for Kasa devices on your local network at startup, and every 5 seconds afterward.

To pair, open up your Home iOS app, click the + icon, choose "Add Accessory" and then tap "Don't have a Code or Can't Scan?" You should see the Leaf under "Nearby Accessories." Tap that and enter the PIN 00102003. You should see one entry appear for each Kasa device on your network.

Contributing

This code is fairly hacky, with some hardcoded values like timeouts. It also has limited device support.

Issues and pull requests are welcome. When filing a PR, please make sure the code has been run through gofmt.

License

Copyright 2020 Joe Shaw

kasa-homekit is licensed under the MIT License. See the LICENSE file for details.

kasa-homekit's People

Contributors

joeshaw avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kasa-homekit's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.