All Projects → StancuFlorin → Google-Assistant-Samsung-Smart-TV-Integration

StancuFlorin / Google-Assistant-Samsung-Smart-TV-Integration

Licence: other
Use Google Assistant as a remote for your Samsung Smart TV. There is no need for a Logitech Harmony device.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Google-Assistant-Samsung-Smart-TV-Integration

Sinric
Amazon Alexa Smart home skill / Google Home Action for ESP8266 / ESP32 / Arduino
Stars: ✭ 259 (+896.15%)
Mutual labels:  raspberrypi, google-home
Assistantcomputercontrol
Control your computer with your Google Home or Amazon Alexa assistant!
Stars: ✭ 554 (+2030.77%)
Mutual labels:  ifttt, google-home
GoogleSpeak
No description or website provided.
Stars: ✭ 14 (-46.15%)
Mutual labels:  ifttt, google-home
Assistant Plugins
Des plugins pour les Assistant (comme Google Home, Cortana, Alexa)
Stars: ✭ 93 (+257.69%)
Mutual labels:  ifttt, google-home
bravia-node
No description or website provided.
Stars: ✭ 14 (-46.15%)
Mutual labels:  ifttt, google-home
Home-Assistant-Configuration
HomeAssistant Configuration
Stars: ✭ 14 (-46.15%)
Mutual labels:  raspberrypi, google-home
formatbot1
Make instant view easily and fast, from any article on the internet in the best messenger ever Telegram
Stars: ✭ 127 (+388.46%)
Mutual labels:  rabbitmq, cloudamqp
jlcross
Dockerfiles for arm devices e.g. Raspberry Pi Series
Stars: ✭ 25 (-3.85%)
Mutual labels:  raspberrypi
rails-microservices-book
A guide to building distributed Ruby on Rails applications using Protocol Buffers, NATS and RabbitMQ
Stars: ✭ 23 (-11.54%)
Mutual labels:  rabbitmq
webapi-backgroundworker-rabbitmq
Sample implementation of a WebApi that publishes messages to RabbitMQ and consume them using a BackgroundWorker.
Stars: ✭ 20 (-23.08%)
Mutual labels:  rabbitmq
raspberrypi-boot
simple spring boot application running on raspberry pi measuring data via bmp085 sensor
Stars: ✭ 17 (-34.62%)
Mutual labels:  rabbitmq
assistant-freebox
Plugin pour contrôler la Freebox Révolution via un Assistant comme Google Home
Stars: ✭ 22 (-15.38%)
Mutual labels:  google-home
ansible-rabbitmq
Ansible role to install and configure RabbitMQ server.
Stars: ✭ 22 (-15.38%)
Mutual labels:  rabbitmq
root-ro
Read-only root filesystem for Raspbian Stretch (using overlay)
Stars: ✭ 75 (+188.46%)
Mutual labels:  raspberrypi
spring-boot-rabbitMQ
Spring Boot集成rabbitMQ实现消息推送
Stars: ✭ 24 (-7.69%)
Mutual labels:  rabbitmq
hometop HT3
Pimp your heater.
Stars: ✭ 34 (+30.77%)
Mutual labels:  raspberrypi
iris
Open Source Photos Platform Powered by PyTorch
Stars: ✭ 135 (+419.23%)
Mutual labels:  rabbitmq
rtsp-samsung-tv
Display RTSP streams from IP Cameras on Samsung Smart TV (Tizen TV)
Stars: ✭ 40 (+53.85%)
Mutual labels:  samsung-tv
smart-garden-ornaments
The smart garden ornaments project! 🦩🌱🤖
Stars: ✭ 20 (-23.08%)
Mutual labels:  raspberrypi
ponos
An opinionated queue based worker server for node.
Stars: ✭ 85 (+226.92%)
Mutual labels:  rabbitmq

Google Assistant - Samsung Smart TV Integration

Use your Google Home device as a remote for your Samsung Smart TV. There is no need for a Logitech Harmony device.

Integration Flow

Requirements

  • Python 2.7
  • # pip install -r requirements.txt

Installation

CloudAMQP

  • Create a free account on CloudAMQP.
  • Create a new instance. The free plan is enough.
  • Go to the RabbitMQ Manager.
  • Add a new exchange:
    • name: google.home.assistant
    • type: direct
  • Add a new queue:
    • name: samsung.smart.tv
    • arguments: Message TTL with the value of 30000. The name of this feature is x-message-ttl
  • Go back to the exchange that you created and add a binding to the queue:
    • name: samsung.smart.tv
    • routing key: samsung.smart.tv

Locally

  • Check the config.ini file and add your own details there.
  • To enable to comunication with your TV you will need to put the correct IP on SamsungSmartTV.host. Your TV should be on the same network with the PC that will run this script. If you have an older TV (<2016) you will need to change the method and the port also. Check samsungctl for more information.
  • The CloudAMQP information also needs to be added. Make sure that you add the correct data there.
  • Run the script using python samsung-smart-tv-remote.py or ./samsung-smart-tv-remote.py

IFTTT

  • Create a new applet on IFTTT.
  • On this select Google Assistant and Say a simple phrase from there.
  • Add a phrase. Use only lower case letters (ex: change the channel on hbo).
  • On that select Maker Webhooks and Make a web request from there.
  • On URL add https://pspeaemf:[email protected]/api/exchanges/pspeaemf/google.home.assistant/publish. Change the username, password and the RabbitMQ host with your own.
  • Select POST method and application/json as content type.
  • On body add
     {
     	"properties":{
     	  "content-type":"application/json"
     	},
     	"routing_key":"samsung.smart.tv",
     	"payload":"{\"command\": \"CHANGE_CHANNEL\", \"value\": \"135\"}",
     	"payload_encoding":"string"
     }
    
    • In the above example, 135 is the channel number for HBO. You can add different applets like this for whatever channel you want and the only thing that you need to change is the the value node.
    • You can also use custom commands like turn off the tv, but you need to change the command node like in this example:
     {
     	"properties":{
     	  "content-type":"application/json"
     	},
     	"routing_key":"samsung.smart.tv",
     	"payload":"{\"command\": \"TURN_OFF\"}",
     	"payload_encoding":"string"
     }
    

Custom Commands

Here is the list of the custom commands implemented so far:

Command Code Command Description
TURN_OFF Turn off the TV

Make the script start at startup

If you use a Raspberry Pi to run this script you may want to make it start each time you boot your device. There are several ways how to do it. Here is one.

# nano /etc/rc.local

Before exit 0 put the below line. This will start the script 15 seconds after the device is up.

/bin/sleep 15 && cd /path/to/your/script && python samsung-smart-tv-remote.py &

# reboot

Tested Devices

  • Samsung UE49K5502
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].