LG TV WebOs 3.0

basmaaks
Posts: 7
Joined: Tuesday 17 October 2017 18:55
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: LG TV WebOs 3.0

Post by basmaaks » Tuesday 31 July 2018 21:33

got it running (sort of)

Some small problem, status isn't showing the channel I'm watching. Input selector doesn't work, can't switch my tv off. But I can switch my TV on.

Any help ?

Nefsolive
Posts: 2
Joined: Monday 04 September 2017 17:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: LG TV WebOs 3.0

Post by Nefsolive » Wednesday 01 August 2018 15:02

Hello,

Thanks for sharing the plungin.

All working fine, but whit some lag. And i can´t power ON my tv! Just power OFF.
I see all settings on TV and they are enable.
Anythink i need for take my TV ON?

Best Regards

Nefsolive
Posts: 2
Joined: Monday 04 September 2017 17:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: LG TV WebOs 3.0

Post by Nefsolive » Wednesday 01 August 2018 15:19

basmaaks wrote:
Tuesday 31 July 2018 21:33
got it running (sort of)

Some small problem, status isn't showing the channel I'm watching. Input selector doesn't work, can't switch my tv off. But I can switch my TV on.

Any help ?
I have instead, i can take my tv off and i can´t take on!

Bluelightcrew
Posts: 35
Joined: Thursday 02 February 2017 21:59
Target OS: Raspberry Pi
Domoticz version: 3.6708
Location: Deutschland
Contact:

Re: LG TV WebOs 3.0

Post by Bluelightcrew » Wednesday 08 August 2018 9:03

I found for a other home automation a script where you can send notifications to the LG tv. A very cool thing. But I have no idea how to include that in domoticz or the LG tv script. Maybe some one other have the know how to include that. I would spend some money onver PayPal.
https://www.home-assistant.io/component ... y.webostv/

nono212
Posts: 27
Joined: Sunday 18 December 2016 14:47
Target OS: Linux
Domoticz version: 3.6179
Contact:

Re: LG TV WebOs 3.0

Post by nono212 » Monday 17 September 2018 11:20

Hello
Thanks for your great Job .
I would like to know How you did to command your TV ...
I mean Now that is working ,what is the next step ?
I do not think that people do cli to change channel ;-)
Maybe integration on alexa ?
for example Alexa ,put cnn on Tv ...
What should be the next step for that any idea ?

Nautilus
Posts: 774
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Re: LG TV WebOs 3.0

Post by Nautilus » Thursday 20 September 2018 0:08

Bluelightcrew wrote:
Wednesday 08 August 2018 9:03
I found for a other home automation a script where you can send notifications to the LG tv. A very cool thing. But I have no idea how to include that in domoticz or the LG tv script. Maybe some one other have the know how to include that. I would spend some money onver PayPal.
https://www.home-assistant.io/component ... y.webostv/
I'm using pylgtv (https://github.com/TheRealLink/pylgtv) for notifications. Not sure about the best way to set it up, but I have a python script (lgnotify.py):

Code: Select all

#!/usr/bin/env python3
from pylgtv import WebOsClient
import sys

try:
    webos_client = WebOsClient('xxx.xxx.xxx.xxx')
    webos_client.send_message(str(sys.argv[1]), icon_path="/home/pi/domoticz/scripts/domoticz.png")
except:
    print("Error connecting to TV")
which I then call from event system (i.e. form Lua scripts, or Blockly), e.g.

Code: Select all

os.execute('/usr/bin/python3 /home/pi/domoticz/scripts/lgnotify.py "This is my message!" &')
I think the icon is optional but if you want to specify certain icon to be shown with the notification you need to specify it here: icon_path="/home/pi/domoticz/scripts/domoticz.png" I'm currently using just a plain domoticz icon for all notifications.

Bluelightcrew
Posts: 35
Joined: Thursday 02 February 2017 21:59
Target OS: Raspberry Pi
Domoticz version: 3.6708
Location: Deutschland
Contact:

Re: LG TV WebOs 3.0

Post by Bluelightcrew » Thursday 27 September 2018 10:12

Nautilus wrote:
Thursday 20 September 2018 0:08
Bluelightcrew wrote:
Wednesday 08 August 2018 9:03
I found for a other home automation a script where you can send notifications to the LG tv. A very cool thing. But I have no idea how to include that in domoticz or the LG tv script. Maybe some one other have the know how to include that. I would spend some money onver PayPal.
https://www.home-assistant.io/component ... y.webostv/
I'm using pylgtv (https://github.com/TheRealLink/pylgtv) for notifications. Not sure about the best way to set it up, but I have a python script (lgnotify.py):

Code: Select all

#!/usr/bin/env python3
from pylgtv import WebOsClient
import sys

try:
    webos_client = WebOsClient('xxx.xxx.xxx.xxx')
    webos_client.send_message(str(sys.argv[1]), icon_path="/home/pi/domoticz/scripts/domoticz.png")
except:
    print("Error connecting to TV")
which I then call from event system (i.e. form Lua scripts, or Blockly), e.g.

Code: Select all

os.execute('/usr/bin/python3 /home/pi/domoticz/scripts/lgnotify.py "This is my message!" &')
I think the icon is optional but if you want to specify certain icon to be shown with the notification you need to specify it here: icon_path="/home/pi/domoticz/scripts/domoticz.png" I'm currently using just a plain domoticz icon for all notifications.
Cool i will try it ,thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests