o-lukas / homebridge-smartthings-tv

This is a plugin for Homebridge. It offers some basic functions to control Samsung TVs using the SmartThings API.
https://www.npmjs.com/package/@o-lukas/homebridge-smartthings-tv
MIT License
33 stars 2 forks source link

Volume not showing correctly #53

Closed o-lukas closed 1 year ago

o-lukas commented 1 year ago

Describe The Bug: The volume showing in the Homebridge Config UI does not match the value of the TV.

To Reproduce:

  1. open accessories page
  2. set a volume using the volume slider
  3. change volume using normal TV remote

Expected behavior: Volume showing in Homebridge Config UI accessories page should match the volume of the TV.

o-lukas commented 1 year ago

SmartThings API always returns volume 0 and some strange old timestamp.

[4/1/2023, 3:28:08 PM] [smartthings-tv] [[TV] Samsung 6 Series (55)] Successfully get status of audioVolume : {
    "volume": {
        "value": 0,
        "unit": "%",
        "timestamp": "2023-01-29T09:36:16.652Z"
    }
}

Seems like an issue with the SmartThings API. Sadly there is no other capability for volume.

o-lukas commented 1 year ago

I opened a topic at SmartThings community forum. Hopefully anybody there can help...

o-lukas commented 1 year ago

It seems to be a common problem that some states are not updated correctly.

So issue will remain unsolved as there is no real solution other than caching the volume. Because the volume would not be updated when using the TV remote or any other device than this plugin caching does not really solve the problem.