Skip to content

A simple Ezlo plugin to control a Samsung TV via serial commands.

Notifications You must be signed in to change notification settings

dgdevca/ezlo-samsung-tv-serial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ezlo samsung-tv-serial

A very simple plugin to control a Samsung TV using serial (RS232) commands over the network via a using a Digi PortServer.

-----------     TCP     -------------------     Serial/RS232     --------------
|  Ezlo   |  ---------> | Digi PortServer | -------------------> | Samsung TV |
-----------             -------------------                      --------------
                        IP / Port

Use the following custom call to turn the Power ON (or OFF) via the API tool:

{
    "method": "extensions.plugin.run",
    "id": "_ID_",
    "params": {
        "script": "HUB:samsung-tv-serial/scripts/command",
        "scriptParams": {
            "power":"ON"
        }
    }
}

Installation

  1. Download the files locally. Modify the IP and PORT settings in the startup.lua file to match your environment.
  2. SSH to your Ezlo
  3. Make a directory for the plugin
mkdir /opt/firmware/plugins/samsung-tv-serial
  1. Copy plugin files to this new directory
scp -r ​<PATH_TO_PLUGIN_FOLDER>​ root@<CONTROLLER_IP>​:/opt/firmware/plugins/samsung-tv-serial
  1. Restart Ezlo to load plugin
service firmware restart

You can monitor the plugin log file with the following command

tail -f /tmp/log/firmware/ha-luad.log | grep "samsung-tv-serial"

About

A simple Ezlo plugin to control a Samsung TV via serial commands.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages