tavicu / homebridge-samsung-tizen

Homebridge plugin for Samsung TV's with Tizen OS
MIT License
638 stars 86 forks source link

New: Added support for Samsung vendor specific media input sources (USB-C & Display Port) #677

Open petarhristov94 opened 2 months ago

petarhristov94 commented 2 months ago

Description

I've added the highly requested feature of supporting Samsung vendor specific inputs, like the ones available on their OLED smart monitor lineup - USB-C and Display Port (https://github.com/tavicu/homebridge-samsung-tizen/issues/644, https://github.com/tavicu/homebridge-samsung-tizen/issues/632, https://github.com/tavicu/homebridge-samsung-tizen/issues/569). The two new inputs are now available under the input dropdown, as well as under the switch dropdown. The request for switching the new inputs utilizes the samsungvd.mediaInputSource, which also supports the traditional inputs. Should the request fail, it gracefully falls back to the original capability of mediaInputSource used in traditional TVs and leaves a debug level message in the console.

Furthermore, I've renamed the field MAC Address to Network MAC Address, so that it's clear, that the Network (Ethernet/WLAN/Wi-Fi) address is the one relevant. Not to confuse it with the Bluetooth address for example.

I've tested the added feature on my Samsung OLED G8 and I can confirm the input switching works quite well.

Contribution

I'd be honored to be added to the credits section for this contribution! Of course, no worries at all if you prefer not to. Regardless, I'm happy to have been able to help out. Cheers! 😉

Screenshots

Inputs Dropdown

image

Switch Dropdown

image

HomeKit

Screenshot 2024-04-25 at 22 04 42

Network MAC Address

image