Page 6 of 11
Re: Python plugin: Sony Bravia TV
Posted: Friday 30 June 2017 22:06
by markcame
Try to :
disable the plugin
delete the cache folder inside your sony plugin folder
restart the system
than re-enable the plugin.
I have the same issue... hope this can be fixed
Re: Python plugin: Sony Bravia TV
Posted: Friday 30 June 2017 22:07
by G3rard
Which other Python plugins are you using? Then I can install these as well on my system to see what is causing the error.
The Sony plugin is running for more than a day now without any issues on my system.
Re: Python plugin: Sony Bravia TV
Posted: Friday 30 June 2017 22:14
by vgr2
markcame wrote:Try to :
disable the plugin
delete the cache folder inside your sony plugin folder
restart the system
than re-enable the plugin.
I have the same issue... hope this can be fixed
How can I do this???
Re: Python plugin: Sony Bravia TV
Posted: Friday 30 June 2017 22:19
by markcame
vgr2 wrote:markcame wrote:Try to :
disable the plugin
delete the cache folder inside your sony plugin folder
restart the system
than re-enable the plugin.
I have the same issue... hope this can be fixed
How can I do this???
i have the same issues after this for now the system is again up.
after disabling the plugin from hardware panel in domoticz, delete the folder __pycache__ inside your sony plugin installation folder
the i rebooted and i have re enabled the plugin....
for now the system say up
Re: Python plugin: Sony Bravia TV
Posted: Friday 30 June 2017 22:27
by markcame
Nothing to do after 49 minutes domoticz stop working
Re: Python plugin: Sony Bravia TV
Posted: Friday 30 June 2017 22:34
by vgr2
Sorry I could not support you. I'm not an expert but would be nice if the plugin rans without errors
Re: Python plugin: Sony Bravia TV
Posted: Saturday 01 July 2017 12:37
by markcame
I've tryed everithing but domoticz after a while crash no error was reported on the log ! there's a way to debug ?
i've no others plugins running in domoticz
Re: Python plugin: Sony Bravia TV
Posted: Saturday 01 July 2017 16:47
by markcame
here the log of domoticz
Code: Select all
2017-07-01 16:21:04.909 Error: Domoticz received fatal signal 11 !...
2017-07-01 16:21:04.912 Error: /home/pi/domoticz/domoticz() [0x1ccd8c]
2017-07-01 16:21:04.912 Error: /home/pi/domoticz/domoticz(_Z14signal_handleri+0x58) [0x1cce44]
2017-07-01 16:21:04.912 Error: /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0x76ac8180]
Re: Python plugin: Sony Bravia TV
Posted: Monday 03 July 2017 20:34
by febalci
@G3rard, thank you very much for the plugin. Beginner for Domoticz here. Using your plugin with Android Bravia KD55XD8505. Everything works except for the "Switch on" command. I was an openhab user and was using a Simple IP binding for my Bravia and it was working well. Are there any plans for a Simple IP plugin or should i use an LUA script for my condition or is your plugin Simple IP already?
Thanks again ...
Re: Python plugin: Sony Bravia TV
Posted: Tuesday 04 July 2017 22:47
by G3rard
markcame wrote:here the log of domoticz
Code: Select all
2017-07-01 16:21:04.909 Error: Domoticz received fatal signal 11 !...
2017-07-01 16:21:04.912 Error: /home/pi/domoticz/domoticz() [0x1ccd8c]
2017-07-01 16:21:04.912 Error: /home/pi/domoticz/domoticz(_Z14signal_handleri+0x58) [0x1cce44]
2017-07-01 16:21:04.912 Error: /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0x76ac8180]
That is a generic error which is seen at other Python plugins as well, see the following posts.
https://www.domoticz.com/forum/viewtopi ... 05#p139741
https://www.domoticz.com/forum/viewtopi ... 13#p139528
I cannot fix this in the code of the plugin. I think this has to be fixed in the Python framework.
Also seems this only occurs on a Pi, as I don't have this error on my Ubuntu 14.04 server which is running the Sony Bravia and Sonos plugins for 5 days now.
Maybe @Dnpwwo can have a look at this?
Re: Python plugin: Sony Bravia TV
Posted: Tuesday 04 July 2017 22:57
by G3rard
febalci wrote:@G3rard, thank you very much for the plugin. Beginner for Domoticz here. Using your plugin with Android Bravia KD55XD8505. Everything works except for the "Switch on" command. I was an openhab user and was using a Simple IP binding for my Bravia and it was working well. Are there any plans for a Simple IP plugin or should i use an LUA script for my condition or is your plugin Simple IP already?
Thanks again ...
Your welcome
Can you try the latest version 1.0 of the plugin and use "Android" as your MAC address?
Maybe the switch on then works. See also this
post. I updated the code according to that post.
I have no plans to use the Simple IP control since it is a lot of work to migrate to that and it has no extra features that I would like to use.
Re: Python plugin: Sony Bravia TV
Posted: Tuesday 04 July 2017 23:32
by febalci
Can you try the latest version 1.0 of the plugin and use "Android" as your MAC address?
Maybe the switch on then works. See also this post. I updated the code according to that post.
Wow, i was using version 1.0 already and i might swear i tried "Android" as MAc yesterday and it didn't worked. But today magically it worked... I guess there might be some problem with the switch in the Dashboard, it barely works (i simply have no idea how) since in Switches page it always works.
Thanks again
Re: Python plugin: Sony Bravia TV
Posted: Tuesday 04 July 2017 23:43
by markcame
G3rard wrote:markcame wrote:here the log of domoticz
Code: Select all
2017-07-01 16:21:04.909 Error: Domoticz received fatal signal 11 !...
2017-07-01 16:21:04.912 Error: /home/pi/domoticz/domoticz() [0x1ccd8c]
2017-07-01 16:21:04.912 Error: /home/pi/domoticz/domoticz(_Z14signal_handleri+0x58) [0x1cce44]
2017-07-01 16:21:04.912 Error: /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0x76ac8180]
That is a generic error which is seen at other Python plugins as well, see the following posts.
https://www.domoticz.com/forum/viewtopi ... 05#p139741
https://www.domoticz.com/forum/viewtopi ... 13#p139528
I cannot fix this in the code of the plugin. I think this has to be fixed in the Python framework.
Also seems this only occurs on a Pi, as I don't have this error on my Ubuntu 14.04 server which is running the Sony Bravia and Sonos plugins for 5 days now.
Maybe @Dnpwwo can have a look at this?
I think you are right, the issue is in the framework, i hope this can be fixed, for now i have disabled the plugin for now, if i can help i'm available.
Re: Python plugin: Sony Bravia TV
Posted: Saturday 05 August 2017 19:21
by lmet
Hi,
Sorry for this beginner question but it would be very nice if someone could help me.
I'm trying to use this plugin for my Sony Bravia TV
Python seems to be Ok
Code: Select all
2017-08-05 18:25:02.759 PluginSystem: Started, Python version '3.4.2'.
On "Setup" "Hardware" I see a Sony Bravia TV (with Kodi remote)
But nothing about changing parameters like IP address PSK ...
So i choose to clic "add" and in the list button setup does nothing.
In the log in can find :
Code: Select all
2017-08-05 18:32:59.264 Error: () failed to load 'plugin.py', Python Path used was ':/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload'.
2017-08-05 18:32:59.264 Error: (Sony) Module Import failed, exception: 'ImportError'
2017-08-05 18:32:59.264 Error: (Sony) Module Import failed: ' Name: plugin'
2017-08-05 18:34:00.734 Error: Sony hardware (25) thread seems to have ended unexpectedly
If i try localtest.py I get
Code: Select all
No reaction of TV, assumed is off
TV status : off
I've done all the setup on my TV a KDL-50W755c
Thanks in advance
Re: Python plugin: Sony Bravia TV
Posted: Sunday 06 August 2017 20:08
by simon_rb
lmet wrote:Hi,
Sorry for this beginner question but it would be very nice if someone could help me.
I'm trying to use this plugin for my Sony Bravia TV
Python seems to be Ok
Code: Select all
2017-08-05 18:25:02.759 PluginSystem: Started, Python version '3.4.2'.
On "Setup" "Hardware" I see a Sony Bravia TV (with Kodi remote)
But nothing about changing parameters like IP address PSK ...
So i choose to clic "add" and in the list button setup does nothing.
In the log in can find :
Code: Select all
2017-08-05 18:32:59.264 Error: () failed to load 'plugin.py', Python Path used was ':/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload'.
2017-08-05 18:32:59.264 Error: (Sony) Module Import failed, exception: 'ImportError'
2017-08-05 18:32:59.264 Error: (Sony) Module Import failed: ' Name: plugin'
2017-08-05 18:34:00.734 Error: Sony hardware (25) thread seems to have ended unexpectedly
If i try localtest.py I get
Code: Select all
No reaction of TV, assumed is off
TV status : off
I've done all the setup on my TV a KDL-50W755c
Thanks in advance
I have just updated and have the exact same error. Any idea's anyone?
Cheers

Re: Python plugin: Sony Bravia TV
Posted: Sunday 06 August 2017 21:41
by G3rard
@lmet, @simon_rb,
Please download plugin.py and bravia.py from
https://github.com/gerard33/sony-bravia ... evelopment to see if that works for you.
That version works here without the error message on startup.
Edit: @simon_rb confirmed that version works, so I have pushed those changes to the master brance. The latest version of the plugin is now version 1.2.
Re: Python plugin: Sony Bravia TV
Posted: Monday 07 August 2017 1:44
by lmet
@G3rard same issue,
Changing type of device to Sony Bravia TV (with Kodi remote) then Update always return to Awox SmartPlug
Thanks for your help
Re: Python plugin: Sony Bravia TV
Posted: Monday 07 August 2017 12:31
by G3rard
@lmet, that looks like a browser cache issue. Can you clear browser cache and appcache?
Or open Domoticz in incognito tab to see if it solves this issue.
Re: Python plugin: Sony Bravia TV
Posted: Monday 07 August 2017 15:42
by lmet
@G3rard you were right Thanks a lot
The only thing that does'nt works is power on tv with the plugin. May be here :

- img_003.jpg (60.08 KiB) Viewed 3530 times
The address is entered in the file

- img_004.jpg (23.63 KiB) Viewed 3530 times
Re: Python plugin: Sony Bravia TV
Posted: Monday 07 August 2017 16:10
by G3rard
Do you have an Android tv?
Then enter 'Android' (without the quotes) in the PSK field in Domoticz hardware.