You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This binding can send some commands typically used by LG LCD TVs (and some used by projectors).
3
+
This binding controls LG TVs, monitors and projectors that have an RS-232C control port.
4
4
5
5
See below for a list of supported channels.
6
6
7
7
## Supported Things
8
8
9
-
Supports one TV or projector per thing, also corresponding to a unique serial port.
9
+
Supports one TV, monitor or projector per thing, also corresponding to a unique serial port.
10
10
The protocol supports daisy-chaining of serial devices.
11
11
12
12
The LG serial command set appears to be similar on many models ([1], [5]), but not all commands will work on all models.
13
13
14
-
Some TVs may have an alternative port type instead of a standard DB9 connector, and may thus require an adapter.
14
+
The control port on most TVs is a male DE-9 connector that requires a "Null modem" cable to connect to a serial port or USB to serial adapter.
15
15
16
-
The serial port may be marked "Service only".
16
+
Some TVs have a 3.5 mm phone jack for the control port instead of a DE-9 connector, and may thus require the use of an adapter cable.
17
17
18
-
Tested and developed with :
18
+
The 3.5 mm phone jack may work with a generic 3.5 mm TRS phone plug to DE-9 cable or possibly LG part # EAD62707901 or EAD62707902 (3.5 mm TRRS to DE-9).
19
19
20
-
- LG 55UF772V (with [this cable adapter](https://www.ebay.com/itm/DB9-9-Pin-Female-To-TRS-3-5mm-Male-Stereo-Serial-Data-Converter-Cable-1-8M-6Ft-/291541959764?)).
21
-
- LG 47LK520 with a [serial hat](https://www.buyapi.ca/product/serial-hat-rs232/) on a Raspberry Pi
20
+
The control port may be marked "Service Only".
21
+
22
+
Tested and developed with:
23
+
24
+
- LG 55UF772V with a generic 3.5 mm TRS phone plug to DE-9 cable
25
+
- LG 47LK520 with a [serial hat](https://www.pishop.ca/product/serial-hat-rs232/) on a Raspberry Pi
22
26
23
27
## Discovery
24
28
25
-
No discovery supported, manual configuration is required.
29
+
No discovery supported; manual configuration is required.
26
30
27
31
## Thing Configuration
28
32
29
-
It is necessary to specify the serial port device used for communication.
33
+
The thing has the following configuration parameters:
| Serial Port | port | Serial port to use for connecting to TV/monitor/projector. | Serial port name |
38
+
| Set ID | setId | Set ID configured in the TV. If 0, will send the commands to every chained TV. | 0-99; default 1 |
39
+
40
+
It is necessary to specify the serial port used for communication.
30
41
On Linux systems, this will usually be either `/dev/ttyS0`, `/dev/ttyUSB0` or `/dev/ttyACM0` (or a higher number than `0` if multiple devices are present).
31
42
On Windows it will be `COM1`, `COM2`, etc.
32
43
33
-
The set id can also be specified when using daisy-chaining.
34
-
That allows you to have a thing that will handle a particular device (with set id other than 0), and another to send command on all devices (with set id equals 0).
35
-
However, the item values for the thing with set id 0 will never display the right values as it receives responses from many devices.
44
+
The Set ID can also be specified when using daisy-chaining.
45
+
This allows you to have a Thing that will handle a particular device (with Set ID other than 0), and another to send commands to all devices (with Set equals 0).
46
+
However, the item values for the Thing with Set ID 0 will never display the right values as it receives responses from many devices.
36
47
37
48
## Channels
38
49
39
-
The following channels are common to most TV through the serial or service port, taken from [4].
50
+
The following channels are common to most TVs, taken from [4].
40
51
41
-
| Channel type id | Command | Item type| Description |
| aspect-ratio | k c | String | Adjust screen format, at least 4:3, 16:9 formats |
44
55
| power | k a | Switch | Turns the device on or off |
45
56
| volume | k f | Dimmer | Sets the volume, values are from 0 to 100 |
46
57
| volume-mute | k e | Switch | Set mute on or off |
47
58
48
-
As for others, please refer to the documentation of your device in the section named "Controlling the multiple product", "External control" or any section that refers to RS-232, the names of the channels map the command names.
59
+
As for others, please refer to the documentation of your device in the section named "Controlling the multiple product", "External control" or any section that refers to RS-232.
49
60
If your device documentation doesn't give such information, you can look at the "LG protocol references" below and use the "Generic LG TV" thing which should contain all the different possible channels/commands.
50
61
51
-
Note: Devices might not respond or return an error to some command when the device is powered off which will make your items look in a wrong state until the TV turns on.
62
+
Note: Devices might not respond or return an error to some command when the device is powered off which can put items in an incorrect state until the device is turned on.
52
63
For instance, getting the volume status when the device is off makes no sense.
53
64
54
65
## All channel type ids
55
66
56
-
Here's a list of all the LG TV commands added to the binding, in channel type id alphabetic order
67
+
Here is the list of all the LG TV commands added to the binding, in channel type id alphabetic order:
57
68
58
-
| Channel type id| Command | Item type| Description |
0 commit comments