Coder Social home page Coder Social logo

Comments (9)

barabba9174 avatar barabba9174 commented on July 22, 2024

I was going to write the same.

from homebridge-samsung-tizen.

lirbar avatar lirbar commented on July 22, 2024

I was about to open a new issue for this.

from homebridge-samsung-tizen.

tavicu avatar tavicu commented on July 22, 2024

You can set whatever you want in the config file (https://tavicu.github.io/homebridge-samsung-tizen/features/inputs.html#input-type)

I don't have a TV with USB-C or DisplayPort but I guess the values are USBC and DisplayPort.
If you enter something that TV will not accept you will get an error from SmartThings where it lists the available options for your device.

If you do find the correct inputs please let me know so I can add them to the list.

from homebridge-samsung-tizen.

lirbar avatar lirbar commented on July 22, 2024

You can set whatever you want in the config file (https://tavicu.github.io/homebridge-samsung-tizen/features/inputs.html#input-type)

I don't have a TV with USB-C or DisplayPort but I guess the values are USBC and DisplayPort. If you enter something that TV will not accept you will get an error from SmartThings where it lists the available options for your device.

If you do find the correct inputs please let me know so I can add them to the list.

Thanks.
I tried changing the "value" to USBC, usbc, USB-C, PC USB-C, PCUSB-C, PCUSBC, pc, PC, and DisplayPort.
None worked. The Netflix one works great with my JSON below.

        "inputs": [
            {
                "type": "input",
                "name": "USB",
                "value": "USBC"
            },
            {
                "type": "app",
                "name": "Netflix",
                "value": "3201907018807"
            }
        ],

How do I see the list of available options for my device you mentioned?
I am using Smart Monitor M8 (LS32BM80BUNXGO) and getting in homebridge logs only the following when selecting the input:
"The request is malformed."

BTW smarthings app showing "PC USB-C" when connected to the PC with USB-C and "Netflix" when on Netflix app.
That's why I tried that value (and other variants of it).

from homebridge-samsung-tizen.

tavicu avatar tavicu commented on July 22, 2024

Try to enable debug mode - https://tavicu.github.io/homebridge-samsung-tizen/troubleshooting/open-new-issue.html#enable-debug-mode

from homebridge-samsung-tizen.

lirbar avatar lirbar commented on July 22, 2024

Try to enable debug mode - https://tavicu.github.io/homebridge-samsung-tizen/troubleshooting/open-new-issue.html#enable-debug-mode

Thanks. I am getting the following:

[04/12/2023, 15:33:02] [Samsung M8] The request is malformed.
[04/12/2023, 15:33:02] [Samsung M8] [DEBUG] [
{
code: 'UnprocessableEntityError',
target: 'commands[0].arguments[0]',
message: 'commands[0].arguments[0]: does not have a value in the enumeration [AM, CD, FM, HDMI, HDMI1, HDMI2, HDMI3, HDMI4, HDMI5, HDMI6, digitalTv, USB, YouTube, aux, bluetooth, digital, melon, wifi]',
details: []
}
]

Setting the value to USB gets a response (no error in homebridge logs) and the display shows a Tizen pop-up "USB is not available".
Probably because it means input from external storage USB drive.
Same as other not connected inputs I tried (CD, HDMI, HDMI1, digitalTv, digital).

I just found that this issue is connected to the following one:
#569

from homebridge-samsung-tizen.

tavicu avatar tavicu commented on July 22, 2024

Well unfortunately if Samsung don't allow you to select the USB-C input through SmartThings api ... I don't know what else I could do.

There must be a specific api available only for monitor or something since you can select it from their app.
Unfortunately I don't have an M8 monitor to see.

Do you have a button on your physical remote? Or only the inputs button?

from homebridge-samsung-tizen.

lirbar avatar lirbar commented on July 22, 2024

Do you have a button on your physical remote? Or only the inputs button?

Not a direct physical button, only using the home button and going from "Media" to "Workspace" (up arrow) and selecting "PC".

As you wrote, indeed "PC" is available (and works smoothly) on the SmartThings app under "Sources and Apps" just next to Netflix and etc.

As I see in the other posts this issue is probably the same on all the different M5, M7 and M8 models. Is it possible for you to ask Samsung about the right API to use ?

from homebridge-samsung-tizen.

tavicu avatar tavicu commented on July 22, 2024

Is it possible for you to ask Samsung about the right API to use ?

This is a dream ... Samsung don't provide anything and want's to force users to use only SmartThings app.

Even the current API that we are using for local control we (developers) had to dig and listen to what requests TVs make. And it's still working because Samsung use it too with their SmartThings app, otherwise they would have removed it by now.

Another example is with Frame TVs that had an awesome API to get the status and then Samsung decided to remove the API from TVs, even pushed and update for older TVs to remove the API.

So if you are searching for a new TV and you ask me, I would say avoid Samsung. They want to keep you locked in their garden.

You could create a custom command that sends a list of keys (what keys you would press on the physical remote). For example: Input Key, ... (next keys to reach USB-C input), enter key

from homebridge-samsung-tizen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.