Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lgwebos] Error in Volume subscriptions on 2020 LG webOS TVs #9000

Closed
sprehn opened this issue Nov 10, 2020 · 1 comment
Closed

[lgwebos] Error in Volume subscriptions on 2020 LG webOS TVs #9000

sprehn opened this issue Nov 10, 2020 · 1 comment
Assignees
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@sprehn
Copy link
Contributor

sprehn commented Nov 10, 2020

On 2020 webOS LGTVs user @shmilgan reported that an error.

2020-11-08 19:42:39.470 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":2,"payload":{"volumeStatus":{"activeStatus":true,"adjustVolume":true,"maxVolume":100,"muteStatus":false,"volume":11,"soundOutput":"tv_speaker","cause":"volumeUp"},"returnValue":true,"callerId":"com.webos.platformstarfish"}} - in response to request: ServiceCommand [type=subscribe, target=ssap://audio/getVolume, payload=null] - Error Message: null

Expected Behavior

Changes in volume via openhab or TV's remote should be correctly reflected on the bindings volume channel.

Current Behavior

No Update and Warning in logs.

Possible Solution

The volume subscription response format has changed. "volume" is now encapsulated in "volumeStatus".

{
   "type":"response",
   "id":2,
   "payload":{
      "volumeStatus":{
         "activeStatus":true,
         "adjustVolume":true,
         "maxVolume":100,
         "muteStatus":false,
         "volume":11,
         "soundOutput":"tv_speaker",
         "cause":"volumeUp"
      },
      "returnValue":true,
      "callerId":"com.webos.platformstarfish"
   }
} 

We need to adjust the response handler LGWebOSTVSocket:subscribeVolume and getVolume to handle both situations.

Steps to Reproduce (for Bugs)

  1. Change volume on a 2020 LG WebOS TV paired with OH
@sprehn sprehn added the bug An unexpected problem or unintended behavior of an add-on label Nov 10, 2020
@sprehn sprehn self-assigned this Nov 10, 2020
@gilbertococchi
Copy link

+1 I was able to notice the same on LG 2020 55GX6LA:

2020-11-15 21:33:35.391 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":699,"payload":{"volumeStatus":{"cause":"volumeDown","mode":"normal","adjustVolume":true,"activeStatus":true,"muteStatus":false,"volume":20,"soundOutput":"tv_speaker","maxVolume":100},"returnValue":true,"callerId":"com.webos.platformstarfish"}} - in response to request: ServiceCommand [type=subscribe, target=ssap://audio/getVolume, payload=null] - Error Message: null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

No branches or pull requests

2 participants