[82_LGTV_WebOS.pm] Modul für LG TV's mit WebOS

Begonnen von CoolTux, 08 Februar 2017, 00:02:58

Vorheriges Thema - Nächstes Thema

AmunRe

Ich hab mal eine Frage..




Ich kann als Input nur "Fire" wählen, welches bei mir mit HDMI und benannt wurde mit Fire.


Ich hab aber noch einen AV Ausgang der Nintendo 64 heißt, dieser ist aber nicht auswählbar. den würde ich aber gern ansteuern können ;)


Und dann hab ich im Set noch so eine komische Liste, welche für mich keinen Sinn macht. Siehe Bild. Bild deshalb, weil es in einem list nicht auftaucht.
4 x Echo Dot, HMLAN Gateway, und diverse HM Komponenten, Philips Hue + OSRAM Plugs

CoolTux

Die Input Schnittstellen dürfen keine Leerzeichen haben. Die komische Liste sind Teile Deiner Inputnamen.
Wüsste gar nicht das man die umbenennen kann. Hihi
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

AmunRe

#392
Zitat von: CoolTux am 16 Mai 2017, 20:17:12
Die Input Schnittstellen dürfen keine Leerzeichen haben. Die komische Liste sind Teile Deiner Inputnamen.
Wüsste gar nicht das man die umbenennen kann. Hihi


Nachdem ich es gepostet habe, dacht ich mir sowas schon und habe das Leerzeichen entfernt.

Btw: Schön auch dir noch mal was neues zu zeigen ;)

Dennoch taucht es nicht in der Liste auf.
Internals:
   CFGFN
   DEF        192.168.0.71
   HOST       192.168.0.71
   NAME       LGTV_WZ
   NR         466846
   PARTIAL
   STATE      off
   TYPE       LGTV_WebOS
   VERSION    0.6.0
   Readings:
     2017-05-16 20:19:16   3DMode          2d
     2017-05-16 21:18:12   channel         -
     2017-05-16 21:18:12   channelCurrentEndTime -
     2017-05-16 21:18:12   channelCurrentStartTime -
     2017-05-16 21:18:12   channelCurrentTitle -
     2017-05-16 21:18:12   channelMedia    -
     2017-05-16 21:18:12   channelName     -
     2017-05-16 21:18:12   channelNextEndTime -
     2017-05-16 21:18:12   channelNextStartTime -
     2017-05-16 21:18:12   channelNextTitle -
     2017-05-16 20:19:08   extInput_Fire TV connect_1
     2017-05-16 20:19:08   extInput_HDMI-1 connect_0
     2017-05-16 20:19:08   extInput_HDMI-3 connect_0
     2017-05-16 20:19:08   extInput_Komponente connect_0
     2017-05-16 20:17:37   extInput_Nintendo 64 connect_1
     2017-05-16 20:19:08   extInput_Nintendo64 connect_1
     2017-05-16 20:19:14   input           Nintendo64
     2017-05-16 20:05:39   lastResponse    error - 500 Application error
     2017-05-16 20:19:14   launchApp       -
     2017-05-16 20:15:19   lgKey           fc298940b1dd5c417fe55848dd25e2ff
     2017-05-16 21:18:14   presence        absent
     2017-05-16 21:18:12   state           off
     2017-05-16 20:19:10   volume          -1
   Helper:
     wsKey      MTQ5NDk1ODUxOS40MjI3Nw==


     Device:
       registered 1
       runsetcmd  0
       Channelguide:
         counter    384
       Inputapps:
         com.webos.app.externalinput.av1 Nintendo64
         com.webos.app.externalinput.component Komponente
         com.webos.app.hdmi1 HDMI-1
         com.webos.app.hdmi2 Fire TV
         com.webos.app.hdmi3 HDMI-3
       Inputs:
         Fire TV    com.webos.app.hdmi2
         HDMI-1     com.webos.app.hdmi1
         HDMI-3     com.webos.app.hdmi3
         Komponente com.webos.app.externalinput.component
         Nintendo64 com.webos.app.externalinput.av1
Attributes:
   devStateIcon on:10px-kreis-gruen:off off:10px-kreis-rot:on
   pingPresence 1
   room       LGTV
4 x Echo Dot, HMLAN Gateway, und diverse HM Komponenten, Philips Hue + OSRAM Plugs

CoolTux

Ich würde behaupten das er damit

extInput_Fire TV connect_1

noch ein Problem hat und deswegen der Rest fehlt.
FireTv Mal bitte schreiben. Und am besten danach ein shutdown reboot das die helper geleert werden.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

AmunRe

#394
Also der eine Fehler ist behoben.




Dafür passierrt jetzt das :


Zitat2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error
2017.05.16 22:50:33 2 : LGTV LGTV_WZ read error


P.S.: Mein Log war noch nie innerhalb von 5 Minuten bei 200MB :-D
4 x Echo Dot, HMLAN Gateway, und diverse HM Komponenten, Philips Hue + OSRAM Plugs

CoolTux

Konntest Du das Problem lösen? Aus meinem Code stammt die Meldung nicht. Vielleicht noch mal neu starten.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

GrandJury

Hallo zusammen,

habe das Modul ebenfalls installiert. Danke für die Arbeit. :)

Ich nutze die Readings, um zum Beispiel beim Start von Netflix eine andere Beleuchtung zu schalten, als es bei YouTube passiert. Inzwischen werden aber die Readings immer erst dann aktualisiert, wenn ich den TV oder Fhem neu starte. Das passiert nun seit einigen Tagen. Zuvor hatte es funktioniert. Hast du eine Idee dazu?

Zudem erhalte ich immer wieder den Fehler "error - 500 Application error" und "error - 401 insufficient permissions"


CoolTux

Versuch Mal bei abgeschalteten Fernsehr alle Readings zu löschen und dann FHEM neu zu starten.

Wenn der 500 immer Mal wieder kommt ist das ok, das ist dann immer kurz nach dem umschalten vom TV zu einer anderen Quelle. Sollte aber nur einmal pro weg schalten vom TV kommen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

DeeSPe

Geht eigentlich noch was mit UTF-8 für Text?
Hatte das vor einiger Zeit schon mal mit Hinweis angefragt. :-[

Für mich ist das Anzeigen von screenMsg der einzige Verwendungszweck des Moduls und es sieht so halt einfach "bescheiden" aus auf dem Screen...

Gruß
Dan
MAINTAINER: 22_HOMEMODE, 98_Hyperion, 98_FileLogConvert, 98_serviced

Als kleine Unterstützung für meine Programmierungen könnt ihr mir gerne einen Kaffee spendieren: https://buymeacoff.ee/DeeSPe

AmunRe

#399
Zitat von: CoolTux am 17 Mai 2017, 06:11:21
Konntest Du das Problem lösen? Aus meinem Code stammt die Meldung nicht. Vielleicht noch mal neu starten.


Ja, war mein Fehler.


Ich hatte zuerst LGTV als device definiert, welches auch ein modul hier ist. Damit lässt sich aber der LG_webos nicht andressieren.


Sorry!
4 x Echo Dot, HMLAN Gateway, und diverse HM Komponenten, Philips Hue + OSRAM Plugs

GrandJury

Zitat von: CoolTux am 18 Mai 2017, 07:13:08
Versuch Mal bei abgeschalteten Fernsehr alle Readings zu löschen und dann FHEM neu zu starten.

Habe ich getestet. Es bleibt leider dabei, dass nur die erste Änderung, unmittelbar nach einem Neustart, übernommen wird. Also erst wenn ich den TV oder Fhem neu starte, erfolgt eine Aktualisierung. Anschließend wir lediglich erkannt, ob der Fernseher ein- oder ausgeschaltet ist.

CoolTux

Zitat von: GrandJury am 19 Mai 2017, 01:14:35
Habe ich getestet. Es bleibt leider dabei, dass nur die erste Änderung, unmittelbar nach einem Neustart, übernommen wird. Also erst wenn ich den TV oder Fhem neu starte, erfolgt eine Aktualisierung. Anschließend wir lediglich erkannt, ob der Fernseher ein- oder ausgeschaltet ist.

Dann mal bitte ein list vom Device hier in Codetags einstellen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

ToM_ToM

Das mit dem UTF8 würde mich auch noch interessieren.
Cool wäre auch wenn man bei der Anwendung Browser oder youtube schon einen Parameter (Suchstring) mit übergeben könnte. Aber habe dazu auch noch nichts im Netz finden können.
Der TV an sich scheint das aber irgendwie zu unterstützen, da die allgemeine Suche ja in den einzelnen Anwendungen nach nem Suchstring sucht und dann die Ergebnisse anzeigt.
Diese doofe youtube-App hat nämlich in der Tastatur keine Umlaute.  :o

VG, Thomas
Hardware: BananaPi, Busmaster CUL, SanDisk 16GB Ultra SD, 16 GB USB-Stick | Software: Armbian, FHEM 5.8

GrandJury

Zitat von: CoolTux am 19 Mai 2017, 07:24:20
Dann mal bitte ein list vom Device hier in Codetags einstellen.

Hi,

vielleicht noch ein Hinweis. Ich habe es heute erneut versucht. Die Sender werden aktualisiert. Sobald ich aber eine App starte oder einen anderen Eingang wähle (z. B. HDMI), dann erfolgt anschließend keine Aktualisierung mehr. Hier die Daten:

Internals:
   DEF        192.168.178.112
   FD         40
   HOST       192.168.178.112
   LAST_RECV  1495195260.10945
   NAME       Fernseher
   NR         237
   PARTIAL
   STATE      on
   TYPE       LGTV_WebOS
   VERSION    0.6.0
   Readings:
     2017-05-19 14:00:55   3DMode          2d
     2017-05-20 00:43:44   channel         -
     2017-05-20 00:43:44   channelCurrentEndTime -
     2017-05-20 00:43:44   channelCurrentStartTime -
     2017-05-20 00:43:44   channelCurrentTitle -
     2017-05-20 00:43:44   channelMedia    -
     2017-05-20 00:43:44   channelName     -
     2017-05-20 00:43:44   channelNextEndTime -
     2017-05-20 00:43:44   channelNextStartTime -
     2017-05-20 00:43:44   channelNextTitle -
     2017-05-19 14:00:57   extInput_AV     connect_0
     2017-05-19 14:00:57   extInput_HDMI-2 connect_0
     2017-05-19 14:00:57   extInput_Komponente connect_0
     2017-05-19 14:00:57   extInput_PS4    connect_0
     2017-05-19 14:00:57   extInput_Recalbox connect_0
     2017-05-19 14:01:13   input           -
     2017-05-19 20:16:36   lastResponse    error - 500 Application error
     2017-05-19 14:01:13   launchApp       Netflix
     2017-05-20 00:43:44   lgKey           788c3d19dd65b7b7c2e8cbc359bb1722
     2017-05-20 00:44:04   state           on
     2017-05-19 14:01:09   volume          18
   Helper:
     wsKey      MTQ5NTIzMzgyNC4xNTAwMg==

     Device:
       registered 1
       runsetcmd  1
       Channelguide:
         counter    4742
       Inputapps:
         com.webos.app.externalinput.av1 AV
         com.webos.app.externalinput.component Komponente
         com.webos.app.hdmi1 PS4
         com.webos.app.hdmi2 HDMI-2
         com.webos.app.hdmi3 Recalbox
       Inputs:
         AV         com.webos.app.externalinput.av1
         HDMI-2     com.webos.app.hdmi2
         Komponente com.webos.app.externalinput.component
         PS4        com.webos.app.hdmi1
         Recalbox   com.webos.app.hdmi3
Attributes:
   channelGuide 1
   devStateIcon on:10px-kreis-gruen:off off:10px-kreis-rot:on
   room       LGTV
   verbose    0


CoolTux

Soweit sieht alles schick aus. Kannst Du mal bitte mit verbose 4 laufen lassen?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net