adamkempenich / LGSmartTV2012

A Device Handler to connect 2012-2013 LG Smart TV's to Smart Things

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LGSmartTV2012

A Device Handler to connect 2012-2013 LG Smart TV's to Smart Things

This is based on a similar project that connects Smartthings to Pre 2012 LG Smart TVs.

Reference: https://github.com/dan06/SmartThings-LG-Smart-TV

Allows you to connect your LG Smart TV to Smartthings, use some basic controls and power off the TV through commands such as Alexa/ActionTiles/Google Assistant etc. At the minute the only control you can use through these apps is power off.

Simply add the Device Discovery Smart App and Device Handler to your IDE and follow the instructions. You LG Smart TV must be powered on and allowing remote control.

This will NOT turn the on as it sends XML Packages to the TV over the network and it wont respond to these packages when powered off.

For more information on the LG Remote App API please see: http://developer.lgappstv.com/TV_HELP/index.jsp?topic=%2Flge.tvsdk.references.book%2Fhtml%2FUDAP%2FUDAP%2FHandleTouchMove.htm

If you wish to add more commands, a full list of remote control commands are listed below

Virtual key code

(decimal number)

Description

1

POWER

2

Number 0

3

Number 1

4

Number 2

5

Number 3

6

Number 4

7

Number 5

8

Number 6

9

Number 7

10

Number 8

11

Number 9

12

UP key among remote Controllers 4 direction keys

13

DOWN key among remote Controllers 4 direction keys

14

LEFT key among remote Controllers 4 direction keys

15

RIGHT key among remote Controllers 4 direction keys

20

OK

21

Home menu

22

Menu key (same with Home menu key)

23

Previous key (Back)

24

Volume up

25

Volume down

26

Mute (toggle)

27

Channel UP (+)

28

Channel DOWN (-)

29

Blue key of data broadcast

30

Green key of data broadcast

31

Red key of data broadcast

32

Yellow key of data broadcast

33

Play

34

Pause

35

Stop

36

Fast forward (FF)

37

Rewind (REW)

38

Skip Forward

39

Skip Backward

40

Record

41

Recording list

42

Repeat

43

Live TV

44

EPG

45

Current program information

46

Aspect ratio

47

External input

48

PIP secondary video

49

Show / Change subtitle

50

Program list

51

Tele Text

52

Mark

400

3D Video

401

3D L/R

402

Dash (-)

403

Previous channel (Flash back)

404

Favorite channel

405

Quick menu

406

Text Option

407

Audio Description

408

NetCast key (same with Home menu)

409

Energy saving

410

A/V mode

411

SIMPLINK

412

Exit

413

Reservation programs list

414

PIP channel UP

415

PIP channel DOWN

416

Switching between primary/secondary video

417

My Apps

About

A Device Handler to connect 2012-2013 LG Smart TV's to Smart Things


Languages

Language:Groovy 100.0%