homebridge-xgimi-tv-plus v1.0.3
Homebridge XGimiTv Plugin Plus
Introduce
use a smart plug let xgimi tv link in homekit to turn on/off tv and control tv.
Installation
sudo npm i -g homebridge-xgimi-tv-plus@latest
Configuration
Get Mi Plug token
Use this tool to get plug token
,ip
,id
,model
(https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor)
To get the package attribute, you can visit
http://{{you_tv_ip}}:16741/data/data/com.xgimi.vcontrol/app_appDatas/list
you need decode the data in chrome debug console(F12) ,paste fallow script
decodeURIComponent(document.body.textContent)
or copy data to this tool(https://www.urldecoder.org/)
Example BASIC config
set host
with your xgimi tv ip.
Set ip
,id
,token
,model
with your device info.
If you wanna some app autorun on start,set autorun
with the app package attribute name,or set the key is ""
{
"platform": "XGimiTeleVisionPlatform",
"name": "XGimiTeleVisionPlatform",
"devices": [
{
"name": "XGimi TV",
"host": "192.168.10.100",
"inputs": [
{
"name": "Kodi",
"type": "APPLICATION",
"package": "org.xbmc.kodi"
},
{
"name": "Huya",
"type": "APPLICATION",
"package": "com.huya.nftv"
}
],
"outlet": {
"name": "xgimi outlet",
"ip": "192.168.10.150",
"id": "437035619",
"token": "9mfq49he8tterr8xubzv9c6sjr70y302q",
"model": "cuco.plug.cp1",
"autorun": "org.xbmc.kodi"
},
"manufacturer": "XGimi",
"model": "H3S",
"serialNumber": "JRTZYCSJRK4R",
"firmwareRevision": "1.10.241"
}
]
}
The last step:set when power is on turn on xgimi tv in advanced settings.
Warning
- If unplug or power outage,you need restart homebridge.
- Control tv access by iphone control center's remoter.
Tested Device
Plug:Gosund CP1-AM(cuco.plug.cp1)
Xgimi tv:H3S
Special thanks
This plugin is based on fantasytu/homebridge-xgimi-tv modified.
http://github.com/fantasytu/homebridge-xgimi-tv
https://github.com/merdok/homebridge-miot
https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor