Closed pipiche38 closed 5 years ago
Do you have a 2011 model LG TV? It does not work with 2012 or newer models. Can you establish a connection via the android app? (https://play.google.com/store/apps/details?id=com.clipcomm.WiFiRemocon) Finally can you ping the tv from your system?
Yes it is a old model not WebOS based. Yes ping works. When I use the iOS LGRemote command I can see the code on the TV .
I'm on Domoticz Beta
If you have the code, you can configure this in the plugin, which is neede to connect.
This is what I did, but unfortunatly doesn't work. I'll try again with your latest code.
I setup to use ICMP and unfortunatly it looks like there is an issue of access right !
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.341 Status: (Télé) Entering work loop.
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.343 Status: (Télé) Initialized version 1.0.6, author 'elgringo'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.360 (Télé) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.360 (Télé) onStart called
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.360 (Télé) Pushing 'PollIntervalDirective' on to queue
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.360 (Télé) Pinging with internal ICMP connection
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.361 (Télé) 'HardwareID':'31'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.361 (Télé) 'HomeFolder':'/var/lib/domoticz/plugins/Domoticz-LG/'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.361 (Télé) 'Version':'1.0.6'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.361 (Télé) 'Author':'elgringo'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.361 (Télé) 'Name':'Télé'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.361 (Télé) 'Address':'10.0.0.14'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.361 (Télé) 'Port':'8080'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.361 (Télé) 'Key':'LGtv'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.362 (Télé) 'Mode2':'30'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.362 (Télé) 'Mode3':'2'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.362 (Télé) 'Mode4':'865855'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.362 (Télé) 'Mode5':'1'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.362 (Télé) 'Mode6':'10'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.362 (Télé) 'DomoticzVersion':'4.9999'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.362 (Télé) 'DomoticzHash':'9e8ea729-modified'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.362 (Télé) 'DomoticzBuildTime':'2018-09-09 18:27:57'
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.363 (Télé) Device count: 9
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.363 (Télé) 512:Télé - Power, (n:1, s:On, Sgl:12, bl:255, img:106, typ:244, styp:73)
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.363 (Télé) 513:Télé - Volume up, (n:0, s:, Sgl:12, bl:255, img:110, typ:244, styp:73)
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.363 (Télé) 514:Télé - Volume down, (n:0, s:, Sgl:12, bl:255, img:109, typ:244, styp:73)
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.363 (Télé) 515:Télé - Channel up, (n:0, s:, Sgl:12, bl:255, img:105, typ:244, styp:73)
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.364 (Télé) 516:Télé - Channel down, (n:0, s:, Sgl:12, bl:255, img:104, typ:244, styp:73)
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.364 (Télé) 517:Télé - HDMI, (n:0, s:, Sgl:12, bl:255, img:111, typ:244, styp:73)
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.364 (Télé) 518:Télé - TV/Radio, (n:0, s:, Sgl:12, bl:255, img:107, typ:244, styp:73)
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.364 (Télé) 519:Télé - Mute, (n:0, s:, Sgl:12, bl:255, img:113, typ:244, styp:73)
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.364 (Télé) 520:Télé - Exit, (n:0, s:, Sgl:12, bl:255, img:108, typ:244, styp:73)
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.365 (Télé) Processing 'PollIntervalDirective' message
Sep 13 17:11:31 pi3 domoticz[8995]: 2018-09-13 17:11:31.365 (Télé) Heartbeat interval set to: 30.
Sep 13 17:11:41 pi3 domoticz[8995]: 2018-09-13 17:11:41.343 (Télé) Pushing 'onHeartbeatCallback' on to queue
Sep 13 17:11:41 pi3 domoticz[8995]: 2018-09-13 17:11:41.393 (Télé) Processing 'onHeartbeatCallback' message
Sep 13 17:11:41 pi3 domoticz[8995]: 2018-09-13 17:11:41.393 (Télé) Calling message handler 'onHeartbeat'.
Sep 13 17:11:41 pi3 domoticz[8995]: 2018-09-13 17:11:41.393 (Télé) onHeartbeat called
Sep 13 17:11:41 pi3 domoticz[8995]: 2018-09-13 17:11:41.394 (Télé) Pushing 'ProtocolDirective' on to queue
Sep 13 17:11:41 pi3 domoticz[8995]: 2018-09-13 17:11:41.394 (Télé) Pushing 'ListenDirective' on to queue
Sep 13 17:11:41 pi3 domoticz[8995]: 2018-09-13 17:11:41.394 (Télé) Processing 'ProtocolDirective' message
Sep 13 17:11:41 pi3 domoticz[8995]: 2018-09-13 17:11:41.394 (Télé) Protocol set to: 'ICMP'.
Sep 13 17:11:41 pi3 domoticz[8995]: 2018-09-13 17:11:41.394 (Télé) Processing 'ListenDirective' message
Sep 13 17:11:41 pi3 domoticz[8995]: 2018-09-13 17:11:41.394 (Télé) Transport set to: 'ICMP/IP', 10.0.0.14.
Sep 13 17:11:41 pi3 domoticz[8995]: 2018-09-13 17:11:41.395 (Télé) Pushing 'onConnectCallback' on to queue
Sep 13 17:11:41 pi3 domoticz[8995]: 2018-09-13 17:11:41.395 (Télé) Listen directive received, action initiation failed.
Sep 13 17:11:41 pi3 domoticz[8995]: 2018-09-13 17:11:41.395 (Télé) Processing 'onConnectCallback' message
Sep 13 17:11:41 pi3 domoticz[8995]: 2018-09-13 17:11:41.395 (Télé) Calling message handler 'onConnect'.
Sep 13 17:11:41 pi3 domoticz[8995]: 2018-09-13 17:11:41.395 Status: (Télé) Failed to connect (-1) to: 10.0.0.14: with error: open: Operation not permitted
Failed to connect (-1) to: 10.0.0.14: with error: open: Operation not permitted Something prevent the connection, which is why the plugin does not work.
The build in ICMP has issues; which have not been solved since I don't know how see also: http://www.domoticz.com/forum/viewtopic.php?f=65&t=23605&p=181661#p181661
Thanks Eric. I'll switch to the bash one, but could you clarify why you need sudo, as I'm not really confortable to give sudo access for a domoticz plugin
I think it will run without sudo as well; I needed it for arpping earlier
I updated the version without need for a ping. I also is able to show the channel name.
When updating. Delete all related devices first, allow adding new hardware from the settings menu and re add the plugin.
I'm trying to use your plugin on my environment but when enabling internal ICMP I got this error message