Skip to content

SmartThings integration ​

SmartThings is optional. Without it, the plugin still turns the TV on and off, changes the volume and mute, launches apps, sends remote keys, and controls Art Mode on a Frame. All of that runs on your local network.

Connect SmartThings when you want the features that Samsung only offers through its cloud API: selecting a source such as HDMI, setting a picture or sound mode, changing the channel through the API, and turning a Frame fully off. They are described on the SmartThings features page.

WARNING

SmartThings is not local. Homebridge sends those requests to the SmartThings API, so the server needs internet access, and the features stop working while SmartThings is down.

Paid API plan

From December 15, 2026, Samsung requires a paid SmartThings API plan for every request to the SmartThings API. Without one, SmartThings answers 402 Payment Required and the SmartThings features stop working. Everything else in the plugin keeps working on your local network.

For personal use, the plan is the Developer Plan ($4.99 a month in the US). It is not available in every country yet. See SmartThings API plans for the price and where you can subscribe.

Personal access tokens (api_key in version 5) are no longer accepted. You create your own SmartThings app once, enter its client ID and client secret in the plugin settings, and authorize it. After that the plugin refreshes the access token on its own.

The setup has three parts:

  1. Create a SmartThings app with the SmartThings CLI
  2. Connect it from Homebridge UI
  3. Pick the TV on each device

DANGER

Do not post clientSecret, tokens or an authorization code in a public issue or screenshot. Anyone with the client ID and secret can request tokens for your app.

Before you start ​

  • The TV is added in the SmartThings app on your phone, and you can control it from there.
  • You subscribed to a SmartThings API plan with the same Samsung account. It is needed to create the app, and it includes 100,000 API calls a month. The limit is per account, so every app on that account shares it, Home Assistant for example. The plugin keeps its requests to SmartThings as few as it can.
  • You have a computer with a browser to run the SmartThings CLI. It does not have to be the Homebridge server. The CLI opens a browser window to sign in, so a headless server such as a Raspberry Pi without a desktop is not a good fit.

TIP

If the SmartThings app on your phone is left unused for a long time, SmartThings can drop the TV. Control stops until you add the TV in the app again.

Create the SmartThings app ​

Install the SmartThings CLI ​

The SmartThings CLI is the official command line tool from Samsung.

On macOS, with Homebrew:

bash
brew install smartthingscommunity/smartthings/smartthings

On Windows, download and run smartthings.msi from the latest release.

On Linux or any system with Node.js:

bash
npm install --global @smartthings/cli

CLI version 3.0 or later

The commands below need version 3.0 of the CLI or later, released in November 2026. Older versions only have smartthings apps:create, which SmartThings replaced. If you installed the CLI before, update it: brew upgrade smartthings on macOS, the latest smartthings.msi on Windows, or the same npm install command again.

Create the app ​

Run:

bash
smartthings smartapps:create

The first time, the CLI opens a browser window. Sign in with your Samsung account and allow the CLI to access it, then go back to the terminal. If your account has more than one organization, the CLI first asks which one to use: choose the one that has the API plan. Then answer the prompts:

PromptAnswer
Display NameHomebridge Samsung-Tizen (any name is fine)
DescriptionMonitor and control Samsung Smart TVs via SmartThings API
Icon Image URLLeave empty
Target URLhttps://tavicu.github.io/homebridge-samsung-tizen/token.html
Privacy Policy URLLeave empty
ScopesOnly r:devices:* and x:devices:*
Redirect URIshttps://tavicu.github.io/homebridge-samsung-tizen/token.html
CORS DomainsLeave empty

Scopes

Select only r:devices:* and x:devices:*. The second one starts with x:, not w:. The plugin only reads the TV status and sends commands. It does not need any other access to your account.

In the scope list, press Space on each scope to select it, then Enter. For Redirect URIs, Finish editing Redirect URIs is preselected, so first move up to Add Redirect URI, enter the URL, then choose Finish editing Redirect URIs. For CORS Domains, choose Finish editing CORS Domains without adding any. Then choose Finish and create API Access Smart App.

The CLI prints the OAuth Client ID and OAuth Client Secret. Copy both and keep them somewhere safe. You need them in the next step.

The CLI says the app requires a paid plan

Creating or modifying a Smart App requires a paid plan means the account you signed in with has no active SmartThings API plan. Subscribe from the link the CLI shows, then run the command again.

Lost the client secret?

Run smartthings smartapps:oauth:generate and choose the app. SmartThings creates a new client ID and secret. Run the wizard in the plugin settings again with the new values.

Connect from Homebridge UI ​

Open the plugin settings in Homebridge UI. The SmartThings card is at the top. Choose Connect to SmartThings.

The wizard has three steps.

1. Credentials ​

Paste the Client ID and Client Secret and choose Continue. Both are saved in the plugin config, and the wizard builds the authorization URL for your app.

Advanced settings lets you change the redirect URL. Leave it empty unless you created the app with a different Redirect URI. It must be exactly the same as the one in your app.

2. Authorization ​

Open the Authorization URL in a browser. You can click it, or use Copy and paste it in a new tab.

Sign in with your Samsung account and allow access. SmartThings sends you to the authorization page of this documentation, which shows a code. Copy it.

Go back to the wizard, paste the code in Authorization Code and choose Authorize.

TIP

The code can be used only once, and it expires after a short time. If the wizard rejects it, start again from the authorization URL and use a fresh code.

3. Result ​

Connection successful means the plugin has a token, and the card now shows Connected.

Authorization failed means the code was wrong, expired or already used, or the credentials do not match the app. The error from SmartThings is shown under the message. Choose Try again.

Restart Homebridge after the first connection, so the plugin starts using SmartThings.

Pick the TV ​

Each TV needs its SmartThings device ID (deviceId). Without it, SmartThings features are not used for that TV, even if the account is connected.

Edit the TV in the plugin settings. SmartThings Device ID is a list of the TVs and monitors in your SmartThings account. Pick the TV and choose Update Device.

If the TV is not in the list, choose Other and paste the ID. You can find it in two ways:

  • With the CLI, run smartthings devices. The ID is in the Device Id column.
  • In a browser, open my.smartthings.com, sign in, and click the TV. The ID is shown in the window that opens.

SmartThings dashboard

SmartThings device ID

Once the TV has a device ID, the settings screen also loads its input sources, picture modes and sound modes when you add an input or a switch from that TV. See SmartThings features.

Connection status ​

The SmartThings card shows the state of the authorization.

StatusMeaningAction
ConnectedThe plugin has a valid token and refreshes it on its own.Edit Credentials runs the wizard again.
ExpiredThe token is no longer valid, or SmartThings rejected the authorization.Re-authorize SmartThings runs the wizard again.
Not connectedNo authorization is stored.Connect to SmartThings starts the wizard.

The access token is refreshed automatically before it expires. If the internet connection or the SmartThings servers are down, the plugin tries again after 1, 5, 15 and 30 minutes, then every hour, until it works. You do not have to do anything.

If SmartThings rejects the authorization itself, the plugin stops trying, writes it in the log, and the card shows Expired. Run the wizard again. The plugin picks up the new authorization without a Homebridge restart.

TIP

If Homebridge was stopped for a while, the card can show Expired until the plugin starts again and refreshes the token.

Disconnect removes the stored tokens. The client ID and secret stay in the config, so you can connect again later without creating a new app. Restart Homebridge after you disconnect.

Manual configuration ​

The settings screen writes these keys for you. clientId and clientSecret are set on the platform. deviceId is set on each TV.

json
{
  "platform": "SamsungTizen",
  "clientId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "clientSecret": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "devices": [
    {
      "name": "Bedroom TV",
      "ip": "10.20.30.40",
      "mac": "A0:B1:C2:D3:E4:F5",
      "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
  ]
}

Adding only the client ID and secret to config.json does not connect the account. The authorization code still has to be exchanged once from the wizard.

Troubleshooting ​

The wizard says Authorization failed ​

The code was wrong, expired, or already used. Choose Try again and use a fresh code.

If it keeps failing, check the app you created:

  • The app is on the Samsung account you sign in with. smartthings smartapps lists the apps on your account.
  • Redirect URI is exactly https://tavicu.github.io/homebridge-samsung-tizen/token.html. If you used another one, enter it under Advanced settings in the first step of the wizard.
  • The client ID and secret belong to that app. If you generated new ones, use the new pair.

SmartThings returns 401 ​

The token is no longer accepted. The plugin refreshes it and repeats the request once. If the log still shows [SmartThings] Authorization was rejected, run the wizard again.

SmartThings returns 402 ​

[SmartThings] 402 Payment Required in the log means SmartThings refuses every request from the account. The answer does not say why, but it is one of these:

  • The account has no active SmartThings API plan, or the payment for it did not go through.
  • The plan's monthly limit of API calls is used up. The limit is per account, so every app on that account counts, Home Assistant for example.
  • The plan is on a different Samsung account than the one you created the app with and authorized.

Check the plan and the API usage in the Developer Center.

The plugin pauses SmartThings for 1 hour for every TV and then tries again. Restart Homebridge to try sooner, for example right after you subscribe. Everything that runs on the local network keeps working, and while SmartThings is paused, a Frame is powered off and channels are changed the local way.

SmartThings returns 403 ​

The app is missing r:devices:* or x:devices:*, or the deviceId on the TV is not a device on the account you authorized. Edit the TV and pick it again from the list.

The TV is not in the device list ​

The list only shows devices that SmartThings reports as a TV or a monitor. Check that the TV is in the SmartThings app and that you authorized the same Samsung account. You can always choose Other and paste the ID.

The log says No access token found ​

[SmartThings] No access token found. Follow the authorization flow... means the client ID and secret are in the config, but the wizard was not finished. Run it from the SmartThings card.