# \[APP\]\[Pro\] Samsung SmartTV - Control your Samsung SmartTV

**URL:** <https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019>\
**Category:** Apps\
**Tags:** app, homey-pro\
**Created:** [March 3, 2019, 12:28pm UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019 "2019-03-03T12:28:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [March 3, 2019, 12:28pm UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/1 "2019-03-03T12:28:23Z")

</div>

[Samsung SmartTV | Homey](https://homey.app/a/com.samsung.smart/)

> **[Samsung SmartTV | Homey](https://homey.app/en-us/app/com.samsung.smart/Samsung-SmartTV/)**
>
> Control your Samsung SmartTV

### Check for support

##### Samsung

You can check if your TV is supported by accessing the following link, with the IP address for your TV:

`http://"TV IP address":8001/api/v2/`

You should get a response with information about your TV.

##### Samsung (encrypted)

For H, HU, J, JU and JS models, that respond to

`http://"TV IP address":8001/ms/1.0/`

##### Samsung (legacy)

Older Samsung TVs before 2014 might also work. See the “Samsung (legacy)” device.

### Install

To install the device, the TV(s) must be turned on and on the same network as the Homey.

Searching for the TV(s) might take up to 30 seconds. If the TV is not found, the IP address can be set manually.

To be able to turn the TV on, it must support wake-on-lan / wake-on-wireless.

## Device: Samsung

For newer 2016+ TVs, that respond to [http://TV-IP-ADDRESS:8001/api/v2/](http://TV-IP-ADDRESS:8001/api/v2/)

It is possible to select ‘Secure connection’ in ‘Advanced settings’ if the authorization with the TV failed for some reason. ‘Secure connection’ is only necessary for newer (2018+) models.

#### Triggers

- TV turned on
- TV turned off
- Volume changed (requires UPnP support)

#### Conditions

- Is on / off
- Is app running

#### Actions

- Turn on
- Turn off
- Toggle on or off
- Mute the volume
- Unmute the volume
- Turn the volume up
- Turn the volume down
- Set volume to (requires UPnP support)
- One channel up
- One channel down
- Change channel
- Launch app
- Close app
- Launch video on YouTube
- Launch browser
- Send key
- Send list of keys
- Set input source (requires that the SmartThings API is enabled in Adv. settings)
- Set power state

## Device: Samsung (encrypted)

For H, HU, J, JU and JS models, from 2014 and 2015, that respond to [http://TV-IP-ADDRESS:8001/ms/1.0/](http://TV-IP-ADDRESS:8001/ms/1.0/)

#### Triggers

- TV turned on
- TV turned off
- Volume changed (requires UPnP support)

#### Conditions

- Is on / off
- Is app running (J/JU/JS-models)

#### Actions

- Turn on
- Turn off
- Toggle on or off
- Mute the volume
- Unmute the volume
- Turn the volume up
- Turn the volume down
- Set volume to (requires UPnP support)
- One channel up
- One channel down
- Change channel
- Launch app (J/JU/JS-models)
- Close app (J/JU/JS-models)
- Launch video on YouTube (J/JU/JS-models)
- Send key
- Send list of keys

## Device: Samsung (legacy)

For older TVs before 2014, that respond to port 55000.

#### Triggers

- TV turned on
- TV turned off
- Volume changed (requires UPnP support)

#### Conditions

- Is on / off

#### Actions

- Turn on
- Turn off
- Toggle on or off
- Mute the volume
- Unmute the volume
- Turn the volume up
- Turn the volume down
- Set volume to (requires UPnP support)
- One channel up
- One channel down
- Change channel
- Send key
- Send list of keys

## Details about actions:

### Change channel

The ‘Change channel’ action will send a list of number-keys for the channel number, and finally the ‘Enter’-key. The default delay between each key is 1250 ms, but this can be changed in ‘Advanced settings’.

_Example: switch to channel ‘123’:_

Will send this list of keys: ‘Key 1’, ‘Key 2’, ‘Key 3’, ‘Enter’.

### Send list of keys

With the ‘Send list of keys’ action it is possible to send a list of keys, with a short delay between each key. The default delay between each key is 100 ms, but this can be changed in ‘Advanced settings’. If the delay is too low, the TV might not respond.

For the list of keys, see [here](https://github.com/balmli/com.samsung.smart/blob/beta/keys.md).

To send the same key several times, add a \*X after the key, where X is the number of times for the key. To add an extra delay before the next key, just add a number between 1 - 9999. The number is milliseconds.

_Example: Send ‘Home’, ‘Left’ and ‘Enter’:_

`KEY_HOME,KEY_LEFT,KEY_ENTER`

Example: Set the aspect ratio, increase the volume 10 times, wait 2.5 seconds (2500 ms) and then press play:

`KEY_16_9,KEY_VOLUP*10,2500,KEY_PLAY`

### Launch video on YouTube

To use the ‘Launch video on YouTube’ action, the YouTube _video id_ must be provided, which is a 11 character long string. The video id for this link on YouTube:

https: // [www.youtube.com/watch?v=aqz-KE-bpKQ](http://www.youtube.com/watch?v=aqz-KE-bpKQ)

is `aqz-KE-bpKQ`

## Details about Advanced settings:

#### IP address

The IP address of the TV.

Can be updated manually if the TV was not found or if the IP address of the TV has changed.

For the “Samsung (encrypted)” - device, it is not possible to change the IP address.

#### Secure connection (Samsung)

Used to enable a secure connection to the TV. Normally this is set correctly when adding the device.

To repair the secure connection, first set the “Secure connection” to ‘off’ and save settings, and the set it to ‘on’ and save settings.

#### Frame TV support

To be able to turn off ‘The Frame’, enable this.

#### Polling interval for TV status

Interval between each time the status of the TV (on / off) is checked, in seconds.

A value lower than 10 seconds will disable the polling.

#### Maximum volume level

Set the maximum volume level used for UPnP get and set volume. Default value is 30.

#### Delay between keys

The delay in milliseconds between each key is sent, for the ‘Send list of keys’ - action.

Default is 100 ms.

If the value is too low, some or all of the commands might be ignored by the TV.

#### Delay between channel keys

The delay in milliseconds between each key is sent, for the ‘Change channel’ - action.

Default is 1250 ms.

#### SmartThings API

To use the SmartThings API, your TV must be logged into your Samsung account.

Go to [SmartThings. Add a little smartness to your things.](https://account.smartthings.com/tokens) to generate a token with device access.

Go to advanced settings for the Samsung device, enable SmartThings API and enter the token.

This will enable the ‘Set input source’ - action.

## Feedback:

Please report issues on this community page.

## Acknowledgements:

Thanks to [GitHub - natalan/samsung-remote: Module for integration of Samsung SmartTV with your NodeJS application · GitHub](https://github.com/natalan/samsung-remote) for solution to support older Samsung TVs.

Thanks to [GitHub - tavicu/homebridge-samsung-tizen: Homebridge plugin for Samsung TV's with Tizen OS · GitHub](https://github.com/tavicu/homebridge-samsung-tizen) for solution to pair with newer Samsung TVs.

Thanks to [GitHub - tdudek/samsung-remote-models-2014-and-newer · GitHub](https://github.com/tdudek/samsung-remote-models-2014-and-newer) and [GitHub - kkapitan/homebridge-homesung: A Homebridge plugin for Samsung SmartTV H and J models with the pairing protocol · GitHub](https://github.com/kkapitan/homebridge-homesung) for solution to pair with H, HU, J, JU and JS models.

## Disclaimer

Use at your own risk. I accept no responsibility for any damages caused by using this app.

## Release Notes:

#### 2.1.0

- Added action to close running app
- Improvements to SmartThings API

#### 2.0.1

- Updated pairing

#### 1.9.3

- Bugfix for pairing

#### 1.9.2

- Bugfix for SDK3

#### 1.9.1

- Migrated to SDK3

#### 1.8.7

- Improvements to discover MAC address on boot (thanks to Martijn Poppen)

#### 1.8.6

- Discover MAC address on boot (thanks to Martijn Poppen)

#### 1.8.4

- Improvements for power state

#### 1.8.3

- Minor bug fix
- Do not use SmartThings to check if the TV is on or off

#### 1.8.2

- Added action to manually set the power state

#### 1.8.1

- Fixes for power on / off

#### 1.8.0

- Fetching volume state for TVs that support UPnP
- Fixes for ‘Is app running’ condition
- Fixes for ‘Launch app’ action

#### 1.7.11

- Minor bug fix

#### 1.7.10

- Minor bug fix

#### 1.7.9

- Minor bug fix

#### 1.7.8

- Fixed pairing bug
- Added more app IDs

#### 1.7.7

- Minor bug fix

#### 1.7.6

- Added app IDs for Netflix

#### 1.7.5

- Added app ID for Apple TV

#### 1.7.4

- Use static list of apps if fetching apps from the TV fails

#### 1.7.3

- Fixed issue with Secure connection being reset.

---

<div class="post-metadata">

**Author:** ![ASN](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@ASN](https://community.homey.app/u/ASN)\
**Post date:** [March 3, 2019, 8:15pm UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/2 "2019-03-03T20:15:41Z")

</div>

Awesome! Gonna try it as soon as it hits the app store.

---

<div class="post-metadata">

**Author:** ![danone](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/danone/32/115743_2.png) [@danone](https://community.homey.app/u/danone)\
**Post date:** [March 4, 2019, 7:47am UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/3 "2019-03-04T07:47:02Z")

</div>

Wow, you’ve made my day, thank you Sir and don’t forget to post a link with your PayPal account!  
Can’t wait to test it.

---

<div class="post-metadata">

**Author:** ![Marcel\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_visser/32/66024_2.png) [@Marcel\_Visser](https://community.homey.app/u/Marcel_Visser)\
**Post date:** [March 5, 2019, 5:52pm UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/4 "2019-03-05T17:52:30Z")

</div>

Thanks for releasing the app!

It can find my TV, but I’m getting this error:

![homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/3/3c95071dce2d0f2845b5bcb132763d3e0486e92c.jpeg)

Any idea?

---

<div class="post-metadata">

**Author:** ![Aart\_Hardeman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/aart_hardeman/32/11163_2.png) [@Aart\_Hardeman](https://community.homey.app/u/Aart_Hardeman)\
**Post date:** [March 5, 2019, 6:05pm UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/5 "2019-03-05T18:05:34Z")

</div>

Same here. Send you A pm

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [March 5, 2019, 6:52pm UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/6 "2019-03-05T18:52:14Z")

</div>

Seems that you two have newer TVs that are not supported yet. Can you send me the result from http://" TV IP address ":8001/api/v2/ ? That will help.

Will try to fix this fast.

---

<div class="post-metadata">

**Author:** ![Marcel\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_visser/32/66024_2.png) [@Marcel\_Visser](https://community.homey.app/u/Marcel_Visser)\
**Post date:** [March 5, 2019, 6:54pm UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/7 "2019-03-05T18:54:12Z")

</div>

![chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/5/59fb18c033350649e9ac34deb7924225de55eb31.png)

Is this enough?

---

<div class="post-metadata">

**Author:** ![tarald](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tarald/32/7068_2.png) [@tarald](https://community.homey.app/u/tarald)\
**Post date:** [March 5, 2019, 8:35pm UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/8 "2019-03-05T20:35:38Z")

</div>

Realy nice!  
Does it support wake-on-lan if the TV are wired?

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [March 5, 2019, 8:36pm UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/9 "2019-03-05T20:36:46Z")

</div>

Yes, it does wake-on-lan … and over WIFI also… But I have not tested that.

Need help from you to test… because I only have one Samsung…

---

<div class="post-metadata">

**Author:** ![Martijn1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn1/32/7865_2.png) [@Martijn1](https://community.homey.app/u/Martijn1)\
**Post date:** [March 5, 2019, 8:38pm UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/10 "2019-03-05T20:38:01Z")

</div>

My tv also cant be controlled.  
Adding the tv to homey is no problem, everything is fine so far.  
But i cant control it.  
I even put the tv in developer mode with homey’s ip als controller.([link](https://developer.samsung.com/tv/develop/extension-libraries/smart-view-sdk/receiver-apps/debugging))

| id | “uuid:f58a5776-d5a4-45db-9094-e04abfc4d876” |
| --- | --- |
| name | “[TV] UE55JU7000” |
| version | “2.0.25” |
| device | |
| type | “Samsung SmartTV” |
| duid | “uuid:f58a5776-d5a4-45db-9094-e04abfc4d876” |
| model | “15\_HAWKM\_UHD” |
| modelName | “UE55JU7000” |
| description | “Samsung DTV RCR” |
| networkType | “wired” |
| ssid | “” |
| ip | “192.168.178.113” |
| firmwareVersion | “Unknown” |
| name | “[TV] UE55JU7000” |
| id | “uuid:f58a5776-d5a4-45db-9094-e04abfc4d876” |
| udn | “uuid:f58a5776-d5a4-45db-9094-e04abfc4d876” |
| resolution | “1920x1080” |
| countryCode | “NL” |
| msfVersion | “2.0.25” |
| smartHubAgreement | “true” |
| wifiMac | “fc:8f:90:d6:4d:39” |
| \* | developerMode |
| \* | developerIP |
| type | “Samsung SmartTV” |
| uri | “[http://192.168.178.113:8001/api/v2/](http://192.168.178.113:8001/api/v2/)” |

Im already happy someone is taking some effort into making homey work with samsung tv’s.  
So i hope the log helps.  
If you need more info, just ask.

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [March 5, 2019, 8:41pm UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/11 "2019-03-05T20:41:33Z")

</div>

Can you send me the response from [http://192.168.178.113:8001/api/v2/](http://192.168.178.113:8001/api/v2/) ?

---

<div class="post-metadata">

**Author:** ![ASN](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@ASN](https://community.homey.app/u/ASN)\
**Post date:** [March 6, 2019, 12:25am UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/12 "2019-03-06T00:25:32Z")

</div>

Works great on KS7000. Can also wake my TV on wifi! One thing to note though: when I have a Flow with “turn on” as a card, while the TV is already on, it will actually turn it off. Reverse is also the case, I tested that as well. The TV actually turns on when a flow has “turn off” while the TV already is off. Maybe you can fix this?

I have created a solution by creating and linking a seprate flow to that flow where I add a condition “when tv is off” then “turn on”. Works great this way, but would save some flows if it could be fixed 😄!

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [March 6, 2019, 6:44am UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/13 "2019-03-06T06:44:45Z")

</div>

Hi,

In v. 1.0.3 that have been fixed. It will not be possible to turn on, if it’s already on. And vice versa.

The process of turning on / off takes some time, and it will not be possible to turn on / off again before the app sees that the TV is actually on / off.

The app will get a response from `http://"TV IP address":8001/api/v2/` for a while after the TV is turned off. On my TV that takes around 20 seconds. So you will have to wait for around 20 - 30 seconds before you can turn the TV back on, after turning it off.

---

<div class="post-metadata">

**Author:** ![Canedje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/canedje/32/8324_2.png) [@Canedje](https://community.homey.app/u/Canedje)\
**Post date:** [March 6, 2019, 7:06am UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/14 "2019-03-06T07:06:40Z")

</div>

unfortunatly it looks like my smart Samsung tv is to old (about 5 years).  
The tv is recognize by the app but can not connect to the IP (red triangle in the device symbol) also not after adding the IP by hand 😳😥

The [http://ip](http://ip) adress:8001/api/v2/ is also not responding

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [March 6, 2019, 9:02am UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/15 "2019-03-06T09:02:29Z")

</div>

It might be possible to support older Samsungs also. But the community help with testing … since I only have one Samsungs myself… 🙂

Can you try to access this link, with the correct IP address for your TV:

`http://<TV IP address:55000/`

and see if you get a response ?

---

<div class="post-metadata">

**Author:** ![Canedje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/canedje/32/8324_2.png) [@Canedje](https://community.homey.app/u/Canedje)\
**Post date:** [March 6, 2019, 9:03am UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/16 "2019-03-06T09:03:56Z")

</div>

I will try tonight when I’m home.  
Thanks for the support

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [March 6, 2019, 10:13am UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/17 "2019-03-06T10:13:23Z")

</div>

@Marcel_Visser @Aart_Hardeman .

V. 1.0.3 in app store now. Can you please test ?

---

<div class="post-metadata">

**Author:** ![Marcel\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_visser/32/66024_2.png) [@Marcel\_Visser](https://community.homey.app/u/Marcel_Visser)\
**Post date:** [March 6, 2019, 11:32am UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/18 "2019-03-06T11:32:35Z")

</div>

The error message is gone. But I’m at work now. Will test it tonight! Thanks for trying to sove it!

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [March 6, 2019, 1:56pm UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/19 "2019-03-06T13:56:06Z")

</div>

You will have to re-add the Samsung device before you test.

---

<div class="post-metadata">

**Author:** ![Aart\_Hardeman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/aart_hardeman/32/11163_2.png) [@Aart\_Hardeman](https://community.homey.app/u/Aart_Hardeman)\
**Post date:** [March 6, 2019, 2:24pm UTC](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019/20 "2019-03-06T14:24:50Z")

</div>

Re added and tested.  
I get always the text below. Even when switched off in the tv settings.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/e/e7e60b360466c09a5a87dde30991c577e8e5ae81.jpeg)

[Next page](https://community.homey.app/t/app-pro-samsung-smarttv-control-your-samsung-smarttv/10019.md?page=2)
