www.homeseer.com    
 

Go Back   HomeSeer Message Board > HomeSeer Products & Services > HomeSeer Help

HomeSeer Help Help, How-to's and Documentation

Reply
 
Thread Tools Display Modes
  #1  
Old September 23rd, 2017, 04:17 PM
Summerguy Summerguy is offline
Seer Plus
 
Join Date: Aug 2017
Location: Canada
Posts: 122
lgtv2mqtt for webos

Hi,


Is there anyone here with experience with lgtv2mqtt ?

https://www.npmjs.com/package/lgtv2mqtt

I am trying to map the tv sound control ''lgtv/set/volume'' to a virtual device, but i do not know how to do it ( i tried to map every level of sound to every level of the vitual device, it worked, but i had to create 100 events.. just for this....).


edit :

My vitual device is like this :

- The off buttons is mapped to the mute ( i am using easytrigger for this) command of the tv ( lgtv/status/mute ''1)
-The on buttons is mapped to the unmute command of the tv: lgtv/set/mute ''0'')
-The off and on command of the virtual device control the tv mute and unmute with lgtv/set/mute ''1'' AND ''0''

-the level of the tv VOLUME (0-100) is mapped to the virtual device timmer ( i used the lgtv/status/volume linked to the vitual device)


**- now i need to find a way o control the tv volume with the vitual device... without creating 100 events for this.. lol

I also need the vitual device to not got to 100% when i set the virtual device to on ( on because i set if to off (mute) before)


so yes i am creating one device with both the mute and volume fonction of the tv. It is more practical when using alexa. Like that, i can say ''alexa turn on/off tv volume'' or '' alexa set tv volume to 45''

Last edited by Summerguy; September 23rd, 2017 at 07:37 PM.
Reply With Quote
  #2  
Old December 31st, 2017, 10:18 AM
The-Source The-Source is offline
Seer Plus
 
Join Date: May 2014
Location: Nederland
Posts: 104
Quote:
Originally Posted by Summerguy View Post
Hi,


Is there anyone here with experience with lgtv2mqtt ?

https://www.npmjs.com/package/lgtv2mqtt

I am trying to map the tv sound control ''lgtv/set/volume'' to a virtual device, but i do not know how to do it ( i tried to map every level of sound to every level of the vitual device, it worked, but i had to create 100 events.. just for this....).


edit :

My vitual device is like this :

- The off buttons is mapped to the mute ( i am using easytrigger for this) command of the tv ( lgtv/status/mute ''1)
-The on buttons is mapped to the unmute command of the tv: lgtv/set/mute ''0'')
-The off and on command of the virtual device control the tv mute and unmute with lgtv/set/mute ''1'' AND ''0''

-the level of the tv VOLUME (0-100) is mapped to the virtual device timmer ( i used the lgtv/status/volume linked to the vitual device)


**- now i need to find a way o control the tv volume with the vitual device... without creating 100 events for this.. lol

I also need the vitual device to not got to 100% when i set the virtual device to on ( on because i set if to off (mute) before)


so yes i am creating one device with both the mute and volume fonction of the tv. It is more practical when using alexa. Like that, i can say ''alexa turn on/off tv volume'' or '' alexa set tv volume to 45''

edit:
Here are my steps: (hopefully they will help others)

download mqtt plugin. (primaire interfaces)
download mosquito if needed (if you dont have a mqtt broker allready),
download the needed .dll and Win32OpenSSL_Light-1_0_2n (the most recent version gives error in the end of the installation of mosquito.
the mosquito needs some vc_redist package, google which one if you get an error

Make sure mosquito service is running (after installation you have to start it)
Start the homeseer mqtt plugin and point this to your mqtt broker ip

instal node.js if needed and reboot windows

in command prompt:
npm install -g lgtv2mqtt

Set you tv to the lg connected apps page:

Start script, in command prompt:
lgtv2mqtt -v "error"

Confirm message on your TV

Last edited by The-Source; December 31st, 2017 at 11:08 AM. Reason: Found solution
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LG WEBOS 03 plugin request Summerguy Irrigation Discussion 0 September 3rd, 2017 05:15 PM
LG WebOS Smart TV Remotes? matt246 Media Controller Plug-in (3P) 6 May 13th, 2016 06:13 AM


All times are GMT -4. The time now is 07:37 AM.


Copyright HomeSeer Technologies, LLC