Hi @sprehn
I’m trying to implement a remote control widget for HABPanel to simulate (some of) the functionality of the physical remote. This is mainly to allow navigation and selection within web applications (e.g. Netflix, Amazon, etc.)
My configuration:
openhabian 2.5.0.SNAPSHOT (build 1760)
TV model#: UJ657A
WebOS: 3.8.0.61206
So, I created a dummy “button” item and rules to invoke the sendButton() action. The UP, DOWN, LEFT, RIGHT and HOME buttons all work as expected but OK, ENTER, DELETE and BACK don’t seem to have any effect.
After enabling debug logging, I’m seeing that the OK button is sent as a mouse click instead of a button:
2019-11-20 05:33:53.429 [ome.event.ItemCommandEvent] - Item 'LG_TV0_Button' received command OK
2019-11-20 05:33:53.435 [vent.ItemStateChangedEvent] - LG_TV0_Button changed from LEFT to OK
2019-11-20 05:33:53.446 [DEBUG] [nternal.handler.LGWebOSTVMouseSocket] - Connecting to: ws://192.168.10.124:3000/resources/d2a586b1363ebbab58156f34e4c4e917f463aba9/netinput.pointer.sock
2019-11-20 05:33:53.459 [DEBUG] [nternal.handler.LGWebOSTVMouseSocket] - WebSocket Connected to: /192.168.10.124
2019-11-20 05:33:53.461 [DEBUG] [nternal.handler.LGWebOSTVMouseSocket] - Message [out]: type:click
I had kind of assumed that the sendButton() action was a (possibly partial?) implementation of an IR Remote control command set. Is that not the case?
Ideally, I would like to extend the button action and implement the full IR Remote functionality - is this even possible and, if so, is there any documentation available from LG dev that you could point me to?
Thanks in advance!
Bob