Giter Club home page Giter Club logo

homebridge-xiaomi-tv-power's Introduction

HomeBridge 小米电视关机插件

用于将小米电视关机接入到Homekit,方便用siri关机。 没有开机功能,适合使用电视盒子的用户,利用 CEC 开机就可以了。 原理是利用小米电视的 HTTP 接口,可本地先测试接口是否可以使用

关机接口:http://IP:6095/controller?action=keyevent&keycode=power

查询状态 http://IP:6095/request?action=isalive

如何使用

  • npm install https://github.com/without-yy/homebridge-xiaomi-tv-power.git
  • 修改配置文件,accessories 添加一项
{
    "accessory": "XiaomiTvPower",
    "name": "电视机",
    "ip": "xxx.xxx.xxx.xxx"
}
  • 重启 HomeBridge

缺陷

  • 状态接口请求超时,默认为已关机,务必检查ip是否可以连通
  • 点击开启后,会自动设置为关闭状态,因为不支持开机功能
  • 有可能可以利用开关的自动化唤醒 Apple TV 达到开机的效果()

homebridge-xiaomi-tv-power's People

Contributors

without-yy avatar

Watchers

 avatar

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.