• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

i0null/homebridge-lgtv-2012: LG TV 2012 plugin for Homebridge

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

i0null/homebridge-lgtv-2012

开源软件地址:

https://github.com/i0null/homebridge-lgtv-2012

开源编程语言:

JavaScript 100.0%

开源软件介绍:

Homebridge Plugin for LG 2012 Series TVs

Homebridge Plugin based off (https://npmjs.org/package/homebridge-lgtv2) to allow Siri to control LGTV 2012 series.

Hacked together to work with the native IOS 10 Home App, the plugin emulates a light bulb, and maps the brightness control to volume.

Features

  • Power on/off (Works with IOS Home App)

  • Change volume (Works with IOS Home App) The Brightness (Volume) is controlled by percentage, according to the max_volume parameter. My TV can go to 50, but this seems way to loud: so the default is 20. A min_volume parameter mutes the tv when the volume is lowered. to try and prevent homekit setting power to 0, as its current behaviour

Very Experimental

  • Channel + Volume Control This is possible using the hue control in the Elgato Eve app.

Setting "false_run" to true in the config can trys prevent the channel changes whilst experimenting with this

Install

npm install -g homebridge-lgtv-2012

Get TV Pairing key

Replacing 172.16.0.10 with your TV's ip

cd $NODE_PATH/homebridge-lgtv-2012
node -e "ip = '172.16.0.10'; lg = require('lgtv-2012').lgtv; tv = new lg({host: ip}); tv.pair_request()"

Configuration example

{
  "accessories": [
    {
      "accessory": "lgtv-2012",
      "name": "TV",
      "ip": "10.0.1.4",
      "pairingKey": "123456", 
      "min_volume": 2, "max_volume": 20,
      "on_command": "MUTE"
    }
  ]
}

Configuration fields

  • accessory [required] Must always be lgtv-2012
  • name [required] Name of your accessory
  • ip [required] IP address of your tv
  • pairingKey [required] Must be provided to control the TV. If not provided, pairing key should be shown on the tv during accessory setup.
  • max_volume [optional] Upper Volume Limit (default: 20)
  • min_volume [optional] Lower Volume Limit before muting the TV (default: 2)
  • on_command [optional] Wake-on-Lan is not supported, so command to send when siri is asked to "Turn TV on" (default: "MUTE")



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
zchee/homebrew-libguestfs发布时间:2022-06-17
下一篇:
jawshooah/homebrew-pyenv: Homebrew Formulae for various pyenv plugins发布时间:2022-06-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap