SmartThings Community

New Sony Bravia TV integration for 2015 - 2016 alpha

(Ram) #385

Thanks for getting back to me. Good idea but this sony device is not listed in the available device section of Webcore.

I’m not familiar with the device handler coding but we could make the refresh for each button press and it could update the status properly.

(Patrick Mjoen) #386

I find this my tv available to select as lights, switches, media controller in WebCore

(Sanfe75) #387

It is possible to modify the DH letting it update the TV status every minute, you can insert:
in the methods installed() and updated().
The pushUpdate() method should be something like:
private pushUpdate() {

    def powerJson = "{\"id\":2,\"method\":\"getPowerStatus\",\"version\":\"1.0\",\"params\":[]}"

in this way the parse() method should update the status

(Ram) #388

Hmmmm, it didn’t work for me.

(Ram) #389

What do i need to do to show up on the Webcode. It is not listed on the available devices list for me.

(Steve ) #390

This is what I use.
You first need to add the TV to webcore , just do that in the SmartThings app and then in webcore choose available devices.
I only have mine set to refresh every 5 mins I find that plenty.

1 Like
(Ram) #391

Thanks, this one helped me to refresh the TV status.

(Patrick Mjoen) #392

The status of the tv (On/Off) should not require a change of the code or using a refresh command in webCore. If you set up the Device Network ID properly it will update, I had the same issue. Here is the detail from the initial post on that:

Note: Within the Device on the SmartThings IDE the Device Network ID for Device instance must be hex of IP address and port in the form of 00000000:0000 (i.e. is 0A0001DC:0050) - if you check the logs the smart device will log the correct address that you can copy paste, once the IP address has been set. If this is not set you wont get updated on/off status. Apparently you can get the Device handler to set it but ive not been able to properly test this yet.

(Ram) #393

Thanks for jumping in. It works fine only once and I have to hit the refresh button to make it work continuously.

I did set the correct Device Network ID and I have verified the netid from the live log. All looks good but don’t know what could be the problem. I’m expecting the OP steve.bratt to jump in as well.

(Glen King) #394

Where exactly in “the logs” do I find this?

I have Live Logging going. I change from HDMI3 to HDMI4 on my Bravia.
The hex address does not show up in the live logging. I try to click on each entry, but nothing more detailed comes up.

I used an online IP to hex converter to enter the ID, but I’m not getting updated status.

(Ram) #395

Open the live log from smartthings IDE and go to your mobile Sony TV switch then settings and hit the save button then it would provide the netid.

1 Like
(TPat) #396

Works perfect with an older Bravia KDL-48w600b. Thanks OP!


I have the XBR-65X850D - don’t know how different they are (F vs. D) - but I have this Device Handler working on mine.


Thanks OP @steve.bratt for this DH! I have the XBR-65X850D (SW Vers PKG5.417.0177NAB) and it is working great in the Classic App.

I don’t know if anyone ever updated you, but in the new App you get Power button and History only.

(adam) #399

How can I check what port my tv is on? I still cannot get this to register.

(Patrick Mjoen) #400

The default port is usually 80. Do you have any logs, can you control anything?

(adam) #401

No control, not status. No communication in any way. Ive been stumped on this, took a break and tried again with the same results on both models I have. I gotta think its either a port issue or a TV setting.

(Steve ) #402

It’s your TV and hub on the same subnet.
You don’t have a proxy server do you ?
Also what’s your IP on the TV and hub ?