TV Ethernet control

5,370 views
Skip to first unread message

Chris Pitman

unread,
Dec 6, 2016, 9:02:52 AM12/6/16
to Loxone English
Is it possible to send commands to a samsung TV via Wired Ethernet from loxone mini server, having a look around it seems the TV can't be switched on but other functions are possible and turning it off via ethernet any one done this or point me in the right direction.

smartbusinesstools.be

unread,
Dec 6, 2016, 10:45:29 AM12/6/16
to Loxone English
Done with Sony and Panasonic TVs, but not with Samsung. There is a 'Samsung TV' Device Template in Virtual Outputs in Config. 

Duncan

unread,
Dec 6, 2016, 11:42:03 AM12/6/16
to Loxone English
i think you will need to go into the tv menu and turn on network control as well, and configure it to have a static ip address

Chris Pitman

unread,
Dec 6, 2016, 1:19:38 PM12/6/16
to Loxone English
Thanks tried the samsung template with a static IP for OFF command but not working atm. will have alook at the TV menus for network control.

Rob Lynes

unread,
Dec 7, 2016, 1:51:23 PM12/7/16
to Loxone English
Would be interested to know how you got Sony Tv working if you wouldn't mind sending some instructions please? 

I've really struggled with mine,.

Rob

sk

unread,
Dec 7, 2016, 3:05:17 PM12/7/16
to Loxone English
I just bought a new samsung KS7000 and found that the network connectivity is very limited via the LAN connection. I was able to get the Samsung IOS app to work over when the tv was on WIFI but can't seem to have both enabled at the same time. Quite frustrating.  I was able to send a wol:// packet to wake the TV up from loxone however. I am now working out what the TV api is really capable of.

smartbusinesstools.be

unread,
Dec 7, 2016, 3:52:20 PM12/7/16
to Loxone English
For the Sony Bravia, I used this information (only) http://www.openremote.org/display/forums/Sony+TV+HTTP+control

jackal077

unread,
Dec 8, 2016, 5:14:18 AM12/8/16
to Loxone English
Samsung TV you can control via their ex-link port which is rs232, bear in mind that some of these ports on TVs are TTL, so check before using otherwise you will fry your tv. This is only possible on their higher ends TVs and you can turn it ON. Otherwise if you can control it via the app it should be possible but quite pointless if you cant turn it on. For "On" you still need to put IR emiter so why bother. I'm talking about their residential series. All their commercial displays you can control via RS232.
Otherwise Sony tvs have IP control.

Darren Richardson

unread,
Feb 25, 2017, 3:15:55 AM2/25/17
to Loxone English
Can I ask how you got this to work with a Sony tv? All I'm wanting to do is send an off command when the alarm is set or a light switch is triple tapped

Darren

Harry Phelps

unread,
Sep 5, 2017, 12:14:04 PM9/5/17
to Loxone English
I'm really interested in being able to control my Bravia over IP. I have some serial strings to send from iRule and Crestron but I can't really get either to work. I'm not sure of the format I should be sending them in. Quite happy to post all the info I have here if anyone is interested.

Harry Phelps

unread,
Sep 7, 2017, 8:45:35 AM9/7/17
to loxone-...@googlegroups.com
Here is the info and testing I have discovered and carried out.

I carried out the instructions below after first testing that I couldn’t access the TV via a browser using the above commands. These are from an iRule website that gives a guide on how to communicate with Sony Bravia TVs.


2. Install Simple Rest Client (https://chrome.google.com/webstore/detail/simple-rest-client/fhjcajmcbmldlhcimfajhfbgofnpcjmb)

3. Once Simple Rest Client is installed you should see uta blue globe looking icon to the right of the URL field in Chrome. Click on that icon.

4. In the URL field of the REST Client, type in http://192.168.1.31/sony/accessControl where you replace 192.168.1.31 with IP address of your TV.

5. Click on POST.

6. In the DATA field paste {"id":13,"method":"actRegister","version":"1.0","params":[{"clientid":"iRule:1","nickname":"iRule"},[{"clientid":"iRule:1","value":"yes","nickname":"iRule","function":"WOL"}]]}

7. Hit SEND. You should see a message on TV pop-up with PIN code and a Username and Password message pop-up in the Browser. Leave Username blank and in password field put in the PIN code that is displayed on TV.


I got the PIN from the screen, entered it and got a response (below). Does this mean that we have to carry out something similar to get control using Loxone?


STATUS: 200 OK

HEADERS: Access-Control-Allow-Origin: chrome-extension://fhjcajmcbmldlhcimfajhfbgofnpcjmb

Access-Control-Allow-Credentials: true

Connection: keep-alive

Content-Length: 21

Content-Type: application/json

DATA: {"result":[],"id":13}



I moved to Loxone Config and entered these details into a virtual output I made for the Sony Bravia:


Address: http://192.168.1.138/sony/IRCC


I also tried using this without the ‘sony/‘ bit (as outlined in one of the guides).

I then made a virtual output command for volume + and entered these details into Command for ON initially:


<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_SendIRCC xmlns:u="urn:schemas-sony-com:service:IRCC:1"><IRCCCode>AAAAAQAAAAEAAAASAw==</IRCCCode></u:X_SendIRCC></s:Body></s:Envelope>


I then used smaller sections of the code in both ‘command for ON’ and ‘HTTP Post command for ON’:


<IRCCCode>AAAAAQAAAAEAAAASAw==</IRCCCode>


AAAAAQAAAAEAAAASAw==


I made a virtual input to trigger the commands from my iPhone. None of the above actually changed the volume on the TV. 


I also have another set of serial strings from a Crestron module, they do not look anything like those used above.

Niels Valkenaers

unread,
Oct 8, 2017, 7:07:23 AM10/8/17
to Loxone English
Hi,

Do you have a sample how it's done with a Panasonic TV?

Op dinsdag 6 december 2016 16:45:29 UTC+1 schreef smartbusinesstools.be:

Robbie

unread,
Oct 18, 2017, 5:14:55 AM10/18/17
to Loxone English
I have a Sony Bravia TV as well. I would love to know a simple way to get Loxone to turn if off (i.e. on a triple light switch click) but haven't a clue where to start with virtual outputs & things.

Would anyone care to provide a complete idiots guide to configuring a virtual output to do this?

Keith Emerson

unread,
Oct 19, 2017, 4:32:07 AM10/19/17
to Loxone English
This solution is not ideal but it works for me with my LG TV.
It wasn't straightforward to get the TV to power on or off by means of an ethernet connection. My solution was to use the Loxone Air IR controller. I attached a very small IR transmitter to the Loxone air IR which I could hide (The main IR Air controller is not on view at all). I then transmit any command I need (including power on and off for the TV) via the loxone AIR IR. As the TV IR receiver and an IR blaster receiver are in the same place I can control all of my AV equipment using Loxone.
The down-side of all this is that Loxone does not know the status of the equipment controlled by IR but this is not a big deal.

Harry Phelps

unread,
Nov 17, 2017, 8:22:19 AM11/17/17
to Loxone English
Here are some commands that I know will control a Sony Bravia when sent by Crestron, could anyone tell me how to use these with Loxone? When sending from Crestron they are just sent to the IP address of the Bravia after switching on Simple IP Control in Settings>Network>Home Network Setup.

HDMI1 - *SCINPT0000000100000001
DPAD Up - *SCIRCC0000000000000114
DPAD Down - *SCIRCC0000000000000115
DPAD Enter - *SCIRCC0000000000000113

I have tried sending these commands using a virtual output with a combination of these settings:

Address: http://192.168.0.100/
Command for On: *SCINPT0000000100000001
HTTP extensions for On: *SCINPT0000000100000001
HTTP post command for On: *SCINPT0000000100000001
HTTP method for On: GET

None of these has worked, does anyone know where I am going wrong?


Harry Phelps

unread,
Mar 7, 2018, 6:58:38 AM3/7/18
to Loxone English
If anyone would like to know how to control the Sony TV over IP using the commands listed here I can tell them, a very kind chap over on Loxforum posted screenshots of his setup for me to follow.

James Mitchelmore

unread,
Mar 7, 2018, 10:56:22 AM3/7/18
to Loxone English
Hello Harry.

I would be very interested in the details to achieve this.

Thanks
James

Harry Phelps

unread,
Mar 7, 2018, 12:41:09 PM3/7/18
to Loxone English
James,

You need to go to the Network settings of the TV and tuen on Simple IP control, I am not at home so I cannot give you the exact path but it is something like Network>Home Network Settings.
You then need to create a Virtual Output and give it the IP of your TV and the port number you are aiming at (see the attached screen grab). You then need to get a list of commands and add them to the virtual output (see command screen grab). Here is a list of commands that should work, don't forget to add the delimiter \n at the end of each one:

Power On *SCPOWR0000000000000001

Power Off *SCPOWR0000000000000000

Get Power Status *SEPOWR################

Input TV *SCINPT0000000000000000

Input HDMI1 *SCINPT0000000100000001

Input HDMI2 *SCINPT0000000100000002

Input HDMI3 *SCINPT0000000100000003

Input HDMI4 *SCINPT0000000100000004

Vol Mute On *SCAMUT0000000000000001

Vol Mute Off *SCAMUT0000000000000001

Vol Mute Status *SEAMUT################

Vol + *SCIRCC0000000000000030

Vol - *SCIRCC0000000000000031

DPAd UP *SCIRCC0000000000000114

DPAd DOWN *SCIRCC0000000000000115

DPAd Left *SCIRCC0000000000000116

DPAd Right *SCIRCC0000000000000117

DPAd OK *SCIRCC0000000000000113

Netflix *SCIRCC0000000000000056

Number 1 *SCIRCC0000000000000018

Number 2 *SCIRCC0000000000000019

Number 3 *SCIRCC0000000000000020

Number 4 *SCIRCC0000000000000021

Number 5 *SCIRCC0000000000000022

Number 6 *SCIRCC0000000000000023

Number 7 *SCIRCC0000000000000024

Number 8 *SCIRCC0000000000000025

Number 9 *SCIRCC0000000000000026

Number 0 *SCIRCC0000000000000027

Channel + *SCIRCC0000000000000033

Channel - *SCIRCC0000000000000033

Home *SCIRCC0000000000000006

Play *SCIRCC0000000000000077

Rewind *SCIRCC0000000000000078

Prev *SCIRCC0000000000000078

Stop *SCIRCC0000000000000080

Next *SCIRCC0000000000000081

Record *SCIRCC0000000000000082

Pause *SCIRCC0000000000000083

Up *SCIRCC0000000000000009

Down *SCIRCC0000000000000010

Right *SCIRCC0000000000000011

Left *SCIRCC0000000000000012

Confirm *SCIRCC0000000000000013

Red *SCIRCC0000000000000014

Green *SCIRCC0000000000000015

Yellow *SCIRCC0000000000000016

Blue *SCIRCC0000000000000017

Return (back?) *SCIRCC0000000000000008


As you add the commands they become available in the Media Controller for use in there or anywhere else in the config.

Command.png
Virtual Output.png

Harry Phelps

unread,
Mar 10, 2018, 9:50:48 AM3/10/18
to Loxone English
Does anyone know how I might select any installed app on the TV in the way that I can select Netflix using the command below?

RSin

unread,
Mar 4, 2020, 12:41:47 PM3/4/20
to Loxone English
I see that there are Virtual Output Device Templates for use with the Media Controller. Although the list is limited I see that you can "Import Template..."
Has anyone found a site with a stash of other templates?
Can someone share a template for a Sony TV?

TIA

Harry Phelps

unread,
Mar 5, 2020, 3:14:23 AM3/5/20
to Loxone English
I have some commands for my Sony TV, don’t have my laptop with me right now but will put some up for you when I do

RSinn

unread,
Mar 5, 2020, 4:04:10 AM3/5/20
to Loxone English
Cheers Harry. I think you can right-click in the periphery and export/save template. I'm hoping that will do the whole device rather than individual commands.

Harry Phelps

unread,
Mar 5, 2020, 11:15:52 AM3/5/20
to loxone-...@googlegroups.com
Try this, you'll have to change the IP.

Also could you let me know if using commands over IP is noticeably quicker than IR? When I want to go to HDMI1 for example using Loxone is way quicker than using the remote control.

Rob_in

unread,
Mar 6, 2020, 2:26:07 AM3/6/20
to Loxone English
On Thursday, 5 March 2020 17:15:52 UTC+1, Harry Phelps wrote:
Also could you let me know if using commands over IP is noticeably quicker than IR? When I want to go to HDMI1 for example using Loxone is way quicker than using the remote control.

Depends how long it takes you to tell Loxone to tell the TV to do something ;)

But yes, from what I see here, commands over IP are pretty much instantaneous.
 
On Wednesday, 4 March 2020 18:41:47 UTC+1, RSin wrote:
Can someone share a template for a Sony TV?

We have a Bravia smart TV and I didn't think Loxone was capable of creating the kind of requests that it's API needs due to the authentication:


Maybe I'm just an idiot and haven't realised you can turn authentication off? 8-|

Given the auth needed (or maybe not?) this is another instance where I use ioBroker (originally wrote my own script but now I'm running ioBroker just use their adapter as it's easier). Anyhow, their Bravia and Loxone adapters work flawlessly out of the box so you end up with a load of 'buttons' like this that you can easily make Loxone 'push' (just need to create a Loxone virtual output and connect that to the button - or sequence of buttons - you want with a single ioBroker block):

Screenshot from 2020-03-06 08-15-15.png


HTH,


Robin


Reply all
Reply to author
Forward
0 new messages