From 3128aeafe6b70983852fa29438df0efdc785d8e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferenc=20T=C3=B3th?= <40593528+dunaparty@users.noreply.github.com> Date: Sun, 12 Sep 2021 01:46:53 +0200 Subject: [PATCH 1/2] Add new equalisers, stream_types, play_ctrl_states By using LG SP8YA (2021): - discovered new `equalisers`: "AI Sound Pro", "Clear Voice", "Sports", "Game" - added `stream_types`: "Google Cast", "Spotify Connect" - added `play_control_states` for streaming: "Playing", "Stopped/Paused" --- temescal/__init__.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/temescal/__init__.py b/temescal/__init__.py index abb624b..07bbfa4 100755 --- a/temescal/__init__.py +++ b/temescal/__init__.py @@ -22,7 +22,8 @@ equalisers = ["Standard", "Bass", "Flat", "Boost", "Treble and Bass", "User", "Music", "Cinema", "Night", "News", "Voice", "ia_sound", "Adaptive Sound Control", "Movie", "Bass Blast", "Dolby Atmos", - "DTS Virtual X", "Bass Boost Plus", "DTS X"] + "DTS Virtual X", "Bass Boost Plus", "DTS X", "AI Sound Pro", + "Clear Voice", "Sports", "Game"] STANDARD = 0 BASS = 1 @@ -43,8 +44,12 @@ DTS_VIRTUAL_X = 16 BASS_BOOST_PLUS = 17 DTS_X = 18 +AI_SOUND_PRO = 19 +CLEAR_VOICE = 20 +SPORTS = 21 +GAME = 22 -functions = ["Wifi", "Bluetooth", "Portable", "Aux", "Optical", "CP", "HDMI", +functions = ["Wi-Fi", "Bluetooth", "Portable", "Aux", "Optical", "CP", "HDMI", "ARC", "Spotify", "Optical2", "HDMI2", "HDMI3", "LG TV", "Mic", "Chromecast", "Optical/HDMI ARC", "LG Optical", "FM", "USB", "USB2"] @@ -69,6 +74,16 @@ USB = 18 USB_2 = 19 +stream_types = ["Unknown0", "Google Cast", "Unknown2", "Unknown3", "Spotify Connect"] + +GOOGLE_CAST = 1 +SPOTIFY_CONNECT = 4 + +play_control_states = ["Playing", "Stopped/Paused"] + +PLAYING = 0 +PAUSED = 1 + class temescal: def __init__(self, address, port=9741, callback=None, logger=None): self.iv = b'\'%^Ur7gy$~t+f)%@' From 64f36b6cd212b040b0c9ab4b4203f3582718e8b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferenc=20T=C3=B3th?= <40593528+dunaparty@users.noreply.github.com> Date: Sun, 24 Apr 2022 19:43:05 +0200 Subject: [PATCH 2/2] Add E-ARC --- temescal/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/temescal/__init__.py b/temescal/__init__.py index 07bbfa4..e8822c0 100755 --- a/temescal/__init__.py +++ b/temescal/__init__.py @@ -51,7 +51,8 @@ functions = ["Wi-Fi", "Bluetooth", "Portable", "Aux", "Optical", "CP", "HDMI", "ARC", "Spotify", "Optical2", "HDMI2", "HDMI3", "LG TV", "Mic", - "Chromecast", "Optical/HDMI ARC", "LG Optical", "FM", "USB", "USB2"] + "Chromecast", "Optical/HDMI ARC", "LG Optical", "FM", "USB", "USB2", + "E-ARC"] WIFI = 0 BLUETOOTH = 1 @@ -73,6 +74,7 @@ FM = 17 USB = 18 USB_2 = 19 +E_ARC = 20 stream_types = ["Unknown0", "Google Cast", "Unknown2", "Unknown3", "Spotify Connect"]