Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shaonianzhentan/xiaomi_tv
在HA里使用的小米电视
https://github.com/shaonianzhentan/xiaomi_tv
Last synced: 6 days ago
JSON representation
在HA里使用的小米电视
- Host: GitHub
- URL: https://github.com/shaonianzhentan/xiaomi_tv
- Owner: shaonianzhentan
- License: mit
- Created: 2021-06-09T06:50:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-18T14:49:42.000Z (about 2 months ago)
- Last Synced: 2024-10-04T11:56:17.032Z (about 1 month ago)
- Language: Python
- Homepage: https://gitee.com/shaonianzhentan/xiaomi_tv
- Size: 135 KB
- Stars: 74
- Watchers: 2
- Forks: 30
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 小米电视
视频介绍:https://www.bilibili.com/read/cv12067446
[![hacs_badge](https://img.shields.io/badge/Home-Assistant-%23049cdb)](https://www.home-assistant.io/)
[![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg)](https://github.com/hacs/integration)
![visit](https://visitor-badge.laobi.icu/badge?page_id=shaonianzhentan.xiaomi_tv&left_text=visit)[![badge](https://img.shields.io/badge/Conversation-语音小助手-049cdb?logo=homeassistant&style=for-the-badge)](https://github.com/shaonianzhentan/conversation)
## 使用方式
安装完成重启HA,刷新一下页面,在集成里搜索`小米电视`即可
[![Add Integration](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start?domain=xiaomi_tv)
HomeKit遥控器
[![导入蓝图](https://my.home-assistant.io/badges/blueprint_import.svg)](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2Fshaonianzhentan%2Fxiaomi_tv%2Fblob%2Fmain%2Fblueprints%2Fhomekit_tv_remote.yaml)
开机/关闭电视事件
[![导入蓝图](https://my.home-assistant.io/badges/blueprint_import.svg)](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2Fshaonianzhentan%2Fxiaomi_tv%2Fblob%2Fmain%2Fblueprints%2Fxiaomi_tv.yaml)
> 遥控器按键命令
- 关机:`power`
- 上:`up`
- 下:`down`
- 左:`left`
- 右: `right`
- 首页:`home`
- 音量加:`volumeup`
- 音量减:`volumedown`
- 菜单:`menu`
- 确定:`enter`
- 返回:`back`发送按键
```yaml
service: xiaomi_tv.send_key
data:
command: left
```## ADB服务
打开ADB(注意:必须先打开`开发者模式`)
```yaml
service: xiaomi_tv.send_key
data:
key: adb
entity_id: media_player.xiao_mi_dian_shi
```
腾讯视频搜索
```yaml
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
```
腾讯视频播放
```yaml
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
```
酷喵搜索
```yaml
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
```
酷喵视频播放
```yaml
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相关知识
---
**在使用的过程之中,如果遇到无法解决的问题,付费咨询请加Q`635147515`**