GithubHelp home page GithubHelp logo

smartthingstv's Introduction

smartthingstv

For Controlling a Samsung TV via Smart Things

I am not a developer at all, I am learning python and wanted to try this. Let me know any improvements or issues and i will try help. This is still a WIP.

Features

**Update

I have added WOL, You will need to add your MAC address to your configuration. Volume and source list issue fixed and current state thanks to @jaruba .

Can:

  • Turn the TV off
  • Set volume
  • Step volume up / down
  • Set mute / unmute
  • Show if muted / unmuted
  • Show current state on / off
  • Show current source (Digital TV, HDMI 1, HDMI2, APP NAME)
  • Show current volume
  • Add source list
  • Set source to X
  • Add WOL

Todo:

  • Current digital channel should work but have no way of testing.
  • Add ping method for state
  • Automatically populate device IDs
  • Play Pause work

Cant:

  • Turn on via WIFI
  • Launch an app via smartthings api (may have work around)

Set up

Make sure your TV is logged into your smart things account.

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

Go here for your device id for each device. Click on the name of your TV and the device id will be in the URL

https://graph-eu01-euwest1.api.smartthings.com/device/show/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX

In your configuration.yaml add:

media_player:
  - platform: smartthingstv
    name: My TV name
    api_key: "YOUR API KEY"
    device_id: "YOUR DEVICE ID"
    mac: "YOUR MAC ADDRESS"
    expand_sources: True

Tested on:

UE55NU7100 - Tizen 4.0 - Lan UE49MU6400 - Tizen 3.0 - Wifi

smartthingstv's People

Contributors

pegatron89 avatar jaruba avatar

Watchers

James Cloos avatar

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.