-
Notifications
You must be signed in to change notification settings - Fork 58
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
Samsung G8 Monitor - DisplayPort as InputSource? #274
Comments
I suppose that Anyway I strongly suggest to not have both integration configured, because for sure they interfere with each other. |
Hi @ollo69 I have a smart monitor too. M5 version in my case. I believe the issue is that we cannot link our SmartThings account to this. |
Hi @ollo69 what a fast reply! Thanks. Yes, I can control the monitor from the SmartThings app in my phone. But unfortunately I cannot use the functionality in this module as I am unable to link it. I can use basic functionality such as on and off, or change from TV to HDMI. But not to select app source, or even HDMI1 or HDMI2. |
To understand if is possible to do something, you should try to connect to SmartThings with your token using a software like postman and report here available commands and syntax. If some specific command is available to detect additional source and select them, I could try to implement inside integration. |
I would love to help, but I am not an IT expert, and have never worked with APIs. I have made a quick search of Postman and the Smartthings API, but unfortunately I understand very little of it. |
Hi ollo, Thanks for helping out. I'll try to explain a bit further, but please bear with me since i'm pretty new to Smartthings. With Smartthings CLI i find the following 2 capabilities of interest (omitted the rest that's not interesting in this one):
For the default "mediaInputSource", it lists the following and you can see DisplayPort is missing:
For the samsungvd.mediaInputSource (which seems to use the same 'mediaInputSource' command but in a slight different way, it gives me the free option to input something:
If i enter "PC" or "Display Port" here, it works fine. Unfortunately, i'm not a scripter/programmer, but if there somehow would be a way to use the setInputSource that's being used in your Smartthings.py script (COMMAND_SET_SOURCE variable) the same way it would be used through the samsungvd.mediaInputSource capability (which in turn looks to me as it uses the same setInputSource command but in a different syntax), i think we would have the complete freedom to create our own Source list. Not sure if it would be helpful, but i think i'm able to dump the JSON or XML code that's being run with these commands. So if that could be helpful, please let me know. I think it's safe to say that this is just deficiency from the Smartthings API, but the possibility is there. |
Yes, it could help. Please attach it |
Sure, hopefully this is what you are looking for: mediaInputSource:
samsungvd.mediaInputSource:
|
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Reopen this adding FT label, I just do not have any time to take a look... |
Would be great to get the ability to switch to DP. I'd like to do it, too. My use case is that I'm switching a lot between my PC and my work laptop. Using the remote is pain so I plan to use an Ikea switch to do just that. Unfortunately I cannot do it yet. As @AfcaEric wrote it's possible via the SmartThings website. Maybe the attached screenshot from the SmartThings page is useful... |
I have the same issue but with USB-C port on my Samsung M7 Smart Monitor, where I am connecting my Macbook. So it will be cool to be able to switch inputs. HDMI port where I have my Xbox is working, but USB-C is not for some reason and under attributes it is always showing HDMI1 even if I have USB-C opened. |
Some useful info for those who has OLED G8 and wants to use it with HA:
I don't remember where I got ID_FOR_REMOTE from :( Surprisingly, I didn't manage to switch to USB using API despite USB being a valid MediaSource for both mediaInputSource and samsungvd.mediaInputSource. Anyway, it's enough to switch between Display Port / USB. The API call can be wrapped with https://www.home-assistant.io/integrations/rest_command/ My results: secrets.yaml
configuration.yaml
scripts I use
|
Based on information collected in this thread I released a new version that support the key code "ST_PC" via SmartThings. Please check a let me know if it works as expected. |
Switch to Display Port does not work for me with "ST_PC". It switches to HDMI1. Using |
Why |
Yes, I renamed it. After renaming to "PC" it still switches to HDMI1 and not DisplayPort. |
But after renaming did you try to change the input using |
Anyway I released a new version where I rewrite this command to be more generic. Tested my side and it work properly, I wait for yours feed-back. |
I works now, but only if I rename the source to e. g. "Spiele-PC". If it's the default name "PC" it still switches to HDMI1 and not DisplayPort. Thank you for your help! |
Thanks folks, I wasnt unable to figure out how to send this via API command, but I can confirm that using a script that sends the command 'ST_VD:PCdp' as a 'Remote: Send Command' to the entity works perfectly! just be sure to rename the displayport input to that first. I'm hoping the renamed input sticks on this new firmware, I had an issue of it always reverting last time I did this.. fingers crossed |
I figured out how to switch to USB-C directly on Samsung Odyssey G8 without using 'KEY_HDMI' which actually switches between inputs. Then in the source list configuration , I wrote |
This is what I was able to get to work in home assistant:
You can use
to get the supportedInputSourcesMap for your device and then use the id value to set the arguments in the call |
Hi, |
Hi👋 You also can open smart things first, then dev tools and refresh the page |
Thanks, I got it working! |
So i have this strange thing. I have a Samsung G8 Monitor. My PC is connected to the mini DisplayPort on the monitor.
Now, from the SmartThings webpage, i'm able to call the "samsungvd.mediaInputSource" command with a value of "PC" and it switches to the DisplayPort source. Calling the same command ("samsungvd.mediaInputSource") with the value of "Display Port" (mind the space in between) it works as well.
From this integration in HA, i have 2 devices:
Is there any way i can get it working so i can switch from/to the DisplayPort input?
The text was updated successfully, but these errors were encountered: