NEWS
lgtv Adapter zur Steuerung von LG WebOS SmartTVs
-
so nun mit 1.1.5
lgtv.0 2020-02-23 18:32:45.263 debug (20304) Service list: {"returnValue":true,"services":[{"name":"api","version":1},{"name":"audio","version":1},{"name":"config","version":1},{"name":"media.controls","version":1},{"name":"media.viewer" lgtv.0 2020-02-23 18:32:45.247 debug (20304) tv/getCurrentChannel: {"returnValue":false,"errorCode":-1000,"errorText":"internal error"} lgtv.0 2020-02-23 18:32:45.245 debug (20304) getSystemInfo: {"returnValue":true,"features":{"3d":false,"dvr":true},"receiverType":"dvb","modelName":"49UJ635V-ZF"} lgtv.0 2020-02-23 18:32:45.243 debug (20304) audio/getSoundOutput: {"soundOutput":"tv_external_speaker","subscribed":true} lgtv.0 2020-02-23 18:32:45.216 debug (20304) getCurrentSWInformation: {"returnValue":true,"product_name":"webOSTV 3.5","model_name":"HE_DTV_W17P_AFADABAA","sw_type":"FIRMWARE","major_ver":"05","minor_ver":"80.50","country":"AT","country_ lgtv.0 2020-02-23 18:32:45.083 debug (20304) renew connection in one minute for stable subscribtions... lgtv.0 2020-02-23 18:32:45.068 debug (20304) audio/getVolume: {"returnValue":true,"volumeMax":100,"muted":false,"scenario":"mastervolume_tv_speaker","subscribed":true,"volume":10,"action":"requested","active":false,"changed":["muted","vo lgtv.0 2020-02-23 18:32:45.056 debug (20304) cur app is com.webos.app.hdmi1 lgtv.0 2020-02-23 18:32:45.055 debug (20304) DEBUGGING getForegroundAppInfo: {"appId":"com.webos.app.hdmi1","subscribed":true,"returnValue":true,"windowId":"","processId":""} lgtv.0 2020-02-23 18:32:44.947 debug (20304) WebOS TV Connected lgtv.0 2020-02-23 18:32:42.583 debug (20304) Connection closed: 1000 lgtv.0 2020-02-23 18:32:29.575 debug (20304) TV is off lgtv.0 2020-02-23 18:32:29.572 debug (20304) Connecting to WebOS TV: ws://192.168.2.15:3000 lgtv.0 2020-02-23 18:31:29.066 debug (20304) renew connection in one minute for stable subscribtions... lgtv.0 2020-02-23 18:31:28.775 debug (20304) tv/getCurrentChannel: {"returnValue":false,"errorCode":-1000,"errorText":"internal error"} lgtv.0 2020-02-23 18:31:28.773 debug (20304) getSystemInfo: {"returnValue":true,"features":{"3d":false,"dvr":true},"receiverType":"dvb","modelName":"49UJ635V-ZF"} lgtv.0 2020-02-23 18:31:28.770 debug (20304) audio/getSoundOutput: {"soundOutput":"tv_external_speaker","subscribed":true} lgtv.0 2020-02-23 18:31:28.763 debug (20304) Service list: {"returnValue":true,"services":[{"name":"api","version":1},{"name":"audio","version":1},{"name":"config","version":1},{"name":"media.controls","version":1},{"name":"media.viewer" lgtv.0 2020-02-23 18:31:28.737 debug (20304) getCurrentSWInformation: {"returnValue":true,"product_name":"webOSTV 3.5","model_name":"HE_DTV_W17P_AFADABAA","sw_type":"FIRMWARE","major_ver":"05","minor_ver":"80.50","country":"AT","country_ lgtv.0 2020-02-23 18:31:28.578 debug (20304) cur app is com.webos.app.hdmi1 lgtv.0 2020-02-23 18:31:28.577 debug (20304) DEBUGGING getForegroundAppInfo: {"appId":"com.webos.app.hdmi1","subscribed":true,"returnValue":true,"windowId":"","processId":""} lgtv.0 2020-02-23 18:31:28.510 debug (20304) audio/getVolume: {"returnValue":true,"volumeMax":100,"muted":false,"scenario":"mastervolume_tv_speaker","subscribed":true,"volume":10,"action":"requested","active":false,"changed":["muted","vo lgtv.0 2020-02-23 18:31:28.476 debug (20304) WebOS TV Connected lgtv.0 2020-02-23 18:31:28.385 debug (20304) Connecting to WebOS TV: ws://192.168.2.15:3000 lgtv.0 2020-02-23 18:31:27.901 debug (20304) TV is off lgtv.0 2020-02-23 18:31:27.900 debug (20304) Connection closed: 1000 lgtv.0 2020-02-23 18:31:18.451 debug (20304) check TV connection: ok lgtv.0 2020-02-23 18:31:08.335 debug (20304) check TV connection: ok lgtv.0 2020-02-23 18:30:58.335 debug (20304) check TV connection: ok lgtv.0 2020-02-23 18:30:48.340 debug (20304) check TV connection: ok lgtv.0 2020-02-23 18:30:38.359 debug (20304) check TV connection: ok lgtv.0 2020-02-23 18:30:27.880 debug (20304) renew connection in one minute for stable subscribtions... lgtv.0 2020-02-23 18:30:27.863 debug (20304) cur app is com.webos.app.hdmi1 lgtv.0 2020-02-23 18:30:27.861 debug (20304) DEBUGGING getForegroundAppInfo: {"subscribed":true,"appId":"com.webos.app.hdmi1","returnValue":true,"windowId":"","processId":""} lgtv.0 2020-02-23 18:30:27.858 debug (20304) audio/getSoundOutput: {"soundOutput":"tv_external_speaker","subscribed":true} lgtv.0 2020-02-23 18:30:27.815 debug (20304) DEBUGGING getForegroundAppInfo: {"subscribed":true,"appId":"","returnValue":true,"windowId":"","processId":""} lgtv.0 2020-02-23 18:26:59.557 debug (20304) audio/getVolume: {"changed":["volume"],"returnValue":true,"cause":"volumeDown","volumeMax":100,"scenario":"mastervolume_tv_speaker","muted":false,"volume":10,"action":"changed","active":false} lgtv.0 2020-02-23 18:26:58.454 debug (20304) audio/getVolume: {"changed":["volume"],"returnValue":true,"cause":"volumeUp","volumeMax":100,"scenario":"mastervolume_tv_speaker","muted":false,"volume":11,"action":"changed","active":false} lgtv.0 2020-02-23 18:24:38.878 debug (20304) tv/getCurrentChannel: {"returnValue":false,"errorCode":-1000,"errorText":"internal error"} lgtv.0 2020-02-23 18:24:38.876 debug (20304) getSystemInfo: {"returnValue":true,"features":{"3d":false,"dvr":true},"receiverType":"dvb","modelName":"49UJ635V-ZF"} lgtv.0 2020-02-23 18:24:38.873 debug (20304) audio/getSoundOutput: {"soundOutput":"tv_external_speaker","subscribed":true} lgtv.0 2020-02-23 18:24:38.865 debug (20304) Service list: {"returnValue":true,"services":[{"name":"api","version":1},{"name":"audio","version":1},{"name":"config","version":1},{"name":"media.controls","version":1},{"name":"media.viewer" lgtv.0 2020-02-23 18:24:38.841 debug (20304) getCurrentSWInformation: {"returnValue":true,"product_name":"webOSTV 3.5","model_name":"HE_DTV_W17P_AFADABAA","sw_type":"FIRMWARE","major_ver":"05","minor_ver":"80.50","country":"AT","country_ lgtv.0 2020-02-23 18:24:38.804 debug (20304) audio/getVolume: {"returnValue":true,"volumeMax":100,"muted":false,"scenario":"mastervolume_tv_speaker","subscribed":true,"volume":10,"action":"requested","active":false,"changed":["muted","vo lgtv.0 2020-02-23 18:24:38.801 debug (20304) cur app is com.webos.app.hdmi1 lgtv.0 2020-02-23 18:24:38.800 debug (20304) DEBUGGING getForegroundAppInfo: {"appId":"com.webos.app.hdmi1","subscribed":true,"returnValue":true,"windowId":"","processId":""} lgtv.0 2020-02-23 18:24:38.674 debug (20304) WebOS TV Connected lgtv.0 2020-02-23 18:24:38.468 debug (20304) Connecting to WebOS TV: ws://192.168.2.15:3000 lgtv.0 2020-02-23 18:24:38.448 debug (20304) adapter.config = {"ip":"192.168.2.15","mac":"","timeout":"5000","power":true} lgtv.0 2020-02-23 18:24:38.446 info (20304) Ready. Configured WebOS TV IP: 192.168.2.15 lgtv.0 2020-02-23 18:24:38.395 info (20304) starting. Version 1.1.5 in /opt/iobroker/node_modules/iobroker.lgtv, node: v10.19.0 lgtv.0 2020-02-23 18:19:20.215 info (17230) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason lgtv.0 2020-02-23 18:19:20.213 info (17230) terminating lgtv.0 2020-02-23 18:19:20.207 info (17230) Got terminate signal TERMINATE_YOURSELF
-
Hmmm, dass habe ich mir fast gedacht, dass ich da noch kein geeignetes Mittel gefunden habe, wann gepollt werden soll. Ich komme nachher nochmal mit einer neuen Version
-
So,
ich habe nochmal umgebaut. Es funktioniert jetzt nach folgendem Prinzip:
Wenn der Adapter per getForegroundAppInfo ein Applikation bekommt und der TV vorher aus war, also der TV quasi eingeschaltet wurde (oder der Adapter bei laufendem TV gestartet wird) wird nach 1 Minute die connection neu aufgebaut. Das mache ich, weil ich es schon mal geschafft habe, den TV mit rumgezappe in Aufnahmen, livetv und mediatheken soweit zu bringen, dass er den aktuellen channel nicht mehr gemeldet hat. Daher starte ich die connection einfach neu und die subscriptions werden dadurch auch wieder neu gesetzt.
Nach dieser erneuteten connection wird dann alle 60 sekunden die Zeit vom TV abgefragt. Wenn der TV dann irgendwann nicht mehr antwortet, wird beim Adapter der TV als off gemeldet.
Meldet der TV sich aber korrekt mit einer einer leeren appId ab, wird diese 60 sekündige Pollen danach nicht mehr gemacht(bis zum nächsten Adapterstart). Eine Alternative wäre, dass der Benutzer das Pollen im Adapter einstellen muss.@StefanMc bitte teste jetzt nochmal und lassen den TV aber mindestens 2 Minuten laufen, schalte dann mal für eine Minute oder so aus und schalte wieder ein. Dann lass ihn nochmal min 2 minuten laufen und poste das Log nochmal, bitte
-
Moin,
hatte gestern deine letzte Version installiert vom Git.
Der Adapter zeigt weiter Geld , wenn der TV aus ist.
cu Deta
-
ich schau mal mit druff... bei mir restarte ich den Adapter bis dato alle 2 Stunden..
-
@deta kannst du mal ein debug Log Posten, bitte
-
@arteck warum startest du den adapter alle 2 Stunden neu?
-
@dirkhe ich bekomme ein Timeout wenn der Fernseher im Standby geht (ist im WLAN).. der Adapter verliert die Verbindung und danach wenn der Fernseher wieder an ist kann ich den Fernseher über den Adapter nicht mehr erreichen..
bei neustart verbindet der sich neu -
@arteck versuch mal das QuickStart+ in den Einstellungen zu aktivieren
-
@arteck der Adapter, bzw. Die lgtv2 Lib versucht aber bei einem timeout sich alle 5 sec zu reconnecten. Wenn der Adapter sich neustartet, das gleiche.
Es sei denn, dass er irgendwann aufgibt..
Auch hier wäre ein debug Log hilfreich -
@dirkhe sagte in lgtv Adapter zur Steuerung von LG WebOS SmartTVs:
einen PR gestellt,den @SchuetzeSchulz dann gemergt hat. Wenn dann aber jetzt Probleme damit auftreten, fühle ich mich jedenfalls verantwortlich dafür und versuche das zu fixen.
Hier nochmal vielen Dank für die aktive Mithilfe.
Sobald Du einen PR erstellst werde ich den selbstverständlich mergen.
In der Readme hast Du Dich hoffentlich auch verewigt? -
@SchuetzeSchulz ich denke, den ein oder anderen test brauchen wir noch. Das Problem ist ja, dass die Geräte unterschiedlich reagieren, darum müssen halt mehrere Leute testen. Ich melde mich dann
-
@dirkhe sagte in lgtv Adapter zur Steuerung von LG WebOS SmartTVs:
@SchuetzeSchulz ich denke, den ein oder anderen test brauchen wir noch. Das Problem ist ja, dass die Geräte unterschiedlich reagieren, darum müssen halt mehrere Leute testen. Ich melde mich dann
Ok, ich teste mal.
lgtv.0 2020-02-24 14:05:30.328 debug (19312) TV is off lgtv.0 2020-02-24 14:05:29.827 debug (19312) DEBUGGING getForegroundAppInfo: {"subscribed":true,"appId":"","returnValue":true,"windowId":"","processId":""} lgtv.0 2020-02-24 14:04:47.486 debug (19312) system.adapter.admin.0: logging true lgtv.0 2020-02-24 14:04:40.093 debug (19312) check TV connection: ok lgtv.0 2020-02-24 14:03:40.094 debug (19312) check TV connection: ok lgtv.0 2020-02-24 14:02:40.900 debug (19312) getCurrentSWInformation: {"returnValue":true,"product_name":"webOSTV 4.0","model_name":"HE_DTV_W18A_AFADABAA","sw_type":"FIRMWARE","major_ver":"05","minor_ver":"10.40","country":"AT","country lgtv.0 2020-02-24 14:02:40.819 debug (19312) tv/getCurrentChannel: {"subscribed":true,"channelId":"3_68_9_10_11118_20004_1","physicalNumber":68,"isScrambled":true,"channelTypeName":"Cable Digital TV","isLocked":false,"dualChannel":{"dua lgtv.0 2020-02-24 14:02:40.819 debug (19312) getSystemInfo: {"returnValue":true,"features":{"3d":false,"dvr":true},"receiverType":"dvb","modelName":"43UK6300LLB","programMode":"true"} lgtv.0 2020-02-24 14:02:40.818 debug (19312) audio/getSoundOutput: {"soundOutput":"tv_speaker","subscribed":true} lgtv.0 2020-02-24 14:02:40.810 debug (19312) Service list: {"returnValue":true,"services":[{"name":"api","version":1},{"name":"audio","version":1},{"name":"config","version":1},{"name":"externalpq","version":1},{"name":"media.controls", lgtv.0 2020-02-24 14:02:40.758 debug (19312) audio/getVolume: {"returnValue":true,"volumeMax":100,"ringtonewithvibration":true,"scenario":"mastervolume_tv_speaker","muted":false,"hac":false,"subscribed":true,"volume":10,"action":"reques lgtv.0 2020-02-24 14:02:40.746 debug (19312) cur app is com.webos.app.livetv lgtv.0 2020-02-24 14:02:40.746 debug (19312) DEBUGGING getForegroundAppInfo: {"appId":"com.webos.app.livetv","subscribed":true,"returnValue":true,"windowId":"","processId":""} lgtv.0 2020-02-24 14:02:40.640 debug (19312) WebOS TV Connected lgtv.0 2020-02-24 14:02:40.548 debug (19312) Connecting to WebOS TV: ws://192.168.178.41:3000 lgtv.0 2020-02-24 14:02:40.068 debug (19312) Connection closed: 1000 lgtv.0 2020-02-24 14:02:14.192 debug (19312) system.adapter.admin.0: logging false lgtv.0 2020-02-24 14:01:40.182 debug (19312) getCurrentSWInformation: {"returnValue":true,"product_name":"webOSTV 4.0","model_name":"HE_DTV_W18A_AFADABAA","sw_type":"FIRMWARE","major_ver":"05","minor_ver":"10.40","country":"AT","country lgtv.0 2020-02-24 14:01:40.083 debug (19312) tv/getCurrentChannel: {"subscribed":true,"channelId":"3_68_9_10_11118_20004_1","physicalNumber":68,"isScrambled":true,"channelTypeName":"Cable Digital TV","isLocked":false,"dualChannel":{"dua lgtv.0 2020-02-24 14:01:40.081 debug (19312) getSystemInfo: {"returnValue":true,"features":{"3d":false,"dvr":true},"receiverType":"dvb","modelName":"43UK6300LLB","programMode":"true"} lgtv.0 2020-02-24 14:01:40.081 debug (19312) audio/getSoundOutput: {"soundOutput":"tv_speaker","subscribed":true} lgtv.0 2020-02-24 14:01:40.052 debug (19312) Service list: {"returnValue":true,"services":[{"name":"api","version":1},{"name":"audio","version":1},{"name":"config","version":1},{"name":"externalpq","version":1},{"name":"media.controls", lgtv.0 2020-02-24 14:01:40.051 debug (19312) renew connection in one minute for stable subscriptions... lgtv.0 2020-02-24 14:01:40.036 debug (19312) cur app is com.webos.app.livetv lgtv.0 2020-02-24 14:01:40.036 debug (19312) DEBUGGING getForegroundAppInfo: {"appId":"com.webos.app.livetv","subscribed":true,"returnValue":true,"windowId":"","processId":""} lgtv.0 2020-02-24 14:01:39.933 debug (19312) audio/getVolume: {"returnValue":true,"volumeMax":100,"ringtonewithvibration":true,"scenario":"mastervolume_tv_speaker","muted":false,"hac":false,"subscribed":true,"volume":10,"action":"reques lgtv.0 2020-02-24 14:01:39.873 debug (19312) WebOS TV Connected lgtv.0 2020-02-24 14:01:39.769 debug (19312) Connecting to WebOS TV: ws://192.168.178.41:3000 lgtv.0 2020-02-24 14:01:23.757 debug (19312) TV is off lgtv.0 2020-02-24 14:01:13.755 debug (19312) Connecting to WebOS TV: ws://192.168.178.41:3000 lgtv.0 2020-02-24 14:01:08.751 debug (19312) Error on connecting or sending command to WebOS TV: Error: connect ETIMEDOUT 192.168.178.41:3000 lgtv.0 2020-02-24 14:00:57.732 debug (19312) TV is off lgtv.0 2020-02-24 14:00:56.509 debug (19312) system.adapter.admin.0: logging true lgtv.0 2020-02-24 14:00:47.726 debug (19312) Connecting to WebOS TV: ws://192.168.178.41:3000 lgtv.0 2020-02-24 14:00:47.716 debug (19312) adapter.config = {"ip":"192.168.178.41","timeout":"15000","interval":"5000","mac":"20:17:42:96:4B:BA","power":true} lgtv.0 2020-02-24 14:00:47.716 info (19312) Ready. Configured WebOS TV IP: 192.168.178.41 lgtv.0 2020-02-24 14:00:47.697 info (19312) starting. Version 1.1.5 in C:/Program Files/iobroker/Test/node_modules/iobroker.lgtv, node: v10.16.3 lgtv.0 2020-02-24 14:00:47.502 debug (19312) statesDB connected lgtv.0 2020-02-24 14:00:47.502 debug (19312) States connected to redis: 127.0.0.1:9000 lgtv.0 2020-02-24 14:00:47.494 debug (19312) States create System PubSub Client lgtv.0 2020-02-24 14:00:47.493 debug (19312) States create User PubSub Client lgtv.0 2020-02-24 14:00:47.490 debug (19312) Redis States: Use Redis connection: 127.0.0.1:9000 lgtv.0 2020-02-24 14:00:47.489 debug (19312) objectDB connected lgtv.0 2020-02-24 14:00:47.487 debug (19312) Objects connected to redis: 127.0.0.1:9013 lgtv.0 2020-02-24 14:00:47.477 debug (19312) Objects client initialize lua scripts lgtv.0 2020-02-24 14:00:47.477 debug (19312) Objects create User PubSub Client lgtv.0 2020-02-24 14:00:47.476 debug (19312) Objects create System PubSub Client lgtv.0 2020-02-24 14:00:47.475 debug (19312) Objects client ready ... initialize now lgtv.0 2020-02-24 14:00:47.461 debug (19312) Redis Objects: Use Redis connection: 127.0.0.1:9013 lgtv.0 2020-02-24 14:00:44.302 info (3884) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason lgtv.0 2020-02-24 14:00:44.301 info (3884) terminating lgtv.0 2020-02-24 14:00:44.300 info (3884) Got terminate signal TERMINATE_YOURSELF lgtv.0 2020-02-24 13:57:46.211 info (3884) Ready. Configured WebOS TV IP: 192.168.178.41 lgtv.0 2020-02-24 13:57:45.909 info (3884) starting. Version 1.1.5 in C:/Program Files/iobroker/Test/node_modules/iobroker.lgtv, node: v10.16.3 lgtv.0 2020-02-24 13:57:41.929 info (19240) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason lgtv.0 2020-02-24 13:57:41.928 info (19240) terminating lgtv.0 2020-02-24 13:57:41.927 info (19240) Got terminate signal TERMINATE_YOURSELF lgtv.0 2020-02-24 13:57:02.007 info (19240) Ready. Configured WebOS TV IP: 192.168.178.41 lgtv.0 2020-02-24 13:57:01.942 info (19240) starting. Version 1.1.5 in C:/Program Files/iobroker/Test/node_modules/iobroker.lgtv, node: v10.16.3 lgtv.0 2020-02-24 13:56:54.640 info (10656) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason lgtv.0 2020-02-24 13:56:54.639 info (10656) terminating lgtv.0 2020-02-24 13:56:54.632 info (10656) Got terminate signal TERMINATE_YOURSELF
Adapter zeigt Grün an wenn er ausgeschaltet wurde.
Was soll ich testen, habe nicht alles durchgelesen. -
Im Prinzip nur, ob er alles tut, so wie erwartet. Ich habe gerade nochmal eine neue Version hochgeladen (1.1.5-RC5), in der ich einen kleinen Fehler behoben habe. Wenn du deinen TV jetzt zb. wieder anmachst, fängt er nach 2 Minuten wieder an zu pollen (check TV connection: ok). Das sollte nach bei dir eigentlich nicht mehr gemacht werden, weil bei dir in Zeile 3 und 2 der TV sich sauber abgemeldet hat und der TV im Adapter auch aus ist. Allerdings kann er in deiner Version noch vorkommen, dass er dass nicht immer macht (asynchrone Laufzeiten). Das habe ich jetzt nochmal gefixt.
Also wenn Adapter gestartet, kommt nach 1 Minute das reconnecting, dann nach 1 Minute minütlich check TV connection: ok. Wenn der TV aus gemacht wurde und wieder an, kommt nach 1 Minute wieder das reconnecting und dann kein Polling mehr.
Bei @StefanMc sollte das Polling immer kommen. -
lgtv.0 2020-02-24 16:36:30.756 debug (14500) getCurrentSWInformation: {"returnValue":true,"product_name":"webOSTV 4.0","model_name":"HE_DTV_W18A_AFADABAA","sw_type":"FIRMWARE","major_ver":"05","minor_ver":"10.40","country":"AT","country_ lgtv.0 2020-02-24 16:36:30.693 debug (14500) tv/getCurrentChannel: {"subscribed":true,"channelId":"3_67_1_1_1118_13001_333","physicalNumber":67,"isScrambled":false,"channelTypeName":"Cable Digital TV","isLocked":false,"dualChannel":{"dua lgtv.0 2020-02-24 16:36:30.691 debug (14500) getSystemInfo: {"returnValue":true,"features":{"3d":false,"dvr":true},"receiverType":"dvb","modelName":"43UK6300LLB","programMode":"true"} lgtv.0 2020-02-24 16:36:30.690 debug (14500) audio/getSoundOutput: {"soundOutput":"tv_speaker","subscribed":true} lgtv.0 2020-02-24 16:36:30.682 debug (14500) Service list: {"returnValue":true,"services":[{"name":"api","version":1},{"name":"audio","version":1},{"name":"config","version":1},{"name":"externalpq","version":1},{"name":"media.controls"," lgtv.0 2020-02-24 16:36:30.629 debug (14500) audio/getVolume: {"returnValue":true,"volumeMax":100,"ringtonewithvibration":true,"scenario":"mastervolume_tv_speaker","muted":false,"hac":false,"subscribed":true,"volume":12,"action":"request lgtv.0 2020-02-24 16:36:30.607 debug (14500) cur app is com.webos.app.livetv lgtv.0 2020-02-24 16:36:30.607 debug (14500) DEBUGGING getForegroundAppInfo: {"appId":"com.webos.app.livetv","subscribed":true,"returnValue":true,"windowId":"","processId":""} lgtv.0 2020-02-24 16:36:30.486 debug (14500) WebOS TV Connected lgtv.0 2020-02-24 16:36:30.370 debug (14500) Connecting to WebOS TV: ws://192.168.178.41:3000 lgtv.0 2020-02-24 16:36:29.899 debug (14500) Connection closed: 1000 lgtv.0 2020-02-24 16:35:33.288 debug (14500) tv/getCurrentChannel: {"channelId":"3_67_1_1_1118_13001_333","dualChannel":{"dualChannelId":null,"dualChannelTypeName":null,"dualChannelTypeId":null,"dualChannelNumber":null},"isScrambled":fal lgtv.0 2020-02-24 16:35:31.185 debug (14500) tv/getCurrentChannel: {"channelId":"3_67_1_1_1118_13001_333","dualChannel":{"dualChannelId":null,"dualChannelTypeName":null,"dualChannelTypeId":null,"dualChannelNumber":null},"isScrambled":fal lgtv.0 2020-02-24 16:35:29.867 debug (14500) renew connection in one minute for stable subscriptions... lgtv.0 2020-02-24 16:35:29.863 debug (14500) cur app is com.webos.app.livetv lgtv.0 2020-02-24 16:35:29.862 debug (14500) DEBUGGING getForegroundAppInfo: {"subscribed":true,"appId":"com.webos.app.livetv","returnValue":true,"windowId":"","processId":""} lgtv.0 2020-02-24 16:35:29.810 debug (14500) audio/getSoundOutput: {"soundOutput":"tv_speaker","subscribed":true} lgtv.0 2020-02-24 16:35:15.014 debug (14500) TV is off lgtv.0 2020-02-24 16:35:14.512 debug (14500) DEBUGGING getForegroundAppInfo: {"subscribed":true,"appId":"","returnValue":true,"windowId":"","processId":""} lgtv.0 2020-02-24 16:34:53.310 debug (14500) check TV connection: ok lgtv.0 2020-02-24 16:33:53.297 debug (14500) check TV connection: ok lgtv.0 2020-02-24 16:32:54.122 debug (14500) getCurrentSWInformation: {"returnValue":true,"product_name":"webOSTV 4.0","model_name":"HE_DTV_W18A_AFADABAA","sw_type":"FIRMWARE","major_ver":"05","minor_ver":"10.40","country":"AT","country_ lgtv.0 2020-02-24 16:32:54.044 debug (14500) tv/getCurrentChannel: {"subscribed":true,"channelId":"3_67_1_1_1118_13001_333","physicalNumber":67,"isScrambled":false,"channelTypeName":"Cable Digital TV","isLocked":false,"dualChannel":{"dua lgtv.0 2020-02-24 16:32:54.036 debug (14500) audio/getSoundOutput: {"soundOutput":"tv_speaker","subscribed":true} lgtv.0 2020-02-24 16:32:54.035 debug (14500) getSystemInfo: {"returnValue":true,"features":{"3d":false,"dvr":true},"receiverType":"dvb","modelName":"43UK6300LLB","programMode":"true"} lgtv.0 2020-02-24 16:32:54.021 debug (14500) Service list: {"returnValue":true,"services":[{"name":"api","version":1},{"name":"audio","version":1},{"name":"config","version":1},{"name":"externalpq","version":1},{"name":"media.controls"," lgtv.0 2020-02-24 16:32:53.971 debug (14500) audio/getVolume: {"returnValue":true,"volumeMax":100,"ringtonewithvibration":true,"scenario":"mastervolume_tv_speaker","muted":false,"hac":false,"subscribed":true,"volume":12,"action":"request lgtv.0 2020-02-24 16:32:53.957 debug (14500) cur app is com.webos.app.livetv lgtv.0 2020-02-24 16:32:53.957 debug (14500) DEBUGGING getForegroundAppInfo: {"appId":"com.webos.app.livetv","subscribed":true,"returnValue":true,"windowId":"","processId":""} lgtv.0 2020-02-24 16:32:53.848 debug (14500) WebOS TV Connected lgtv.0 2020-02-24 16:32:53.746 debug (14500) Connecting to WebOS TV: ws://192.168.178.41:3000 lgtv.0 2020-02-24 16:32:53.279 debug (14500) Connection closed: 1000 lgtv.0 2020-02-24 16:32:04.273 debug (14500) system.adapter.admin.0: logging true lgtv.0 2020-02-24 16:31:53.340 debug (14500) getCurrentSWInformation: {"returnValue":true,"product_name":"webOSTV 4.0","model_name":"HE_DTV_W18A_AFADABAA","sw_type":"FIRMWARE","major_ver":"05","minor_ver":"10.40","country":"AT","country lgtv.0 2020-02-24 16:31:53.235 debug (14500) renew connection in one minute for stable subscriptions... lgtv.0 2020-02-24 16:31:53.212 debug (14500) tv/getCurrentChannel: {"subscribed":true,"channelId":"3_67_1_1_1118_13001_333","physicalNumber":67,"isScrambled":false,"channelTypeName":"Cable Digital TV","isLocked":false,"dualChannel":{"du lgtv.0 2020-02-24 16:31:53.211 debug (14500) getSystemInfo: {"returnValue":true,"features":{"3d":false,"dvr":true},"receiverType":"dvb","modelName":"43UK6300LLB","programMode":"true"} lgtv.0 2020-02-24 16:31:53.211 debug (14500) audio/getSoundOutput: {"soundOutput":"tv_speaker","subscribed":true} lgtv.0 2020-02-24 16:31:53.203 debug (14500) Service list: {"returnValue":true,"services":[{"name":"api","version":1},{"name":"audio","version":1},{"name":"config","version":1},{"name":"externalpq","version":1},{"name":"media.controls", lgtv.0 2020-02-24 16:31:53.194 debug (14500) cur app is com.webos.app.livetv lgtv.0 2020-02-24 16:31:53.194 debug (14500) DEBUGGING getForegroundAppInfo: {"appId":"com.webos.app.livetv","subscribed":true,"returnValue":true,"windowId":"","processId":""} lgtv.0 2020-02-24 16:31:53.129 debug (14500) audio/getVolume: {"returnValue":true,"volumeMax":100,"ringtonewithvibration":true,"scenario":"mastervolume_tv_speaker","muted":false,"hac":false,"subscribed":true,"volume":12,"action":"reques lgtv.0 2020-02-24 16:31:53.098 debug (14500) WebOS TV Connected lgtv.0 2020-02-24 16:31:53.043 debug (14500) Connecting to WebOS TV: ws://192.168.178.41:3000 lgtv.0 2020-02-24 16:31:53.032 debug (14500) adapter.config = {"ip":"192.168.178.41","timeout":"15000","interval":"5000","mac":"20:17:42:96:4B:BA","power":true} lgtv.0 2020-02-24 16:31:53.031 info (14500) Ready. Configured WebOS TV IP: 192.168.178.41 lgtv.0 2020-02-24 16:31:52.990 info (14500) starting. Version 1.1.5 in C:/Program Files/iobroker/Test/node_modules/iobroker.lgtv, node: v10.16.3 lgtv.0 2020-02-24 16:31:52.780 debug (14500) statesDB connected lgtv.0 2020-02-24 16:31:52.779 debug (14500) States connected to redis: 127.0.0.1:9000 lgtv.0 2020-02-24 16:31:52.769 debug (14500) States create System PubSub Client lgtv.0 2020-02-24 16:31:52.768 debug (14500) States create User PubSub Client lgtv.0 2020-02-24 16:31:52.763 debug (14500) Redis States: Use Redis connection: 127.0.0.1:9000 lgtv.0 2020-02-24 16:31:52.761 debug (14500) objectDB connected lgtv.0 2020-02-24 16:31:52.758 debug (14500) Objects connected to redis: 127.0.0.1:9013 lgtv.0 2020-02-24 16:31:52.740 debug (14500) Objects client initialize lua scripts lgtv.0 2020-02-24 16:31:52.740 debug (14500) Objects create User PubSub Client lgtv.0 2020-02-24 16:31:52.739 debug (14500) Objects create System PubSub Client lgtv.0 2020-02-24 16:31:52.729 debug (14500) Objects client ready ... initialize now lgtv.0 2020-02-24 16:31:52.687 debug (14500) Redis Objects: Use Redis connection: 127.0.0.1:9013 lgtv.0 2020-02-24 16:31:49.649 info (16148) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason lgtv.0 2020-02-24 16:31:49.648 info (16148) terminating lgtv.0 2020-02-24 16:31:49.647 info (16148) Got terminate signal TERMINATE_YOURSELF lgtv.0 2020-02-24 16:31:44.905 info (16148) Ready. Configured WebOS TV IP: 192.168.178.41 lgtv.0 2020-02-24 16:31:44.875 info (16148) starting. Version 1.1.5 in C:/Program Files/iobroker/Test/node_modules/iobroker.lgtv, node: v10.16.3 lgtv.0 2020-02-24 16:31:41.431 info (1772) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason lgtv.0 2020-02-24 16:31:41.430 info (1772) terminating lgtv.0 2020-02-24 16:31:41.429 info (1772) Got terminate signal TERMINATE_YOURSELF lgtv.0 2020-02-24 16:31:12.419 info (1772) Ready. Configured WebOS TV IP: 192.168.178.41 lgtv.0 2020-02-24 16:31:12.384 info (1772) starting. Version 1.1.5 in C:/Program Files/iobroker/Test/node_modules/iobroker.lgtv, node: v10.16.3 lgtv.0 2020-02-24 16:31:06.757 info (14708) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason lgtv.0 2020-02-24 16:31:06.757 info (14708) terminating lgtv.0 2020-02-24 16:31:06.750 info (14708) Got terminate signal TERMINATE_YOURSELF
-
@sigi234 Wenn bei dir jetzt kein check TV connection: ok mehr kommt, ist alles Top, Danke fürs Testen
-
@StefanMc QuickStart+ hab ich die ganze Zeit.... im LOG steht nix..
wieder Gelb
der Fernseher ist aus.. währe also OK..
der Fernseher ist an ... wieder Grün..ich beobachte das mal
-
@dirkhe sagte in lgtv Adapter zur Steuerung von LG WebOS SmartTVs:
@sigi234 Wenn bei dir jetzt kein check TV connection: ok mehr kommt, ist alles Top, Danke fürs Testen
Kommt nicht. Alles getestet.
Was mir auffällt ist wenn ich auf Mute gehe ist der Ton aus, klicke ich wieder drauf bleibt er noch stumm. Auch eine Veränderung der Lautstärke geht nicht. Erst wenn ich mit der FB auf Mute drücke geht es wieder.Eventuell falsches Widget oder DP?
-
@arteck Hmmm, eigentlich hatte ich das mit gelb gefixt. Der setzt die info.connection jetzt nur noch auf false, wenn die connection echt weg ist. Die function wird eigentlich nur noch aufgerufen, wenn die Connection entweder vom TV geschlossen wird oder wenn er neu versucht zu connecten..
Kannst du nochmal die aktuelle Version installieren, bitte. -
@sigi234 Bei mir geht es, habe es aber direkt in den Objekten gemacht. Was meiner Meinung nach ein bisschen unglüclkich ist, die Volume up/down und manch andere States auch sind ja eigentlich Buttons, sprich sind zwar auch vom type boolean, aber man kann die ja nicht auf false setzten...
Was steht denn beidir im Log, wenn du klickst?State change "states.volumeDown" - VALUE: true 2020-02-24 16:56:14.541 - debug: lgtv.0 (15498) Sending volumeDown true command to WebOS TV: 192.168.1.186 2020-02-24 16:56:14.553 - debug: lgtv.0 (15498) audio/getVolume: {"changed":["muted"],"returnValue":true,"volumeMax":100,"scenario":"mastervolume_tv_speaker","muted":false,"volume":12,"caller":"secondscreen.client","action":"changed","supportvolume":true,"active":false} State change "states.mute" - VALUE: true 2020-02-24 16:55:11.451 - debug: lgtv.0 (15498) Sending mute true command to WebOS TV: 192.168.1.186 2020-02-24 16:55:11.497 - debug: lgtv.0 (15498) audio/getVolume: {"changed":["muted"],"returnValue":true,"volumeMax":100,"scenario":"mastervolume_tv_speaker","muted":true,"volume":12,"caller":"com.webos.service.apiadapter","action":"changed","supportvolume":true,"active":false} 2020-02-24 16:55:17.383 - debug: lgtv.0 (15498) State change "states.mute" - VALUE: false 2020-02-24 16:55:17.383 - debug: lgtv.0 (15498) Sending mute false command to WebOS TV: 192.168.1.186 2020-02-24 16:55:17.392 - debug: lgtv.0 (15498) audio/getVolume: {"changed":["muted"],"returnValue":true,"volumeMax":100,"scenario":"mastervolume_tv_speaker","muted":false,"volume":12,"caller":"com.webos.service.apiadapter","action":"changed","supportvolume":true,"active":false}