[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

CoolTux

Und Daten kommen ganz sicher in FHEM an, also vom Fernsehr? Werden Readings geschrieben?
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

Wolle02

Ja, der Fernseher ist an und Readings werden geschrieben. Das letzte war z.B. channelName Das Erste HD 2017-10-19 12:09:00

CoolTux

#617
So langsam verzweifel ich

Schauen wir mal weiter
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

Wolle02

Na das wollen wir doch stark vermeiden, dass du verzweifelst. Leider kann ich dir auch diesmal nichts wirklich anderes posten als die Male zuvor. Es ist alles noch beim alten. Aber vielleicht ist das auch eine spezifische Besonderheit bei speziell meinem Fernseher?
Davon abgesehen ist das mit dem Pairing ja eher irgendwie ein kosmetisches Problem. Augenscheinlich funktioniert ja alles ganz gut; bis auf eine Sache und die stört mich eigentlich mehr als die Sache mit dem Pairing.
Was bei mir nicht funktionieren will, ist dass ich mit launchApp AmazonVideo aufrufen kann. Da passiert einfach nichts und im Readin lastResponse steht error - 500 Application error.

Aber ich teste gerne weiter für dich wenn du das willst.

CoolTux

Das ist ja alles schön und gut, dennoch sollte das Teil aber bitte doch die Logausgaben eintragen die ich ihm gebe. Hast Du das globale oder Device Loglevel auf kleiner 3 gestellt?
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

Wolle02

Das DeviceLog steht auf verbose 5 und das FHEMLog im global Device steht auf verbose 3

CoolTux

Also wenn das Device auf verbose 5 steht sollten jede Menge Daten kommen. So wie Du es bisher kennst.
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

Wolle02

Argh, ich hab mich ungenau ausgedrückt. Das DeviceLog steht auf verbose 5 und ich sehe grade, dass das Device selber auf verbose 0 steht  :o
Ich setz das mal auf drei und starte FHEM nochmal neu.

CoolTux

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

Wolle02

Oh Mann, keine Ahnung warum der Loglevel auf 0 war, aber kaum macht man es richtig funktionierts auch  ;)

Jetzt steht im FHEMLog auch was drin:

2017.10.19 13:33:00 1: Timeout for WOL_Ping reached, terminated process 19062
2017.10.19 13:33:00 3: BlockingCall for Wolle_internet was aborted
2017.10.19 13:33:00 3: CUL_HM set Flur_Decke statusRequest
2017.10.19 13:33:00 3: LGTV_WebOS (Fernseher) - Sucessfull WS connection to 192.168.178.137
2017.10.19 13:33:00 3: Watchdog Anwesenheit_Wolle_bt_w triggered
2017.10.19 13:33:00 3: LGTV_WebOS (Fernseher) - decode_json Type: registered
2017.10.19 13:33:00 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:33:00 3: LGTV_WebOS (Fernseher) - Debug: registered und client-key vorhanden, hash registered
2017.10.19 13:33:00 0: Server shutdown
2017.10.19 13:33:02 1: Shutdown executed
2017.10.19 13:33:09 1: Including /usr/local/fhem/opt/fhem.cfg
2017.10.19 13:33:09 3: telnetPort: port 7072 opened
2017.10.19 13:33:10 3: WEB: port 8083 opened
2017.10.19 13:33:10 1: CUL_0 device is none, commands will be echoed only
2017.10.19 13:33:10 3: FHEM2FHEM opening FritzCUL at 192.168.178.2:7072
2017.10.19 13:33:10 1: HMLAN_Parse: HMLAN1 new condition disconnected
2017.10.19 13:33:10 3: Opening HMLAN1 device 192.168.178.23:1000
2017.10.19 13:33:10 1: HMLAN_Parse: HMLAN1 new condition init
2017.10.19 13:33:10 3: HMLAN1 device opened
2017.10.19 13:33:12 2: eventTypes: loaded 6858 events from /usr/local/fhem/opt/log/eventTypes.txt
2017.10.19 13:33:17 3: Opening my_callmonitor device 192.168.178.1:1012
2017.10.19 13:33:17 3: FB_CALLMONITOR (my_callmonitor) - loading cache file /usr/local/fhem/opt/log/FB_CM_reverse_cache_file.txt
2017.10.19 13:33:17 2: FB_CALLMONITOR (my_callmonitor) - read 262 contacts from Cache
2017.10.19 13:33:21 3: Opening Handy_Wolle_bt device 192.168.178.126:5111
2017.10.19 13:33:21 3: Handy_Wolle_bt device opened
2017.10.19 13:33:21 3: Opening Handy_Tanja_bt device 192.168.178.126:5111
2017.10.19 13:33:21 3: Handy_Tanja_bt device opened
2017.10.19 13:33:22 1: PERL WARNING: Odd number of elements in anonymous hash at (eval 209) line 2, <$fh> line 931.
2017.10.19 13:33:23 3: T_E10: Defined with URL http://www.clever-tanken.de/tankstelle_details/18531 and interval 1000
2017.10.19 13:33:23 3: T_Diesel: Defined with URL http://www.clever-tanken.de/tankstelle_details/18531 and interval 1000
2017.10.19 13:33:23 3: Mr.W_E10: Defined with URL http://www.clever-tanken.de/tankstelle_details/48847 and interval 1000
2017.10.19 13:33:23 3: Mr.W_Diesel: Defined with URL http://www.clever-tanken.de/tankstelle_details/48847 and interval 1000
2017.10.19 13:33:23 3: RAN_E10: Defined with URL http://www.clever-tanken.de/tankstelle_details/10283 and interval 1000
2017.10.19 13:33:23 3: RAN_Diesel: Defined with URL http://www.clever-tanken.de/tankstelle_details/10283 and interval 1000
2017.10.19 13:33:23 3: Aral_E10: Defined with URL http://www.clever-tanken.de/tankstelle_details/9448 and interval 1000
2017.10.19 13:33:23 3: Aral_Diesel: Defined with URL http://www.clever-tanken.de/tankstelle_details/9448 and interval 1000
2017.10.19 13:33:24 3: JET_Diesel: Defined with URL http://www.clever-tanken.de/tankstelle_details/921 and interval 1000
2017.10.19 13:33:24 3: JET_E10: Defined with URL http://www.clever-tanken.de/tankstelle_details/921 and interval 1000
2017.10.19 13:33:24 3: TABLETUI: new ext defined infix:ftui/: dir:/volume1/@appstore/fhem/opt/www/tablet:
2017.10.19 13:33:24 3: Registering HTTPSRV TABLETUI for URL /ftui   and assigned link ftui/ ...
2017.10.19 13:33:25 3: LGTV_WebOS (Fernseher) - defined with host 192.168.178.137
2017.10.19 13:33:25 1: Including /usr/local/fhem/opt/log/fhem.save
2017.10.19 13:33:26 3: Device Bad_Fenster added to ActionDetector with 099:00 time
2017.10.19 13:33:26 3: Device Bad_Heizung added to ActionDetector with 000:10 time
2017.10.19 13:33:26 3: Device Bewegungsmelder_1 added to ActionDetector with 000:12 time
2017.10.19 13:33:27 3: Device KU_Fenster added to ActionDetector with 012:00 time
2017.10.19 13:33:27 3: Device KZ_Fenster added to ActionDetector with 099:00 time
2017.10.19 13:33:27 3: Device KZ_Heizung added to ActionDetector with 000:10 time
2017.10.19 13:33:27 3: Device Rauchmelder_Kinderzimmer added to ActionDetector with 099:00 time
2017.10.19 13:33:27 3: Device Rauchmelder_Schlafzimmer added to ActionDetector with 099:00 time
2017.10.19 13:33:27 3: Device Rauchmelder_Wohnzimmer added to ActionDetector with 099:00 time
2017.10.19 13:33:27 3: Device SZ_Fenster added to ActionDetector with 099:00 time
2017.10.19 13:33:28 3: Device TH_Sensor_innen_WZ added to ActionDetector with 000:10 time
2017.10.19 13:33:28 3: Device WZ_Balkon_l added to ActionDetector with 099:50 time
2017.10.19 13:33:28 3: Device WZ_Balkon_r added to ActionDetector with 099:00 time
2017.10.19 13:33:28 3: Device WZ_Fenster added to ActionDetector with 099:50 time
2017.10.19 13:33:28 3: Device WZ_Heizung_Balkon added to ActionDetector with 000:12 time
2017.10.19 13:33:28 3: Device WZ_Heizung_Fenster added to ActionDetector with 000:12 time
2017.10.19 13:33:29 3: Device Wohnungstuer added to ActionDetector with 010:00 time
2017.10.19 13:33:29 3: Opening Handy_Tanja_bt device 192.168.178.126:5111
2017.10.19 13:33:29 3: Handy_Tanja_bt device opened
2017.10.19 13:33:29 3: Opening Handy_Wolle_bt device 192.168.178.126:5111
2017.10.19 13:33:29 3: Handy_Wolle_bt device opened
2017.10.19 13:33:29 3: Opening Squeezebox device 127.0.0.1:9090
2017.10.19 13:33:29 3: SB_SERVER_DoInit(Squeezebox): state: opened power: ?
2017.10.19 13:33:29 3: SB_SERVER_DoInit(Squeezebox): SB-Server is back again.
2017.10.19 13:33:29 3: Squeezebox device opened
2017.10.19 13:33:29 3: Opening myMQTT device 192.168.178.5:1883
2017.10.19 13:33:29 3: Can't connect to 192.168.178.5:1883: Connection refused
2017.10.19 13:33:29 3: FB_CALLMONITOR (my_callmonitor) - found 2 phonebooks
2017.10.19 13:33:29 2: FB_CALLMONITOR (my_callmonitor) - read 16 contacts from remote phonebook "Telefonbuch"
2017.10.19 13:33:29 2: FB_CALLMONITOR (my_callmonitor) - read 8 contacts from remote phonebook "Spambuch"
2017.10.19 13:33:30 0: Featurelevel: 5.8
2017.10.19 13:33:30 0: Server started with 426 defined entities (fhem.pl:15182/2017-10-03 perl:5.024001 os:linux user:fhem pid:19109)
2017.10.19 13:33:30 3: telnetForBlockingFn_1508412810.74048: port 46744 opened
2017.10.19 13:33:32 1: [Alarm 2] has undefined save data off, disarming
2017.10.19 13:33:32 1: [Alarm 3] has undefined save data off, disarming
2017.10.19 13:33:32 1: [Alarm 5] has undefined save data off, disarming
2017.10.19 13:33:36 3: CUL_HM set AZ_Wolle_Decke statusRequest
2017.10.19 13:33:37 3: FHEM2FHEM device opened (FritzCUL)
2017.10.19 13:33:39 1: HMLAN_Parse: HMLAN1 new condition ok
mplayer: no process found
2017.10.19 13:33:40 3: delete Help_Sprachausgabe_SZ;
                    setstate SZ_Fenster_Alarm_w defined : Please define Help_Sprachausgabe_SZ first
2017.10.19 13:33:40 3: SZ_Fenster_geschlossen_n return value: Please define Help_Sprachausgabe_SZ first
2017.10.19 13:33:40 3: CUL_HM set TH_Sensor_aussen getConfig
2017.10.19 13:33:40 3: my_callmonitor device opened
2017.10.19 13:33:41 3: CUL_HM set Flur_Decke statusRequest
2017.10.19 13:33:41 3: Watchdog Anwesenheit_Wolle_bt_w triggered
2017.10.19 13:33:41 3: Watchdog Anwesenheit_Tanja_bt_w triggered
2017.10.19 13:33:41 1: Timeout for WOL_Ping reached, terminated process 19196
2017.10.19 13:33:41 3: BlockingCall for Wolle_internet was aborted
2017.10.19 13:33:42 3: CUL_HM set KU_Unterschrankbeleuchtung statusRequest
2017.10.19 13:33:42 3: LGTV_WebOS (Fernseher) - decode_json Type: registered
2017.10.19 13:33:42 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:33:42 3: LGTV_WebOS (Fernseher) - Debug: registered und client-key vorhanden, hash registered
2017.10.19 13:33:43 3: CUL_HM set KZ_Decke statusRequest
2017.10.19 13:33:56 3: CUL_HM set KZ_Decke_Sw1_V_01 statusRequest
2017.10.19 13:33:56 2: PRESENCE (Handy_Wolle_wlan) - device could not be checked (retrying in 10 seconds): Process died prematurely
2017.10.19 13:33:56 2: PRESENCE (Handy_Tanja_wlan) - device could not be checked (retrying in 10 seconds): Process died prematurely
2017.10.19 13:33:56 2: PRESENCE (Handy_Tanja_wlan) - check returned a valid result after 1 unsuccesful retry
2017.10.19 13:33:56 3: ABFALL myAbfall - CALENDAR:Abfallkalender triggered, updating ABFALL myAbfall ...
2017.10.19 13:33:56 3: CUL_HM set Bewegungsmelder_1 getConfig
2017.10.19 13:33:57 3: LGTV_WebOS (Fernseher) - decode_json Type: response
2017.10.19 13:33:57 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:33:57 3: CUL_HM set KZ_Decke_Sw1_V_02 statusRequest
2017.10.19 13:33:58 2: PRESENCE (Handy_Wolle_wlan) - check returned a valid result after 1 unsuccesful retry
2017.10.19 13:33:58 3: LGTV_WebOS (Fernseher) - decode_json Type: response
2017.10.19 13:33:58 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:33:59 3: CUL_HM set Rauchmelder_Kinderzimmer statusRequest
2017.10.19 13:34:00 3: CUL_HM set Rauchmelder_Schlafzimmer statusRequest
2017.10.19 13:34:00 3: LGTV_WebOS (Fernseher) - decode_json Type: response
2017.10.19 13:34:00 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:34:01 3: CUL_HM set Rauchmelder_Wohnzimmer statusRequest
2017.10.19 13:34:02 3: CUL_HM set SZ_Decke statusRequest
2017.10.19 13:34:02 3: LGTV_WebOS (Fernseher) - decode_json Type: response
2017.10.19 13:34:02 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:34:03 3: CUL_HM set WZ_Fluter statusRequest
2017.10.19 13:34:04 3: CUL_HM set WZ_Media statusRequest
2017.10.19 13:34:04 3: LGTV_WebOS (Fernseher) - decode_json Type: response
2017.10.19 13:34:04 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:34:05 3: CUL_HM set WZ_Vitrine statusRequest
2017.10.19 13:34:08 3: LGTV_WebOS (Fernseher) - decode_json Type: response
2017.10.19 13:34:08 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:34:08 3: LGTV_WebOS (Fernseher) - decode_json Type: response
2017.10.19 13:34:08 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:34:13 3: LGTV_WebOS (Fernseher) - decode_json Type: response
2017.10.19 13:34:14 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:34:14 3: LGTV_WebOS (Fernseher) - decode_json Type: response
2017.10.19 13:34:14 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:34:14 3: LGTV_WebOS (Fernseher) - decode_json Type: response
2017.10.19 13:34:14 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:34:17 3: LGTV_WebOS (Fernseher) - decode_json Type: response
2017.10.19 13:34:17 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:34:19 3: LGTV_WebOS (Fernseher) - decode_json Type: response
2017.10.19 13:34:21 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:34:21 3: LGTV_WebOS (Fernseher) - decode_json Type: response
2017.10.19 13:34:21 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:34:23 3: LGTV_WebOS (Fernseher) - decode_json Type: response
2017.10.19 13:34:23 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 13:34:25 3: LGTV_WebOS (Fernseher) - decode_json Type: response
2017.10.19 13:34:25 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert


Mea culpa.

CoolTux

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

Wolle02

Reicht dir das auch, wenn ich nur die Zeilen mit LGTV_WebOS poste?

2017.10.19 15:27:05 3: LGTV_WebOS (Fernseher) - Sucessfull WS connection to 192.168.178.137
2017.10.19 15:27:05 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 15:27:05 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert: registered Playload Clientkey a5fc4f8e41e49c09bb32209ab7b9f84d
2017.10.19 15:27:05 3: LGTV_WebOS (Fernseher) - Debug: registered und client-key vorhanden, hash registered
2017.10.19 15:27:15 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 15:27:15 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at /usr/local/fhem/opt/FHEM/82_LGTV_WebOS.pm line 945.
2017.10.19 15:27:15 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert: response Playload Clientkey
2017.10.19 15:27:17 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 15:27:17 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert: response Playload Clientkey
2017.10.19 15:27:19 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert
2017.10.19 15:27:19 3: LGTV_WebOS (Fernseher) - Debug: Type ist definiert: response Playload Clientkey


oder brauchst du doch die ganze Startsequenz?

CoolTux

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

CoolTux

Hallo Wolle,

Magst Du bitte einmal testen? Danke Dir



Grüße
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

Wolle02

Gerade nach Hause gekommen und gleich einen Post von dir gehabt  ;D

In Internals VERSION steht nun 1.2.0testWolle6
DeviceLog auf verbose 3 gestellt.
Fernseher eingeschaltet.
FHEM neugestartet.

In der Startsequenz sehe ich überhaupt nichts vom Fernseher; Readings werden aber geschrieben.
Nach dem Start von FHEM erscheint aber in genaum einem Minuten Abstand im Logfile:
2017.10.23 14:27:04 3: LGTV_WebOS (Fernseher) - JSON error while request: IO::Socket::INET: connect: Connection refused
2017.10.23 14:28:04 3: LGTV_WebOS (Fernseher) - JSON error while request: IO::Socket::INET: connect: Connection refused
2017.10.23 14:29:04 3: LGTV_WebOS (Fernseher) - JSON error while request: IO::Socket::INET: connect: Connection refused
2017.10.23 14:30:04 3: LGTV_WebOS (Fernseher) - JSON error while request: IO::Socket::INET: connect: Connection refused


Das Perlmodul ist installiert.
???