Skip to content

Latest commit

 

History

History
84 lines (66 loc) · 2.29 KB

Smartthings.md

File metadata and controls

84 lines (66 loc) · 2.29 KB

HomeAssistant - SamsungTV Tizen Component

Enable SmartThings

Warning: It is very important to follow this guide to the letter, many users do not follow it correctly and (for example) they try adding the "Device Network ID" instead of device_id, then say the component does not work. So follow this guide EXACTLY as it is written!

Step 1: Make sure your TV is logged into your smart things account.

Step 2: Obtain an API key from https://account.smartthings.com/tokens

Step 3: Head to your devices page:

  • For EU customers click here

  • For US customers click here

  • For APAC customers click here

    If above links do not work for you: Go to https://account.smartthings.com, login with your account and head to 'My Devices' in the top bar.

Click on the name of your TV and the device id will be shown on the URL, like so:

https://[...].api.smartthings.com/device/show/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX

where XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX is the device id.

Step 4: In your configuration.yaml add:

media_player:
  - platform: samsungtv_tizen
    name: My TV name
    api_key: "YOUR API KEY"
    device_id: "YOUR DEVICE ID"
    ...

Benefits of Enabling SmartThings

  • Better states for running apps (read app_list guide for more information)
  • New keys available (read more below about SmartThings Keys)
  • Shows TV channel names
  • Shows accurate states for HDMI or TV input sources

SmartThings Keys

Input Keys


Key Description
ST_TV TV
ST_HDMI1 HDMI1
ST_HDMI2 HDMI2
ST_HDMI3 HDMI3
ST_HDMI4 HDMI4
...

Channel Keys


Key Description
ST_CHUP ChannelUp
ST_CHDOWN ChannelDown
ST_CH1 Channel1
ST_CH2 Channel2
ST_CH3 Channel3
...

Volume Keys


Key Description
ST_MUTE Mute/Unmute
ST_VOLUP VolumeUp
ST_VOLDOWN VolumeDown
ST_VOL1 Volume1
ST_VOL2 Volume2
ST_VOL3 Volume3
...
ST_VOL100 Volume100