All Projects → FeLiNa22 → Amazon-Alexa-As-LG-TV-Remote

FeLiNa22 / Amazon-Alexa-As-LG-TV-Remote

Licence: GPL-3.0 license
Control your LG WebOS 3.0+ TV with Amazon Alexa

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Amazon-Alexa-As-LG-TV-Remote

lgtv2mqtt
Interface between LG WebOS Smart TVs and MQTT 📺
Stars: ✭ 90 (+309.09%)
Mutual labels:  smart-tv, tv, lg, webos
lgtv-ip-control
IP Control module for 2018+ LG TVs
Stars: ✭ 35 (+59.09%)
Mutual labels:  remote-control, tv, lg
qmlcore-tv
Smart TV PureQML plugin (LG, Samsung, OperaTV, AndroidTV, Hisense)
Stars: ✭ 23 (+4.55%)
Mutual labels:  smart-tv, tv, webos
ad-alexatalkingclock
Alexa (or other Smart Speakers) tell you the time without asking every hour. Please ⭐️if you like my app :)
Stars: ✭ 30 (+36.36%)
Mutual labels:  smart-home, amazon-alexa
RootMyTV.github.io
RootMyTV is a user-friendly exploit for rooting/jailbreaking LG webOS smart TVs.
Stars: ✭ 745 (+3286.36%)
Mutual labels:  tv, webos
LGTVCompanion
Power On and Off WebOS LG TVs together with your PC
Stars: ✭ 420 (+1809.09%)
Mutual labels:  lg, webos
homey-webos-plus
Improved LG WebOS integration for Homey
Stars: ✭ 17 (-22.73%)
Mutual labels:  lg, webos
Amazon Alexa Lg Tv
Control your LG TV (webOS 3) with Amazon Alexa
Stars: ✭ 68 (+209.09%)
Mutual labels:  tv, amazon-alexa
React Tv
[ Unmaintained due to raphamorim/react-ape ] React Renderer for low memory applications
Stars: ✭ 1,941 (+8722.73%)
Mutual labels:  tv, webos
react-sunbeam
Spatial navigation and focus management system for React apps
Stars: ✭ 50 (+127.27%)
Mutual labels:  remote-control, smart-tv
webostv
LG WebOS smart TV remote control terminal program and Go library package (golang)
Stars: ✭ 25 (+13.64%)
Mutual labels:  remote-control, webos
Irext
Universal IR Remote Control Solution
Stars: ✭ 1,240 (+5536.36%)
Mutual labels:  remote-control, smart-home
Duckietv
A web application built with AngularJS to track your favorite tv-shows with semi-automagic torrent integration
Stars: ✭ 942 (+4181.82%)
Mutual labels:  remote-control, tv
react-tv-navigation
React Navigation for TVs
Stars: ✭ 64 (+190.91%)
Mutual labels:  tv, webos
Flagsmith Api
Feature flagging and remote config service. Host yourself or use our hosted version at https://www.flagsmith.com/
Stars: ✭ 223 (+913.64%)
Mutual labels:  remote-control
ytcast
cast YouTube videos to your smart TV from command-line
Stars: ✭ 674 (+2963.64%)
Mutual labels:  smart-tv
Syncit
a privacy-first co-browsing tool
Stars: ✭ 216 (+881.82%)
Mutual labels:  remote-control
Offline Ps4 Remote Play
Enjoy playing on your PS4 from your computer (WLAN/Ad-hoc) without the need of an Internet connection.
Stars: ✭ 215 (+877.27%)
Mutual labels:  remote-control
HomeAssistantMC
Bridge Home Assistant with Minecraft
Stars: ✭ 24 (+9.09%)
Mutual labels:  smart-home
TVGemist
An *Unofficial* Uitzending Gemist application for  TV
Stars: ✭ 23 (+4.55%)
Mutual labels:  tv

Alexa-LG-TV-Controller

Makes use of Klattimer's LGWebOSRemote module and Sinric's faux WEEMOS creator to control any smart LG TV with Alexa. This python script monitors Alexa's commands through Sinric, and then executes it using LG's nodejs API. It will allow you to turn on/off an LG tv and much more ... all from your Alexa device.

Supported models

Tested with

  • UF830V
  • UH650V
  • UJ635V
  • HU80KG.AEU (CineBeam 4K)
  • [please add more!]

Tested with python 2.7 on linux.

Likely supports

All devices with firmware major version 4, product name "webOSTV 2.0/3.0"

Available Alexa Commands

ChannelDown      
ChannelUp        
FastForward  
Pause       
Play        
Rewind                             
mute                  
off                   
on                    
Set Input          input(HDMI 1,HDMI 2 ...)
Set Channel        channel_number
Set Volume         level                
Volume Down            
Volume Up

Setup

Requires wakeonlan, websocket and websocket-client for python and arp (in Debian/Ubuntu: apt-get install net-tools)

There's a requirements.txt included

 1.)  Setup your sinric account at https://sinric.com/
 2.)  Login to your account and click add smart home device, give the device a name and choose TV as device type
 ----> it is good at this point to copy the api of the device 
 3.)  On the Alexa app go to 'skills & games' and install sinric's skill and login to your account
 4.)  The fake device you just created on the website should then be seen in the Alexa app under 'devices'

# Now enter the directory with the files and type in command line 
------------------------------------->
1.)  pip install -r requirements.txt
2.)  sudo python setup.py
------------------------------------->
---> This will scan for your LG tv and will show the IP address of all LG tv's on the local network
# Example :
{
"count": 1, 
"list": [
    {
        "address": "192.168.0.158", 
        "model": "OLEDXXXXX", 
        "uuid": "0b6405648-ccc7-ab45f-967d-8gd47f21346"
    }
], 
"result": "ok"
}
---> You will then be prompted to enter the ip address of the TV you want to authorise on
please enter  ip like '192.168.0.158' (make sure to use brackets)
3.)  Enter IP address of TV, and a notification will pop up on the TV screen (click authorise on TV)

4.)  Now open the Alexa.py file and edit line 80. Here you need to replace :
# Example :
line 80 | api = ' enter-api-here  ' 
becomes 
line 80 | api = '65a23cd9-2e5d-495c-b4bd-5abfgh3l60345'

5.)  The final step is to start the Alexa.py file : 
          sudo python Alexa.py
     or to run in the background once terminal closes. Use: 
          sudo chmod +x Alexa.py
          nohup python /full/path/to/Alexa.py &
          logout

FeLiNa

Once all the steps above have been completed, and the python script is running, try telling your Alexa device to change your tv volume by saying

ALEXA SET (Sinric Device Name) VOLUME TO (intended level)

Caveats

You need to run setup.py whilst the TV is on as it will need to pull the mac address of the device.

CREDITS

I want to give a big thanks to klattimer whose library I used in this project -> https://github.com/klattimer/LGWebOSRemote/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].