Python plugin: Sony Bravia TV

Python and python framework
simon_rb
Posts: 700
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Python plugin: Sony Bravia TV

Post by simon_rb » Friday 29 June 2018 22:54

Is this plugin working for people with the new stable release? Its crashing my Domoticz so I've had to remove it for the time being.

Many Thanks

rkx1rkx1
Posts: 4
Joined: Sunday 29 April 2018 17:57
Target OS: Raspberry Pi
Domoticz version: 3.8153
Contact:

Re: Python plugin: Sony Bravia TV

Post by rkx1rkx1 » Monday 02 July 2018 20:47

Simon_rb,

Since updating to the latest stable release, the Bravia plug in from gerard33 is no longer working for me either. Which is a nightmare! I had to roll back to the previous version of Domoticz as i rely on the plug in to control the TV from home assistant. (Kids are always loosing the remote control!)

There were previous conflicts with DzVentz/PIR plugin and a python segmentation issue. I had to disable DzVentz to get it working in the previous release otherwise a restart didn't bring the Domoticz service up. It could be a similar issue again. I am following this thread to see if anyone comes up with a solution. There are other basic scripts out there that can be pulled together to give some basic functionality but i did love this plug in.


Cheers Rich
Last edited by rkx1rkx1 on Tuesday 03 July 2018 13:26, edited 1 time in total.

simon_rb
Posts: 700
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Python plugin: Sony Bravia TV

Post by simon_rb » Tuesday 03 July 2018 13:05

Hi Rich,

Thats a shame, I was hoping it was my setup :(

I don't think the developer uses domoticz anymore so we might need a new, clever sole to take over. Hopefully I'm wrong.

Many Thanks

rkx1rkx1
Posts: 4
Joined: Sunday 29 April 2018 17:57
Target OS: Raspberry Pi
Domoticz version: 3.8153
Contact:

Re: Python plugin: Sony Bravia TV

Post by rkx1rkx1 » Tuesday 03 July 2018 13:30

His github also states 'This plugin is no longer maintained'.

I have freshly installed the latest stable Domoticz on a separate Pi and will continue to do some testing to see if it can be fixed otherwise I may start to make my own. Will share if anything good comes of it.


Cheers Rich

simon_rb
Posts: 700
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Python plugin: Sony Bravia TV

Post by simon_rb » Tuesday 03 July 2018 13:41

rkx1rkx1 wrote:
Tuesday 03 July 2018 13:30
His github also states 'This plugin is no longer maintained'.

I have freshly installed the latest stable Domoticz on a separate Pi and will continue to do some testing to see if it can be fixed otherwise I may start to make my own. Will share if anything good comes of it.


Cheers Rich
I noticed the same Rich, I modified the original slightly so that the volume dimmer switch when powered off would turn the TV off and powered on would turn it on. Then using HomeKit I could say turn on the living tv or set living room to to 30 etc.. Worked well :D

Good luck and if you need help testing.. let me know.

Many Thanks

User avatar
lmet
Posts: 27
Joined: Wednesday 19 July 2017 22:35
Target OS: Raspberry Pi
Domoticz version: v4.9700
Location: France
Contact:

Re: Python plugin: Sony Bravia TV

Post by lmet » Tuesday 03 July 2018 15:35

For me too the plugin does not work anymore. I took over the work of StefanPuntNL (thanks to him) here and after some additions/modifications I have a lua code to turn on and off the TV and a script to change channels including channels greater than 9. It's basic nothing about sound or channel like NetFlix or other features.
It works on my Sony Bravia KDL-50W755c and with Imperihome and Homekit.
If that interests I can publish this work here.

simon_rb
Posts: 700
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Python plugin: Sony Bravia TV

Post by simon_rb » Tuesday 03 July 2018 20:54

Hey,

Anything is better than nothing. For me the most important is controlling volume from within Domoticz

Cheers

rkx1rkx1
Posts: 4
Joined: Sunday 29 April 2018 17:57
Target OS: Raspberry Pi
Domoticz version: 3.8153
Contact:

Re: Python plugin: Sony Bravia TV

Post by rkx1rkx1 » Friday 27 July 2018 12:11

I don't suppose anyone got anywhere with this did they?

febalci
Posts: 317
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python plugin: Sony Bravia TV

Post by febalci » Friday 27 July 2018 13:31

Ubuntu 18.04; Domoticz 4.9701 stable. The plugin still works on my android Sony.

User avatar
Dnpwwo
Posts: 727
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Python plugin: Sony Bravia TV

Post by Dnpwwo » Sunday 29 July 2018 5:15

If people with this failing on a recent beta (or last stable) enable debugging for the plugin and post some log output it might be possible to diagnose the problem.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw

User avatar
lmet
Posts: 27
Joined: Wednesday 19 July 2017 22:35
Target OS: Raspberry Pi
Domoticz version: v4.9700
Location: France
Contact:

Re: Python plugin: Sony Bravia TV

Post by lmet » Sunday 29 July 2018 19:52

Maybe a conflict related to version 3.5 of python and stretch see here at "Troubleshooting" section.
Tested successfully with another python plugin. Not with this one because I'm using lua code now.

User avatar
Dnpwwo
Posts: 727
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Python plugin: Sony Bravia TV

Post by Dnpwwo » Sunday 29 July 2018 23:26

That information is out of date and I have updated the wiki page.

Issues on Stretch were SSL library related and were resolved prior to the last stable release.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw

rkx1rkx1
Posts: 4
Joined: Sunday 29 April 2018 17:57
Target OS: Raspberry Pi
Domoticz version: 3.8153
Contact:

Re: Python plugin: Sony Bravia TV

Post by rkx1rkx1 » Wednesday 01 August 2018 16:29

After a day of fiddling (installing domoticz from source/different raspian versions) I managed to get the Sony-Bravia plugin working.

I used etcher to install the latest stretch lite onto a 64gb class 10. Expanded the filesystem and set all the settings correctly in Raspi-config.

Did the easy install of domoticz curl -L install.domoticz.com | sudo bash

Do all the other config bits you normally do to get you up and running (Upload database/configure your hardware/install apache and certbot ssl etc.)

Then the key for me was to sudo apt-get install python3-dev this stopped the complaining about (Failed dynamic library load, install the latest libpython3.x library)

Do not bother changing the libpython version or running a -dev this only makes things worse and any python plugin seems to crash the system.

Now I have the latest Stable with working plugins. There are quite a few lua scripts out there that can fulfil most of these just from EVENTS in domoticz. For those that dont get that involved the above is working a treat for me.
Sony plug in.png
Sony plug in.png (74.28 KiB) Viewed 204 times

User avatar
lmet
Posts: 27
Joined: Wednesday 19 July 2017 22:35
Target OS: Raspberry Pi
Domoticz version: v4.9700
Location: France
Contact:

Re: Python plugin: Sony Bravia TV

Post by lmet » Wednesday 01 August 2018 16:40

Dnpwwo wrote:
Sunday 29 July 2018 23:26
That information is out of date and I have updated the wiki page.

Issues on Stretch were SSL library related and were resolved prior to the last stable release.
Maybe only one eye is not enough ;) Never talk about SSL library but python version issue.

simon_rb
Posts: 700
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Python plugin: Sony Bravia TV

Post by simon_rb » Wednesday 15 August 2018 1:23

rkx1rkx1 wrote:
Wednesday 01 August 2018 16:29
After a day of fiddling (installing domoticz from source/different raspian versions) I managed to get the Sony-Bravia plugin working.

I used etcher to install the latest stretch lite onto a 64gb class 10. Expanded the filesystem and set all the settings correctly in Raspi-config.

Did the easy install of domoticz curl -L install.domoticz.com | sudo bash

Do all the other config bits you normally do to get you up and running (Upload database/configure your hardware/install apache and certbot ssl etc.)

Then the key for me was to sudo apt-get install python3-dev this stopped the complaining about (Failed dynamic library load, install the latest libpython3.x library)

Do not bother changing the libpython version or running a -dev this only makes things worse and any python plugin seems to crash the system.

Now I have the latest Stable with working plugins. There are quite a few lua scripts out there that can fulfil most of these just from EVENTS in domoticz. For those that dont get that involved the above is working a treat for me.Sony plug in.png
Are we saying its a Python issue? Wonder if I can remove python from my Jessie setup and start fresh with that?!? I have a lot setup on my Raspberry Pi and to change it to Stretch would be a pain. I try not to update until its absolutely necessary lol

Cheers

Post Reply

Who is online

Users browsing this forum: l00pz and 0 guests