Skip to content

Commit ed1738e

Browse files
authored
Merge pull request #176 from NamelessCoder/feature/device-info
2 parents 0767637 + ecf828a commit ed1738e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

LGTV/remote.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,3 +343,7 @@ def screenOn(self):
343343

344344
def getPictureSettings(self, keys=["contrast", "backlight", "brightness", "color"]):
345345
self.__send_command("request", "ssap://settings/getSystemSettings", {"category": "picture", "keys": keys})
346+
347+
def setDeviceInfo(self, id, icon, label, callback=None):
348+
self.__send_command("request", "luna://com.webos.service.eim/setDeviceInfo", {"id": id, "icon": icon, "label": label})
349+

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ A big thanks for the contributions over the years too, lots of people have made
2828
* OLED48C1 (ssl)
2929
* OLED42C2 (ssl)
3030
* OLED48C2 (ssl)
31+
* OLED83C4 (ssl)
3132
* SK8500PLA
3233
* SM9010PLA
3334
* UF776V
@@ -93,6 +94,9 @@ All devices with firmware major version 4, product name "webOSTV 2.0"
9394
lgtv --name MyTV --ssl openYoutubeLegacyURL <url>
9495
lgtv --name MyTV --ssl sendButton <button>
9596
lgtv --name MyTV --ssl serialise
97+
lgtv --name MyTV --ssl setDeviceInfo <id> <icon> <label>
98+
# Example: lgtv --name MyTV --ssl setDeviceInfo HDMI_2 hdmi.png "My Input".
99+
# Purpose: force TV to disable so-called "PC mode" for inputs where the attached device incorrectly or undesiredly signals itself as "PC", eg. Raspberry Pi with LibreELEC.
96100
lgtv --name MyTV --ssl setInput <input_id>
97101
lgtv --name MyTV --ssl setSoundOutput <tv_speaker|external_optical|external_arc|external_speaker|lineout|headphone|tv_external_speaker|tv_speaker_headphone|bt_soundbar>
98102
lgtv --name MyTV --ssl screenOff

0 commit comments

Comments
 (0)