Giter Site home page Giter Site logo

glavin001 / homebridge-samsung-cast-tv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmende/homebridge-samsungtv-control

5.0 4.0 1.0 30 KB

(:warning: No longer maintained :warning:) A homebridge plugin to control your Samsung SmartTV

License: MIT License

JavaScript 100.00%
home-automation homebridge homebridge-plugin samsung samsung-tv samsung-smart-tv chromecast

homebridge-samsung-cast-tv's Introduction

#Homebridge-samsung-cast-tv

Samsung TV plugin for Homebridge

This plugin allows you to control your Samsung TV (models until 2014) andd Chromecast with HomeKit and Siri. The Samsung TV will not power on over network, so the Chromecast is used to force the TV on!

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g homebridge-samsungtv-control
  3. Update your configuration file. See the config-sample.json.

Explanation:

Field Description
accessory Must always be "SamsungTV". (required)
name The name you want to use to control the TV.
ip_address The internal ip address of your samsung TV.
send_delay When switching to another channel the individual keys will be send with a short delay (in ms) between them. (default 400)

Usage

The first numeric characteristic represents the volume. When changing the volume characteristic the number represents the count of times the volume up or down key will be triggered. In other words to increase the volume by 3 units, the characteristic should be set to 3, to decrease the volume by 2 units e.g. the value would be -2. By setting volume to 0 the mute key will be triggered.

The next characteristic represents the channel. To set a channel just set up a scene with the numeric value of the channel.

The last characteristic allows sending any key from this list without the KEY_ at the beginning. To send the pre-channel key e.g. set up a scene where this characteristic will be set to PRECH.

Limitations:

The volume, channel and key characteristics send single keys with a short delay between them to accomplish their task. Therefore to set these characteristics values you should set up a scene with the desired value in the corresponding characteristics so that not every single change will be send before you've finished typing.
Since some Samsung TV's will disconnect from the network when turned off it is not possible to turn them back on again over network. Furthermore it is not possible to observe current values such as the volume or the channel. Therefore only channel changes that where made through this plugin will be tracked (channel changes with the regular remote for example can not be tracked).

Newer Samsung TV's (from 2014)

By now, only Samsung TV's until 2014 are supported by this plugin because Samsung dropped the old remote control protocol from their newer tv series. Samsung unfortunately has no documentation on how to pair with the newer tv's and remote control them afterwards. The current state of reverse engineering the newer api can be seen here (contribution is welcome).

homebridge-samsung-cast-tv's People

Contributors

geertsmichael avatar glavin001 avatar mmende avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

nick-potts

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.