Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Control Samsung Smart Tv from HCL


Question

Posted

Sorry,my english is from google translator.

In case anyone is interested, I'm implementing this solution to control samsung smart tv from HCL, as we await the next century to v4.x, plugins... and spanish interface, etc.

You need a web server, I have no problem in my case because I use mac mini for plex, eyetv, vpn, mail, recording cameras, etc.. and always is on.

You need to publish to a web server php file attached samsungremote.php

In the attached file .zip there are also index.html, exemplary to send commands to the TV, I used it for the first sending the first command to the tv to give authorization in samsung Allshare .

Modifies the data samsungremote.php, ip tv, and the ip web server that will send commands to the tv (no ip HCL), also the mac web server, and change LE46C650 tv for your model (this does not if absolutely necessary, I changed my code tv), also changes if you want to $remotename that you like if you want.

     $ IPTV = "192.168.1.96"; / / IP Address of TV

     $ myip = "192.168.1.200"; / / Does not really seem to be used

     $ mymac = "00-0c-29-3e-b1-4f"; / / Used for the access control / validation, but not after That AFAIK

     $ appstring = "iapp.samsung iphone .."; / / What the iPhone app reports

     $ tvappstring = "iphone.LE46C650.iapp.samsung"; / / Might need changing to match your TV type

     $ remotename = "Samsung Remote for HCL"; / / What gets Reported When it asks for permission / Also shows in General-> Wireless Remote Control menu

  

When you have tested the tv respond to commands from index.html, creates a virtual device with buttons you want, making calls with this url structure

GET /samsungremote.php?=KEY_POWEROFF HTTP/1.10x0D0x0A0x0D0x0A

Due to time constraints I have not yet created the virtual device, but I am 100% sure it will work because the call to

Please login or register to see this link.

works and off tv

in samsungremote.php KEY_ is a list of available and here too

Please login or register to see this link.

unfortunately samsung tv not support power_on.

I wish someone would be useful

Please login or register to see this link.

4 answers to this question

Recommended Posts

  • 0
Posted

Looks nice. I was trying to get something like this. I need just a power off function in my virtual device.

will test it tomorrow.

  • 0
  • Inquirer
  • Posted

    I've had some time, I've tested, I confirm it works correctly, just a detail, the virtual device must have this structure

    GET /samsungremote.php?key=POWEROFF HTTP/1.1

    host:192.168.1.200:8888

    0x0D0x0A0x0D0x0A

    you can recreate all the buttons for remote controller in the virtual device

    (*) change the ip host: by your web server and port if you have not published on port 80

    • 0
    Posted

    hmm. not working.

    You mean The host is your fibaro? What port on TV do I have to use?

    .........

    Probably I missunderstood you. You run your php script on a server, right?

    • 0
  • Inquirer
  • Posted

    works perfectly,

    have to publish on a web server (with php) index.html and samsungremote.php

    edit samsungremote.php and change the values ​​with your data as i write in the first post

    remember

    $ Myip = "192.168.1.200"; / / Does not really seem to be used

    this is the IP of the web server, NOT Fibaro, tv allows connection to the web server, from the virtual device that is done is to send the url to the web server and the web server makes the connection with the TV.

    and

    $ Mymac = "00-0c-29-3e-b1-4f"; / / Used for the access control / validation, but not after That AFAIK

    type here your web server MAC

    go to

    Please login or register to see this link.

    server / index.html, you will see a web remote controller, uses a push button to make the call to confirm on television and television connection.

    then creates the virtual device as I put in my second post.

    I assure you it works.

    tv port is 55000, is already indicated in samsungremote.php

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...