homebridge-xgimi-tv-plus
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

  1. If unplug or power outage,you need restart homebridge.
  2. 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

Package Sidebar

Install

npm i homebridge-xgimi-tv-plus

Weekly Downloads

3

Version

1.0.3

License

Apache-2.0

Unpacked Size

822 kB

Total Files

223

Last publish

Collaborators

  • arespano