LGTV_IP12 - Keine Aktualisierung des Inputs / inputLabel

Begonnen von FHEM-Wohnung, 21 Februar 2020, 23:04:44

Vorheriges Thema - Nächstes Thema

FHEM-Wohnung

Ersteinmal vielen Dank für das Modul für den LGTV. Ich habe einen 47LM620s. Das Modul ist verbunden mit dem TV und liefert alle readings. Leider aktualisiert sich das reading Input und inputLabel nicht. bzw. sehr selten (aktuell seit 5 Tagen nicht mehr).

Raw definition

defmod LGTV LGTV_IP12 192.168.178.146 15 5
attr LGTV devStateIcon on:radio_checked@green off:radio_checked
attr LGTV event-on-change-reading state,input
attr LGTV group Multimedia
attr LGTV icon tv
attr LGTV pairingcode 446XXX
attr LGTV room 40_Wohnzimmer

setstate LGTV on
setstate LGTV 2020-02-21 23:01:46 3D false
setstate LGTV 2020-02-21 23:01:46 channel 0
setstate LGTV 2020-02-21 22:29:29 channelName WELT
setstate LGTV 2020-02-21 22:29:29 currentProgram Lost Places - Die Beelitzer Heilstätten
[b]setstate LGTV 2020-02-16 22:16:43 input HDMI1
setstate LGTV 2020-02-16 22:16:43 inputLabel Home Theater[/b]
setstate LGTV 2020-02-21 23:01:46 mute off
setstate LGTV 2020-02-21 23:01:46 power on
setstate LGTV 2020-02-21 23:01:46 state on
setstate LGTV 2020-02-21 23:01:46 volume 35


Verbose 5 ohne Aktualisierung der readings input und inputLabel

2020.02.21 22:43:09 5 : LGT
V_IP12 (LGTV) - got response for "statusRequest is3d": <?xml version="1.0" encoding="utf-8"?><envelope><dataList name="is3D"><data><is3D>false</is3D></data></dataList></envelope>
2020.02.21 22:43:14 5 : LGTV_IP12 (LGTV) - sending GET request for command "statusRequest appList" to url /udap/api/data?target=applist_get&type=1&index=0&number=0
2020.02.21 22:43:14 5 : LGTV_IP12 (LGTV) - sending GET request for command "statusRequest currentChannel" to url /udap/api/data?target=cur_channel
2020.02.21 22:43:14 5 : LGTV_IP12 (LGTV) - sending GET request for command "statusRequest volumeInfo" to url /udap/api/data?target=volume_info
2020.02.21 22:43:14 5 : LGTV_IP12 (LGTV) - sending GET request for command "statusRequest is3d" to url /udap/api/data?target=is_3d
2020.02.21 22:43:14 5 : LGTV_IP12 (LGTV) - got response for "statusRequest appList": <?xml version="1.0" encoding="utf-8"?><envelope></envelope>
2020.02.21 22:43:14 5 : LGTV_IP12 (LGTV) - got response for "statusRequest currentChannel": <?xml version="1.0" encoding="utf-8"?><envelope><dataList name="Current Channel Info"><data><chtype>terrestrial</chtype><sourceIndex>0</sourceIndex><physicalNum>0</physicalNum><major>0</major><displayMajor>0</displayMajor><minor>0</minor><displayMinor>-1</displayMinor><chname></chname><progName></progName><audioCh>0</audioCh><inputSourceName></inputSourceName><inputSourceType>0</inputSourceType><labelName></labelName><inputSourceIdx>0</inputSourceIdx></data></dataList></envelope>
2020.02.21 22:43:14 5 : LGTV_IP12 (LGTV) - got response for "statusRequest volumeInfo": <?xml version="1.0" encoding="utf-8"?><envelope><dataList name="Volume Info"><data><mute>false</mute><minLevel>0</minLevel><maxLevel>100</maxLevel><level>35</level></data></dataList></envelope>



Update:
Sobald ich die LG Remote App auf dem Handy öffne, werden die readings für input und input label erfolgreich aktualisiert. Sobald die App wieder geschlossen wird erfolgt die Aktualisierung noch. Sobald der Fernseher neugestartet wird erfolgt keine Aktualisierung mehr der beiden genannten readings. Erst ein erneutes öffnen der App startet diese wieder.

Verbose 5 mit Aktualisierung der readings input und inputLabel


....
020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 5 : LGTV_IP12 (LGTV) - sending GET request for command "statusRequest appList" to url /udap/api/data?target=applist_get&type=1&index=0&number=0
2020.02.21 23:29:52 5 : LGTV_IP12 (LGTV) - sending GET request for command "statusRequest currentChannel" to url /udap/api/data?target=cur_channel
2020.02.21 23:29:52 5 : LGTV_IP12 (LGTV) - sending GET request for command "statusRequest volumeInfo" to url /udap/api/data?target=volume_info
2020.02.21 23:29:52 5 : LGTV_IP12 (LGTV) - sending GET request for command "statusRequest is3d" to url /udap/api/data?target=is_3d
2020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 5 : LGTV_IP12 (LGTV) - got response for "statusRequest appList": <?xml version="1.0" encoding="utf-8"?><envelope></envelope>
2020-02-21 23:29:52 LGTV_IP12 LGTV on
2020-02-21 23:29:52 LGTV_IP12 LGTV power: on
2020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 5 : LGTV_IP12 (LGTV) - got response for "statusRequest currentChannel": <?xml version="1.0" encoding="utf-8"?><envelope><dataList name="Current Channel Info"><data><chtype>terrestrial</chtype><sourceIndex>0</sourceIndex><physicalNum>0</physicalNum><major>0</major><displayMajor>0</displayMajor><minor>0</minor><displayMinor>-1</displayMinor><chname></chname><progName></progName><audioCh>0</audioCh><inputSourceName>HDMI1</inputSourceName><inputSourceType>1</inputSourceType><labelName>Home Theater</labelName><inputSourceIdx>6</inputSourceIdx></data></dataList></envelope>
2020.02.21 23:29:52 5 : LGTV_IP12 (LGTV) - got response for "statusRequest volumeInfo": <?xml version="1.0" encoding="utf-8"?><envelope><dataList name="Volume Info"><data><mute>false</mute><minLevel>0</minLevel><maxLevel>100</maxLevel><level>35</level></data></dataList></envelope>2020-02-21 23:29:52 LGTV_IP12 LGTV on
2020-02-21 23:29:52 LGTV_IP12 LGTV power: on
2020-02-21 23:29:52 LGTV_IP12 LGTV input: HDMI1
2020-02-21 23:29:52 LGTV_IP12 LGTV inputLabel: Home Theater
2020-02-21 23:29:52 LGTV_IP12 LGTV channel: 0
2020-02-21 23:29:52 LGTV_IP12 LGTV on
2020-02-21 23:29:52 LGTV_IP12 LGTV power: on
2020-02-21 23:29:52 LGTV_IP12 LGTV 3D: false
2020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 2 : LGTV LG read error
2020.02.21 23:29:52 2 : LGTV LG read error

Markus Bloch

Hallo,

in deinem Fall sendet der Fernseher einfach die entsprechenden Informationen nicht an FHEM. Das Modul fragt am Fernseher den aktuellen Kanal ab ("currentChannel"). Im Schlechtfall sieht die Antwort des Fernsehrs folgendermaßen aus:

Zitat
2020.02.21 22:43:14 5 : LGTV_IP12 (LGTV) - got response for "statusRequest currentChannel": <?xml version="1.0" encoding="utf-8"?><envelope><dataList name="Current Channel Info"><data>[...]<inputSourceName></inputSourceName>[...]<labelName></labelName>[...]</data></dataList></envelope>

Im Gutfall sieht die Antwort vom Fernseher folgendermaßen aus:

Zitat
2020.02.21 23:29:52 5 : LGTV_IP12 (LGTV) - got response for "statusRequest currentChannel": <?xml version="1.0" encoding="utf-8"?><envelope><dataList name="Current Channel Info"><data>[...]<inputSourceName>HDMI1</inputSourceName>[...]<labelName>Home Theater</labelName>[...]</data></dataList></envelope>


Da kann das Modul leider nicht viel dran ändern, da der Fernseher einfach keine Daten rausrückt. Das ist mMn ein Firmware-Bug/Problem im Fernseher.

Ich selber habe einen LG 47LA6208. Hier werden immer die Kanal-Infos sofort ausgegeben. Sobald der Fernseher an ist, kann ich in FHEM die Daten sehen.

Gruß
Markus
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)