GithubHelp home page GithubHelp logo

sssuhb / xiaomi_tv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shaonianzhentan/xiaomi_tv

0.0 0.0 0.0 171 KB

在HA里使用的小米电视

Home Page: https://gitee.com/shaonianzhentan/xiaomi_tv

License: MIT License

JavaScript 25.40% Python 74.60%

xiaomi_tv's Introduction

小米电视

视频介绍:https://www.bilibili.com/read/cv12067446

hacs_badge hacs_badge visit

使用方式

安装完成重启HA,刷新一下页面,在集成里搜索小米电视即可

Add Integration

HomeKit遥控器

导入蓝图

开机/关闭电视事件

导入蓝图

遥控器按键命令

  • 关机:power
  • 上:up
  • 下:down
  • 左:left
  • 右: right
  • 首页:home
  • 音量加:volumeup
  • 音量减:volumedown
  • 菜单:menu
  • 确定:enter
  • 返回:back

发送按键

service: remote.send_command
data:
  command: left

ADB服务

打开ADB(注意:必须先打开开发者模式

service: remote.send_command
data:
  command: adb

腾讯视频搜索

service: xiaomi_tv.adb_command
data:
  command: am start -a com.tencent.qqlivetv.open -d "tenvideo2://?action=9&search_key=扫黑风暴"
  entity_id: media_player.xiao_mi_dian_shi

腾讯视频播放

service: xiaomi_tv.adb_command
data:
  command: am start -a com.tencent.qqlivetv.open -d "tenvideo2://?action=7&cover_id=mzc00200lxzhhqz"
  entity_id: media_player.xiao_mi_dian_shi

酷喵搜索

service: xiaomi_tv.adb_command
data:
  command: am start -a android.intent.action.VIEW -d "ykott://tv/search?url=tv/v3/search?from_app=cn.cibntv.ott"
  entity_id: media_player.xiao_mi_dian_shi

酷喵视频播放

service: xiaomi_tv.adb_command
data:
  command: am start -a android.intent.action.VIEW -d "ykott://tv/detail?url=tv/v3/show/detail?id=175957&fullscreen=true&fullback=true&from=cn.cibntv.ott"
  entity_id: media_player.xiao_mi_dian_shi

如果这个项目对你有帮助,请我喝杯咖啡奶茶吧😘

支付宝 微信
支付宝 微信支付

关注我的微信订阅号,了解更多HomeAssistant相关知识

HomeAssistant家庭助理


在使用的过程之中,如果遇到无法解决的问题,付费咨询请加Q635147515

xiaomi_tv's People

Contributors

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