Python plugin: Sony Bravia TV
Moderator: leecollings
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Python plugin: Sony Bravia TV
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
Many Thanks
-
- Posts: 4
- Joined: Sunday 29 April 2018 17:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Contact:
Re: Python plugin: Sony Bravia TV
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
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.
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Python plugin: Sony Bravia TV
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
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
-
- Posts: 4
- Joined: Sunday 29 April 2018 17:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Contact:
Re: Python plugin: Sony Bravia TV
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 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
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Python plugin: Sony Bravia TV
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 wellrkx1rkx1 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
Good luck and if you need help testing.. let me know.
Many Thanks
- lmet
- Posts: 23
- Joined: Wednesday 19 July 2017 22:35
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v4.9700
- Location: France
- Contact:
Re: Python plugin: Sony Bravia TV
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.
It works on my Sony Bravia KDL-50W755c and with Imperihome and Homekit.
If that interests I can publish this work here.
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Python plugin: Sony Bravia TV
Hey,
Anything is better than nothing. For me the most important is controlling volume from within Domoticz
Cheers
Anything is better than nothing. For me the most important is controlling volume from within Domoticz
Cheers
-
- Posts: 4
- Joined: Sunday 29 April 2018 17:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Contact:
Re: Python plugin: Sony Bravia TV
I don't suppose anyone got anywhere with this did they?
-
- Posts: 331
- Joined: Monday 03 July 2017 19:58
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Python plugin: Sony Bravia TV
Ubuntu 18.04; Domoticz 4.9701 stable. The plugin still works on my android Sony.
- Dnpwwo
- Posts: 819
- Joined: Sunday 23 March 2014 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Melbourne, Australia
- Contact:
Re: Python plugin: Sony Bravia TV
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
- lmet
- Posts: 23
- Joined: Wednesday 19 July 2017 22:35
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v4.9700
- Location: France
- Contact:
Re: Python plugin: Sony Bravia TV
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.
Tested successfully with another python plugin. Not with this one because I'm using lua code now.
- Dnpwwo
- Posts: 819
- Joined: Sunday 23 March 2014 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Melbourne, Australia
- Contact:
Re: Python plugin: Sony Bravia TV
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.
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
-
- Posts: 4
- Joined: Sunday 29 April 2018 17:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Contact:
Re: Python plugin: Sony Bravia TV
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.
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.
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Python plugin: Sony Bravia TV
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 lolrkx1rkx1 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
Cheers
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Python plugin: Sony Bravia TV
Hey,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
Got this semi-working but have you noticed there is no volume slider anymore?
To get this working I followed your instructions.
Cheers
Update:- Just seen volume slider False in the settings... Whoops my bad
Re: Python plugin: Sony Bravia TV
Wanted to add the plugin to my latest stable domoticz. However can't seem to find to add it in the hardware tab... it's not listed.
Any work around available?
Looking forward to some hints.
Much appreciated.
Any work around available?
Looking forward to some hints.
Much appreciated.
-
- Posts: 45
- Joined: Wednesday 03 January 2018 15:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Switzerland
- Contact:
Re: Python plugin: Sony Bravia TV
Hello Everybody!
Just installed this plugin on latest stable: My TV is a Sony KD-60XF8305
Everything connects fine and every control i've tested so far work but......
when i shutdown TV using plugin: i can't power it ON back using domoticz; remote control immediately wake the TV back.
Here's what i got in log using debug:
2018-10-02 17:51:08.254 Status: User: admin initiated a switch command (305/TV - Status/Off)
2018-10-02 17:51:12.415 (TV) Pushing 'onCommandCallback' on to queue
2018-10-02 17:51:12.438 (TV) Processing 'onCommandCallback' message
2018-10-02 17:51:12.439 (TV) Calling message handler 'onCommand'.
2018-10-02 17:51:12.439 (TV) onCommand called for Unit 1: Parameter 'On', Level: 0
2018-10-02 17:51:12.414 Status: User: admin initiated a switch command (305/TV - Status/On)
2018-10-02 17:51:21.674 (TV) Pushing 'onCommandCallback' on to queue
2018-10-02 17:51:21.705 (TV) Processing 'onCommandCallback' message
2018-10-02 17:51:21.705 (TV) Calling message handler 'onCommand'.
2018-10-02 17:51:21.705 (TV) onCommand called for Unit 1: Parameter 'On', Level: 0
2018-10-02 17:51:21.673 Status: User: admin initiated a switch command (305/TV - Status/On)
2018-10-02 17:51:24.065 (TV) Pushing 'onHeartbeatCallback' on to queue
2018-10-02 17:51:24.109 (TV) Processing 'onHeartbeatCallback' message
2018-10-02 17:51:24.109 (TV) Calling message handler 'onHeartbeat'.
2018-10-02 17:51:24.122 (TV) Status TV: standby
2018-10-02 17:51:54.074 (TV) Pushing 'onHeartbeatCallback' on to queue
2018-10-02 17:51:54.076 (TV) Processing 'onHeartbeatCallback' message
2018-10-02 17:51:54.076 (TV) Calling message handler 'onHeartbeat'.
2018-10-02 17:51:54.090 (TV) Status TV: standby
Any hint?
Nervermind:
User avatar
G3rard
Posts: 827
Joined: Wednesday 04 March 2015 22:15
Target OS: Linux
Domoticz version: V3.8153
Location: The Netherlands
Contact: Contact G3rard
Python plugin: Sony Bravia TV
Post by G3rard » Thursday 10 August 2017 20:50
Enter 'Android' (without quotes) in the MAC address field on the Hardware page in Domoticz and press Update.
Then turning the TV on should work.
To make localtest.py work, enter 'chmod +x localtest.py' on the command line via SSH. Then ./localtest.py should work.
Works perfectly! You can add Sony Android TV KD-60XF8305 as working
Just installed this plugin on latest stable: My TV is a Sony KD-60XF8305
Everything connects fine and every control i've tested so far work but......
when i shutdown TV using plugin: i can't power it ON back using domoticz; remote control immediately wake the TV back.
Here's what i got in log using debug:
2018-10-02 17:51:08.254 Status: User: admin initiated a switch command (305/TV - Status/Off)
2018-10-02 17:51:12.415 (TV) Pushing 'onCommandCallback' on to queue
2018-10-02 17:51:12.438 (TV) Processing 'onCommandCallback' message
2018-10-02 17:51:12.439 (TV) Calling message handler 'onCommand'.
2018-10-02 17:51:12.439 (TV) onCommand called for Unit 1: Parameter 'On', Level: 0
2018-10-02 17:51:12.414 Status: User: admin initiated a switch command (305/TV - Status/On)
2018-10-02 17:51:21.674 (TV) Pushing 'onCommandCallback' on to queue
2018-10-02 17:51:21.705 (TV) Processing 'onCommandCallback' message
2018-10-02 17:51:21.705 (TV) Calling message handler 'onCommand'.
2018-10-02 17:51:21.705 (TV) onCommand called for Unit 1: Parameter 'On', Level: 0
2018-10-02 17:51:21.673 Status: User: admin initiated a switch command (305/TV - Status/On)
2018-10-02 17:51:24.065 (TV) Pushing 'onHeartbeatCallback' on to queue
2018-10-02 17:51:24.109 (TV) Processing 'onHeartbeatCallback' message
2018-10-02 17:51:24.109 (TV) Calling message handler 'onHeartbeat'.
2018-10-02 17:51:24.122 (TV) Status TV: standby
2018-10-02 17:51:54.074 (TV) Pushing 'onHeartbeatCallback' on to queue
2018-10-02 17:51:54.076 (TV) Processing 'onHeartbeatCallback' message
2018-10-02 17:51:54.076 (TV) Calling message handler 'onHeartbeat'.
2018-10-02 17:51:54.090 (TV) Status TV: standby
Any hint?
Nervermind:
User avatar
G3rard
Posts: 827
Joined: Wednesday 04 March 2015 22:15
Target OS: Linux
Domoticz version: V3.8153
Location: The Netherlands
Contact: Contact G3rard
Python plugin: Sony Bravia TV
Post by G3rard » Thursday 10 August 2017 20:50
Enter 'Android' (without quotes) in the MAC address field on the Hardware page in Domoticz and press Update.
Then turning the TV on should work.
To make localtest.py work, enter 'chmod +x localtest.py' on the command line via SSH. Then ./localtest.py should work.
Works perfectly! You can add Sony Android TV KD-60XF8305 as working
-
- Posts: 15
- Joined: Sunday 23 April 2017 3:14
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Python plugin: Sony Bravia TV
Because this plugin is no longer being maintained. And I have seen some posts from people possibly remaking this plugin.
This should help you. It exposes every single feature of the Sony TV's. I do mean everything.
https://github.com/kdschlosser/SonyAPI. There is a branch that I started work on and I have not finished up yet. the branch contains code that expands the library to include all Sony products that have the capability of bring controlled over IP
This should help you. It exposes every single feature of the Sony TV's. I do mean everything.
https://github.com/kdschlosser/SonyAPI. There is a branch that I started work on and I have not finished up yet. the branch contains code that expands the library to include all Sony products that have the capability of bring controlled over IP
-
- Posts: 132
- Joined: Tuesday 14 January 2014 0:03
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python plugin: Sony Bravia TV
I know this is an old thread and Github declares this as "No longer maintained", however does anyone know in Blockly how to change the source.
I have as per the attached image and it wont change the input.
cheers
I have as per the attached image and it wont change the input.
cheers
- Attachments
-
- blockly 1.jpg (40.49 KiB) Viewed 1329 times
Who is online
Users browsing this forum: No registered users and 1 guest