Giter VIP home page Giter VIP logo

homebridge-lgtv2's Introduction

Homebridge LGTv2

NPMV Travis David NPML NPMD

LG webOS 2/3 plugin for Homebridge.

To use all feature of this plugin you need the Elgato Eve app.

NOTE: I no longer have an LG tv, so I can not continue the development of the project

Features

  • Power on/off
  • Change volume (Temporarily disabled)
  • Change channel (Temporarily disabled)
  • View channel name (Temporarily disabled)

Install

npm install -g homebridge-lgtv2

Basic configuration

{
  "accessories": [
    {
      "accessory": "LGTv2",
      "name": "TV",
      "mac": "E8:F2:E2:09:C2:56",
      "ip": "10.0.1.4"
    }
  ]
}

Configuration fields

  • accessory [required] Must always be "LGTv2
  • name [required] Name of your accessory
  • mac [required] Mac address of your tv
  • ip [required] IP address of your tv
  • keyFile [optional] Location to store permission token for your tv

Tv settings

Enable this option in your tv settings Tv screen

Changelogs

Version 1.3.2

  • Temporarily removed the additional characteristics added on 1.3.0 due to incompatibility issues
  • Volume as percentage

Version 1.3.1

  • Random characteristic UUID

Version 1.3.0

  • [NEW] Control the volume
  • [NEW] Control the channel number
  • [NEW] Identify toast
  • [NEW] View the channel name

Version 1.2.2

  • [NEW] Config field keyFile

Version 1.2.1

  • Readme

Version 1.2.0

  • More fast and stable power up

Version 1.1.1

  • WoL fixed
  • GetState fixed

homebridge-lgtv2's People

Contributors

alessiodionisi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-lgtv2's Issues

power on error

When powering on i get the following error
LGTv2 error Error: Sec-WebSocket-Accept header from server didn't match expected value of TtOjAhqQj2p06GkCLhvjJcTqG7Q=

siri always says "Sorry didnt hear back"

any feedback on this would be appreciated thanks

Remove volume feature?

Not so much an issue, but is there a way to remove the volume feature? I'm using a Sonos setup and the actual TV volume has no effect. It's causing some issues with Siri turning off all devices etc as it says volume not responding. I can't seem to add the TV without the volume (lightbulb) coming up too.

Thanks

How to guide?

HI

Is there a How-to guide to setup the TV with Homebridge?

I cant seem to get this working

keyFile is not generated

Everything seems to be working properly with the exception of turning my TV off.
Each time I toggle power off, my TV gives a "Connection Request" dialog box asking for permission.
Here is my homebridge output when I sent the command:

[2/27/2018, 9:09:49 PM] [Living Room TV] This is your LGTv2 key: undefined

It seems as though the keyFile is not being generated in this case? I changed the directory to "~/Desktop/" to see if the file appears...but nothing.

Any help would be appreciated!

Fantastic App can we take it further

This app is fantastic, thank you so much for writing it, I was wondering if we could go a stage further and change HDMI channels or load apps like netflix, amazon and plex ? I believe it is possible in the LG iPhone app

Permission denied: LGtv key

Hello,

I get this Error when I turn off my TV:

[TV] This is your LGTv2 key: undefined
fs.js:101
throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs
^

Error: EACCES: permission denied, open '/var/homebridge/lgtv-192.168.0.66'
at Error (native)

Seems that homebridge has no permissions to write to /var/homebridge/lgtv-
Is that correct? How can I change that?

webOS Lite

Is this plugin compatible with webOS Lite? I have an LG LH5700 which seems to run on webOS Lite.

Can't change the room

When I change the room in Apples HomeKit App nothing happens. It stuck in the default room. How can I change it?
In Eve App I can't change the room too...

Update gone wrong

Tried updating but now keep getting this error and can't load home bridge

[12/12/2016, 7:35:56 PM] [TV ] Initializing LGTv2 accessory...
/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Service.js:71
throw new Error("Cannot add a Characteristic with the same UUID as another Characteristic in this Service: " + existing.UUID);
^

Error: Cannot add a Characteristic with the same UUID as another Characteristic in this Service: 0000006E-0000-1000-8000-0037BB765291
at Service.addCharacteristic (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Service.js:71:13)
at new LGTv2 (/usr/local/lib/node_modules/homebridge-lgtv2/index.js:80:16)
at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:264:29)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:80:38)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3

CallBack warning

Hi

Thanks for writing this plugin. I just started using it with my new LGTV running WebOS3.

I am seeing this error when I attempt to turn off the TV (running latest homebridge and node). It then results in homebridge app itself restarting.

Nov 21 12:02:04 raspberrypi homebridge[25380]: [11/21/2016, 12:02:04 PM] [TV] LGTv2 connect
Nov 21 12:02:04 raspberrypi homebridge[25380]: (node:25380) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
Nov 21 12:02:04 raspberrypi homebridge[25380]: fs.js:89
Nov 21 12:02:04 raspberrypi homebridge[25380]: throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs
Nov 21 12:02:04 raspberrypi homebridge[25380]: ^
Nov 21 12:02:04 raspberrypi homebridge[25380]: Error: EACCES: permission denied, open './lgtv-192.168.1.181'

Command line interface

I am running this plugin and its working great.

I have an additional requirement for some scripting and am wondering whether installation of this plugin allows me to interact with webos directly via command line for example: lgtv power off etc.

Thanks

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.