Sony TV Driver

I'm not a developer, but I was able to get some functionality out of this driver for the Sony Bravia TV.

I created a fork from Smarthings

This is the ST Source and details

and here is my fork updated for HE.

I was using this with ST, so I just used the same values I was already using. The ST post gives all the needed info about how to get the correct device ID for the device. It's a the hex version of the IP of your TV.

I had a piston that I used based on the TV being on, so this will be a nice addition for me. Not sure how many other people are using Sony TV's.

Works with latest Hub update.

1 Like

I have found one issue. It does not update the status unless I poll. There is not automatic poll. I’ll have to set up something scheduled to keep the status up to date. Other wise it works well. TV, on/off, etc

Awesome. Just got an 850f and was hoping I could call the status whether it's on or off and control the power. Any updates to this?

Updates as in what? Did you try it, and it didn't work?

It works, i would just like to see the buttons laid out a bit different. More importantly though, status of sound level. Also scared to take the next android update, as this hasn't updated in a year.

1 Like

I set this up on my XBR-85X900F. It works, but needs some improvement. I'm going to start working on this a little in a few weeks when I'm back at home from some work travel.

One thing I need for sure is automatic polling of ON/OFF status, as that is the main thing I want from this. I'll probably set it up for either once/min or once/5 min (like the Roku TV driver does currently).

I use this driver on smartthings and all I did was attach a smart plug with power monitoring to the tv then on standby it uses about 20w and on about 85w so just wrote a rule when power goes above 40w poll and goes below 40w poll this keeps the status up-to-date without having to poll every so often and is more responsive.

1 Like

I have a power plug on mine too. I would like to get rid of that power plug, though. :smile:

This driver is almost next on my list to work on. I'll get to it eventually.

1 Like

I just removed all the debug logging in that driver. I had a rule that updated the status of the TV (On/off) on motion in the TV Room, since the driver doesnt update status if it's turned on via the remote. But upon movement in TV room, it has been spamming my logs with chattiness. Wish I'd done it sooner.

My needs were much simpler than the very full featured driver in the OP. So I made a "Lite" version.

This version:

  • removes all of the commands I didn't need (but I left the command code in, so you can add any back you may need)
  • Adds optional debug logging / auto debug logging turn off
  • Refreshes device ON/OFF status every minute automatically

https://raw.githubusercontent.com/Botched1/Hubitat/master/Drivers/Sony%20TV%20Lite/Sony%20TV%20Lite.groovy

1 Like

Is there any reason why I couldn't refresh more periodically or would this be resource hungry ?

I don't know - to be frank. LAN drivers are not my specialty.

I do know there have been hub performance/lockup issues on other drivers and apps if the HTTP calls get hung up/don't respond in a timely fashion.

I would say to try it, and watch the system. If you have issues, change it back.

Thanks, 1 minute is good enough for me for now, thanks for the driver or at least modding it

Pretty new to Hubitat, but I loaded the device driver for the Sony TV and it is working on a KD-65x8500c. I would like to create a TV dashboard with control buttons but I have no idea how to do it with this driver. I can control the TV with the device buttons, but I want to add these to a dashboard. Can someone help me achieve this ?

I can't think of any easy way to do it. All of the functions are exposed as Commands, and offhand I don't know of a way to put a command on a dashboard tile in a way you can interact with it.

You can use the Attribute tile type to SEE pretty much any parameter, but you can't "press" an attribute tile.

I think you can create a virtual button. Then create a rule in rule machine to push a command button whenever you click the virtual button.

1 Like

Hi @JasonJoel,

How do I use this feature in a rule in RM 4.0?
Refreshes device ON/OFF status every minute automatically. I have a rule as below:

Even though my TV is off for more than 10 mins, it still shows as on and does not refresh ON/OFF automatically.

Can you please help?

This driver works great with my 2016 Bravia in the living room but the commands don’t work with my 2019/2020 Bravia in the bedroom. Presume that Sony has changed something inbetween. Does anyone know if someone had built a newer driver than this one?

Don't know... I do know it works fine w/my 2019 Bravia ("F" model letter) though. Are you 100% sure you setup the network access/security the same on the new TV?

i'll check again, in case i've missed something. It works great with the living room TV just when I set it up for the bedroom TV i'm getting nothing from it. i'll check the details again :slight_smile:

1 Like