Giter VIP home page Giter VIP logo

samsungtv_custom's Introduction

Samsung TV H Series custom component for Home Assistant

Based on a simplified version of ha-samsungtv-custom by @roberodin using a modified version of PySmartCrypto by @eclair4151

Usage

Create a folder called "samsungtv_custom" in your config directory and extract files to the folder.

Use get_token.py to get your Samsung TV token (use --port 8080)

get_token.py --ip <ip> --port <port>

Store ctx (token) and session id output.

Replace the host ip with your Samsung TV ip address and add it to configuration.yaml:

media_player:
  - platform: samsungtv_custom
    host: 10.0.0.1
    token: !secret samsung_token
    sessionid: !secret samsung_id
    port: "8080"

Add these tokens to secrets.yaml and replace it with your Samsung TV token and session id

samsung_token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
samsung_id: x

After this you are all done, add the Media Player card to your Lovelace layout.

This should work on H and J 2014/2015 models (according to PySmartCrypto specs)

Feel free to contribute with other working models and to submit fixes and improvements to the code. Enjoy!

Working Models

  • UE55H6400
  • UE40H6200 (caveat: off-state detection, see Issue #1)
  • UE48H5500AW (caveat: off-state detection, see Issue #1)
  • 55HU7500 (caveat: off-state detection, see Issue #1)
  • HU8550 (caveat: off-state detection, see Issue #1)

samsungtv_custom's People

Contributors

arigit avatar arturleao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

samsungtv_custom's Issues

Problem status with UE40H6200

Hi,
I'm using this component with my TV UE40H6200 but i have a problem with status of media player it is "on" when my TV is "off".

image

There is something i can do?

Another things there is the possibility to send some extra command example KEY_CHUP or a single channel?

Thanks.

Step one of configure not clear

Dear arturleao,

Love the fact that you are building this!
Would really love to try and get my hu7100 working through your custom component.

Only thing for me as ‘noob’ is how to run/use get_token.py

Other lines of your description are clear to me.

Thanks a lot Rosiaantje

Question: Play to youtube app

Hi
question, i also have an older H serie, can i use this component to play media on the "youtube" app thats present on the samsung tv?

For example, if i open youtube on a chromebrowser, my notebook recognizes the samsung tv as some kind of media device , and i can cast the youtube link to the youtube app on the TV

thnx for answering

Invalid config for [media_player.samsungtv_custom]: [token] is an invalid option

Hi there,

I copied the master branche in config\custom_components\samsungtv_custom and added the below config to configuration.yaml

  • platform: samsungtv_custom
    host: 192.168.200.40
    token: !secret samsung_token
    sessionid: !secret samsung_id
    port: "8080"

Token creation is succesfull

After restarting HA the following error message appears in the HA eventlog:

Invalid config for [media_player.samsungtv_custom]: [token] is an invalid option for [media_player.samsungtv_custom]. Check: media_player.samsungtv_custom->token. (See ?, line ?).

any idea?

ModuleNotFoundError: No module named 'Crypto'

Getting this error when run this:
python3 get_token.py --ip 192.168.1.199 --port 8080

Traceback (most recent call last):
File "get_token.py", line 3, in
from PySmartCrypto.pysmartcrypto import PySmartCrypto
File "/usr/share/hassio/homeassistant/custom_components/samsungtv_custom/PySmartCrypto/pysmartcrypto.py", line 2, in
from . import crypto
File "/usr/share/hassio/homeassistant/custom_components/samsungtv_custom/PySmartCrypto/crypto.py", line 2, in
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
Any help?

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.