Would like to get it working though
Python Plugin: Samsung TV
Moderator: leecollings
-
Calzor Suzay
- Posts: 145
- Joined: Tuesday 08 July 2014 15:10
- Target OS: -
- Domoticz version: 4.9700
- Location: UK
- Contact:
Re: Python Plugin: Samsung TV
I've for now got rid of plugin.py as it seems to crash Domoticz.
Would like to get it working though
Would like to get it working though
-
dextm80
- Posts: 117
- Joined: Tuesday 24 October 2017 18:32
- Target OS: Linux
- Domoticz version: 4.10159
- Contact:
Re: Python Plugin: Samsung TV
News about a simple guide?
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
-
dextm80
- Posts: 117
- Joined: Tuesday 24 October 2017 18:32
- Target OS: Linux
- Domoticz version: 4.10159
- Contact:
Re: Python Plugin: Samsung TV
when i try this command: samsungctl -i --host xxx.xxx.x.xx --method websocket
Traceback (most recent call last):
File "/usr/local/bin/samsungctl", line 11, in <module>
load_entry_point('samsungctl==0.7.1', 'console_scripts', 'samsungctl')()
File "/usr/lib/python3.5/samsungctl/__main__.py", line 110, in main
with Remote(config) as remote:
File "/usr/lib/python3.5/samsungctl/remote.py", line 11, in __init__
self.remote = RemoteWebsocket(config)
File "/usr/lib/python3.5/samsungctl/remote_websocket.py", line 30, in __init__
self._read_response()
File "/usr/lib/python3.5/samsungctl/remote_websocket.py", line 72, in _read_response
raise exceptions.UnhandledResponse(response)
samsungctl.exceptions.UnhandledResponse: {'event': 'ms.channel.timeOut'}
any ideas?
Traceback (most recent call last):
File "/usr/local/bin/samsungctl", line 11, in <module>
load_entry_point('samsungctl==0.7.1', 'console_scripts', 'samsungctl')()
File "/usr/lib/python3.5/samsungctl/__main__.py", line 110, in main
with Remote(config) as remote:
File "/usr/lib/python3.5/samsungctl/remote.py", line 11, in __init__
self.remote = RemoteWebsocket(config)
File "/usr/lib/python3.5/samsungctl/remote_websocket.py", line 30, in __init__
self._read_response()
File "/usr/lib/python3.5/samsungctl/remote_websocket.py", line 72, in _read_response
raise exceptions.UnhandledResponse(response)
samsungctl.exceptions.UnhandledResponse: {'event': 'ms.channel.timeOut'}
any ideas?
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
-
zak45
- Posts: 954
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin: Samsung TV
@dextm80
do you have tried in this way :
samsungctl -i --host x.x.x.x --port 8001 --method websocket --timeout 1
Samsungctl do not work on all model ... here is the link to the supported models:
https://github.com/Ape/samsungctl/wiki/Supported-Models
do you have tried in this way :
samsungctl -i --host x.x.x.x --port 8001 --method websocket --timeout 1
Samsungctl do not work on all model ... here is the link to the supported models:
https://github.com/Ape/samsungctl/wiki/Supported-Models
-
dextm80
- Posts: 117
- Joined: Tuesday 24 October 2017 18:32
- Target OS: Linux
- Domoticz version: 4.10159
- Contact:
Re: Python Plugin: Samsung TV
Hi zak45 thanks. I ve 65ks7000
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
-
HM31
- Posts: 56
- Joined: Friday 04 August 2017 16:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Samsung TV
It seems that on Synology access to pip3 must be done from inside python3. I follow a combination of this http://blog.vincentpau.com/2015/08/17/where-is-pip3/ and, of course, this https://www.domoticz.com/wiki/Plugins/SamsungTV.html to install samsungctl on my two Synology. But on the one with DSM 5.2 the Python Plugins seems not to be implemented on evansport architecture (ds214play), thus i can't have Samsung TV hardware . And on the other one, with DSM 6.1, I got the Samsung TV in hardware list but this is at another place where I don't have the TV ...EdwinK wrote: Sunday 14 May 2017 17:28 Thanks. Going to try this.
Before that I already did a 'sudo -i' (something that Synology wants instead of just plain sudo'.Code: Select all
root@DiskStation:/volume3/@appstore/domoticz/var/scripts/python# pip3 intall samsungctl -ash: pip3: command not found
Does anyone have built a version of Domoticz on ds214play with DSM 5.2 and python extension installed because jahdal don't have (http://www.jadahl.com/domoticz_beta_5.2 ... 20Version/)
-
dextm80
- Posts: 117
- Joined: Tuesday 24 October 2017 18:32
- Target OS: Linux
- Domoticz version: 4.10159
- Contact:
Re: Python Plugin: Samsung TV
ok with your command i'm able to connetct my samsung tv, but if i go to domoticz, install plugin, this is log:zak45 wrote: Sunday 21 January 2018 12:22 @dextm80
do you have tried in this way :
samsungctl -i --host x.x.x.x --port 8001 --method websocket --timeout 1
Samsungctl do not work on all model ... here is the link to the supported models:
https://github.com/Ape/samsungctl/wiki/Supported-Models
Code: Select all
2018-01-24 18:38:40.521 Error: (Samsung) 'onCommand' failed 'ImportError'.
2018-01-24 18:38:40.521 Error: (Samsung) ----> Line 179 in /home/luigi/domoticz/plugins/SamsungTV/plugin.py, function onCommand
2018-01-24 18:38:40.521 Error: (Samsung) ----> Line 287 in /home/luigi/domoticz/plugins/SamsungTV/plugin.py, function SamsungSend
2018-01-24 18:38:40.521 Error: (Samsung) ----> Line 11 in /usr/lib/python3.5/samsungctl/remote.py, function __init__
2018-01-24 18:38:40.521 Error: (Samsung) ----> Line 17 in /usr/lib/python3.5/samsungctl/remote_websocket.py, function __init__
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
- jumbotroll
- Posts: 793
- Joined: Tuesday 13 January 2015 14:36
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Oslo,Norway
- Contact:
Re: Python Plugin: Samsung TV
I can compile a test version for you with Python plugin, but you have to take backup of your database and scripts and uninstall the old domoticz version before you install the new version with Python plugin.HM31 wrote: Sunday 21 January 2018 16:16It seems that on Synology access to pip3 must be done from inside python3. I follow a combination of this http://blog.vincentpau.com/2015/08/17/where-is-pip3/ and, of course, this https://www.domoticz.com/wiki/Plugins/SamsungTV.html to install samsungctl on my two Synology. But on the one with DSM 5.2 the Python Plugins seems not to be implemented on evansport architecture (ds214play), thus i can't have Samsung TV hardware . And on the other one, with DSM 6.1, I got the Samsung TV in hardware list but this is at another place where I don't have the TV ...EdwinK wrote: Sunday 14 May 2017 17:28 Thanks. Going to try this.
Before that I already did a 'sudo -i' (something that Synology wants instead of just plain sudo'.Code: Select all
root@DiskStation:/volume3/@appstore/domoticz/var/scripts/python# pip3 intall samsungctl -ash: pip3: command not found
Does anyone have built a version of Domoticz on ds214play with DSM 5.2 and python extension installed because jahdal don't have (http://www.jadahl.com/domoticz_beta_5.2 ... 20Version/)
I have limited time to do support on this test build, so use it at own risk.
BTW DS214play use arch-evansport, check on my server for it in 20 min.
http://www.jadahl.com/domoticz_beta_5.2 ... 20Version/
You also have to install Python spk package for DSM5.2 from here: http://ukdl.synology.com/download/Packa ... .4.1-0101/
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
-
zak45
- Posts: 954
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin: Samsung TV
New version uploaded, 2.0.1, give it a try and let me know.dextm80 wrote: Wednesday 24 January 2018 18:50can you help me?Code: Select all
2018-01-24 18:38:40.521 Error: (Samsung) 'onCommand' failed 'ImportError'. 2018-01-24 18:38:40.521 Error: (Samsung) ----> Line 179 in /home/luigi/domoticz/plugins/SamsungTV/plugin.py, function onCommand 2018-01-24 18:38:40.521 Error: (Samsung) ----> Line 287 in /home/luigi/domoticz/plugins/SamsungTV/plugin.py, function SamsungSend 2018-01-24 18:38:40.521 Error: (Samsung) ----> Line 11 in /usr/lib/python3.5/samsungctl/remote.py, function __init__ 2018-01-24 18:38:40.521 Error: (Samsung) ----> Line 17 in /usr/lib/python3.5/samsungctl/remote_websocket.py, function __init__
-
dextm80
- Posts: 117
- Joined: Tuesday 24 October 2017 18:32
- Target OS: Linux
- Domoticz version: 4.10159
- Contact:
Re: Python Plugin: Samsung TV
Sorry, i'm a newbie, how and what can i update (samsungctl is 0.7 verision)?zak45 wrote: Wednesday 24 January 2018 20:30New version uploaded, 2.0.1, give it a try and let me know.dextm80 wrote: Wednesday 24 January 2018 18:50can you help me?Code: Select all
2018-01-24 18:38:40.521 Error: (Samsung) 'onCommand' failed 'ImportError'. 2018-01-24 18:38:40.521 Error: (Samsung) ----> Line 179 in /home/luigi/domoticz/plugins/SamsungTV/plugin.py, function onCommand 2018-01-24 18:38:40.521 Error: (Samsung) ----> Line 287 in /home/luigi/domoticz/plugins/SamsungTV/plugin.py, function SamsungSend 2018-01-24 18:38:40.521 Error: (Samsung) ----> Line 11 in /usr/lib/python3.5/samsungctl/remote.py, function __init__ 2018-01-24 18:38:40.521 Error: (Samsung) ----> Line 17 in /usr/lib/python3.5/samsungctl/remote_websocket.py, function __init__
Thanks
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
-
HM31
- Posts: 56
- Joined: Friday 04 August 2017 16:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Samsung TV
Many thanks.jumbotroll wrote: Wednesday 24 January 2018 19:14
You also have to install Python spk package for DSM5.2 from here: http://ukdl.synology.com/download/Packa ... .4.1-0101/
Hope it will work because on another post you mentionned that Python3 must be v3.5.1 to work (with DSM 6.1 by the way) and it seems that on DSM 5.2 the last version Python V3 version is V3.4.1-0032 for DS214Play DSM 5.2. I can't install the version of Python you gave because it needs DSM 6.0
-
zak45
- Posts: 954
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin: Samsung TV
Download plugin.py from dropbox.dextm80 wrote: Wednesday 24 January 2018 20:38
Sorry, i'm a newbie, how and what can i update (samsungctl is 0.7 verision)?
Thanks
-
HM31
- Posts: 56
- Joined: Friday 04 August 2017 16:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Samsung TV
Doesn't change anything for me on DSM 6.1.zak45 wrote: Tuesday 06 June 2017 12:27 @Drikus
thanks for this TIP.
if someone else using Synology can confirm.. then will add that to the wiki.
-
Gdroos68
- Posts: 5
- Joined: Saturday 24 February 2018 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Samsung TV
I want to use this plugin with my Samsung QLED tv. When I install this plugin in my hardware and I use port 8001, it sees whether my TV is alive. However Domoticz gets really unstable and I many times I can not even acces domoticz anymore by means of my webbrowser. The only possibility I then have is to replace the domoticz.db and/or domoticz.sh. Does anybody know how to resolve?
Possibly "Calzor Suzay" has the same issue.
After losing domoticz once again, I restarted with ./domoticz and got the following:
2018-02-24 16:03:28.574 (TV) 'Mode4':'5'
2018-02-24 16:03:28.574 (TV) 'Mode1':'websocket'
2018-02-24 16:03:28.574 (TV) 'HomeFolder':'/home/pi/domoticz/plugins/SamsungTV/'
2018-02-24 16:03:28.575 (TV) 'DomoticzVersion':'3.8942'
2018-02-24 16:03:28.575 (TV) 'DomoticzHash':'05840f3c'
2018-02-24 16:03:28.575 (TV) 'Mode6':'Debug'
2018-02-24 16:03:28.575 (TV) 'Author':'zak45'
2018-02-24 16:03:28.575 (TV) 'HardwareID':'7'
2018-02-24 16:03:28.575 (TV) 'Name':'TV'
2018-02-24 16:03:28.575 (TV) 'DomoticzBuildTime':'2018-02-23 14:20:54'
2018-02-24 16:03:28.575 (TV) 'Key':'SamsungTV'
2018-02-24 16:03:28.575 (TV) 'Mode2':'samsungctl'
2018-02-24 16:03:28.575 (TV) 'Port':'8001'
2018-02-24 16:03:28.575 (TV) 'Address':'192.168.1.152'
2018-02-24 16:03:28.575 (TV) 'Version':'2.0.1'
2018-02-24 16:03:28.575 (TV) Device count: 4
2018-02-24 16:03:28.575 (TV) Device: 1 - ID: 95, Name: 'TV - Status', nValue: 1, sValue: 'Samsung On'
2018-02-24 16:03:28.575 (TV) Device ID: '95'
2018-02-24 16:03:28.576 (TV) Device Name: 'TV - Status'
2018-02-24 16:03:28.576 (TV) Device nValue: 1
2018-02-24 16:03:28.576 (TV) Device sValue: 'Samsung On'
2018-02-24 16:03:28.576 (TV) Device LastLevel: 0
2018-02-24 16:03:28.576 (TV) Device: 2 - ID: 96, Name: 'TV - Source', nValue: 10, sValue: '10'
2018-02-24 16:03:28.576 (TV) Device ID: '96'
2018-02-24 16:03:28.576 (TV) Device Name: 'TV - Source'
2018-02-24 16:03:28.576 (TV) Device nValue: 10
2018-02-24 16:03:28.576 (TV) Device sValue: '10'
2018-02-24 16:03:28.576 (TV) Device LastLevel: 0
2018-02-24 16:03:28.576 (TV) Device: 3 - ID: 97, Name: 'TV - Volume', nValue: 10, sValue: '10'
2018-02-24 16:03:28.576 (TV) Device ID: '97'
2018-02-24 16:03:28.576 (TV) Device Name: 'TV - Volume'
2018-02-24 16:03:28.576 (TV) Device nValue: 10
2018-02-24 16:03:28.576 (TV) Device sValue: '10'
2018-02-24 16:03:28.577 (TV) Device LastLevel: 0
2018-02-24 16:03:28.577 (TV) Device: 4 - ID: 98, Name: 'TV - Input', nValue: 10, sValue: '10'
2018-02-24 16:03:28.577 (TV) Device ID: '98'
2018-02-24 16:03:28.577 (TV) Device Name: 'TV - Input'
2018-02-24 16:03:28.577 (TV) Device nValue: 10
2018-02-24 16:03:28.577 (TV) Device sValue: '10'
2018-02-24 16:03:28.577 (TV) Device LastLevel: 0
2018-02-24 16:03:28.577 (TV) Connecting to: 192.168.1.152:8001
2018-02-24 16:03:28.600 (TV) isAlive status :True
2018-02-24 16:03:28.600 (TV) Devices are connected - Initialisation
Segmentation fault
And Domoticz stops. If i turn of the tv and again use ./domoticz, domoticz keeps running and I can remove the samsung plugin and autostart agoin works.
Maybe this helps in figuring out what goes wrong.
Possibly "Calzor Suzay" has the same issue.
After losing domoticz once again, I restarted with ./domoticz and got the following:
2018-02-24 16:03:28.574 (TV) 'Mode4':'5'
2018-02-24 16:03:28.574 (TV) 'Mode1':'websocket'
2018-02-24 16:03:28.574 (TV) 'HomeFolder':'/home/pi/domoticz/plugins/SamsungTV/'
2018-02-24 16:03:28.575 (TV) 'DomoticzVersion':'3.8942'
2018-02-24 16:03:28.575 (TV) 'DomoticzHash':'05840f3c'
2018-02-24 16:03:28.575 (TV) 'Mode6':'Debug'
2018-02-24 16:03:28.575 (TV) 'Author':'zak45'
2018-02-24 16:03:28.575 (TV) 'HardwareID':'7'
2018-02-24 16:03:28.575 (TV) 'Name':'TV'
2018-02-24 16:03:28.575 (TV) 'DomoticzBuildTime':'2018-02-23 14:20:54'
2018-02-24 16:03:28.575 (TV) 'Key':'SamsungTV'
2018-02-24 16:03:28.575 (TV) 'Mode2':'samsungctl'
2018-02-24 16:03:28.575 (TV) 'Port':'8001'
2018-02-24 16:03:28.575 (TV) 'Address':'192.168.1.152'
2018-02-24 16:03:28.575 (TV) 'Version':'2.0.1'
2018-02-24 16:03:28.575 (TV) Device count: 4
2018-02-24 16:03:28.575 (TV) Device: 1 - ID: 95, Name: 'TV - Status', nValue: 1, sValue: 'Samsung On'
2018-02-24 16:03:28.575 (TV) Device ID: '95'
2018-02-24 16:03:28.576 (TV) Device Name: 'TV - Status'
2018-02-24 16:03:28.576 (TV) Device nValue: 1
2018-02-24 16:03:28.576 (TV) Device sValue: 'Samsung On'
2018-02-24 16:03:28.576 (TV) Device LastLevel: 0
2018-02-24 16:03:28.576 (TV) Device: 2 - ID: 96, Name: 'TV - Source', nValue: 10, sValue: '10'
2018-02-24 16:03:28.576 (TV) Device ID: '96'
2018-02-24 16:03:28.576 (TV) Device Name: 'TV - Source'
2018-02-24 16:03:28.576 (TV) Device nValue: 10
2018-02-24 16:03:28.576 (TV) Device sValue: '10'
2018-02-24 16:03:28.576 (TV) Device LastLevel: 0
2018-02-24 16:03:28.576 (TV) Device: 3 - ID: 97, Name: 'TV - Volume', nValue: 10, sValue: '10'
2018-02-24 16:03:28.576 (TV) Device ID: '97'
2018-02-24 16:03:28.576 (TV) Device Name: 'TV - Volume'
2018-02-24 16:03:28.576 (TV) Device nValue: 10
2018-02-24 16:03:28.576 (TV) Device sValue: '10'
2018-02-24 16:03:28.577 (TV) Device LastLevel: 0
2018-02-24 16:03:28.577 (TV) Device: 4 - ID: 98, Name: 'TV - Input', nValue: 10, sValue: '10'
2018-02-24 16:03:28.577 (TV) Device ID: '98'
2018-02-24 16:03:28.577 (TV) Device Name: 'TV - Input'
2018-02-24 16:03:28.577 (TV) Device nValue: 10
2018-02-24 16:03:28.577 (TV) Device sValue: '10'
2018-02-24 16:03:28.577 (TV) Device LastLevel: 0
2018-02-24 16:03:28.577 (TV) Connecting to: 192.168.1.152:8001
2018-02-24 16:03:28.600 (TV) isAlive status :True
2018-02-24 16:03:28.600 (TV) Devices are connected - Initialisation
Segmentation fault
And Domoticz stops. If i turn of the tv and again use ./domoticz, domoticz keeps running and I can remove the samsung plugin and autostart agoin works.
Maybe this helps in figuring out what goes wrong.
-
zak45
- Posts: 954
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin: Samsung TV
take a look here :Gdroos68 wrote: Saturday 24 February 2018 15:38 I want to use this plugin with my Samsung QLED tv. When I install this plugin in my hardware and I use port 8001, it sees whether my TV is alive. However Domoticz gets really unstable and I many times I can not even acces domoticz anymore by means of my webbrowser. The only possibility I then have is to replace the domoticz.db and/or domoticz.sh. Does anybody know how to resolve?
Segmentation fault
And Domoticz stops. If i turn of the tv and again use ./domoticz, domoticz keeps running and I can remove the samsung plugin and autostart agoin works.
viewtopic.php?f=65&t=21645&start=80#p172535
-
Gdroos68
- Posts: 5
- Joined: Saturday 24 February 2018 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Samsung TV
Not sure which part you mean but I did all kinds of owner variant and none have worked. Even tried to change python version (3.4) but not sure if I did it correctly and had no effect.zak45 wrote: Sunday 25 February 2018 10:42
take a look here :
viewtopic.php?f=65&t=21645&start=80#p172535
-
zak45
- Posts: 954
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin: Samsung TV
another way to investigate: compile Domoticz from source.
-
Gdroos68
- Posts: 5
- Joined: Saturday 24 February 2018 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Samsung TV
Compiling from source did solve my issue of domoticz service stopping. However now I get similar problems as dextm80. I can see my tv is connected but get all kind of errors:zak45 wrote: Tuesday 27 February 2018 15:00 another way to investigate: compile Domoticz from source.
2018-03-05 19:33:27.151 User: [email protected] initiated a switch command (135/Tv - Status/Off)
2018-03-05 19:33:27.192 (Tv) Calling message handler 'onCommand'.
2018-03-05 19:33:27.192 (Tv) onCommand called for Unit 1: Parameter 'Off', Level: 0, Connected: True
2018-03-05 19:33:27.195 Error: (Tv) 'onCommand' failed 'ImportError'.
2018-03-05 19:33:27.195 Error: (Tv) ----> Line 174 in /home/pi/dev-domoticz/plugins/SamsungTV/plugin.py, function onCommand
2018-03-05 19:33:27.195 Error: (Tv) ----> Line 282 in /home/pi/dev-domoticz/plugins/SamsungTV/plugin.py, function SamsungSend
2018-03-05 19:33:27.196 Error: (Tv) ----> Line 11 in /usr/lib/python3.5/samsungctl/remote.py, function __init__
2018-03-05 19:33:27.196 Error: (Tv) ----> Line 17 in /usr/lib/python3.5/samsungctl/remote_websocket.py, function __init__
Probably my new SAMSUNG QE65Q7F is not yet supported or am i doing something wrong?
-
zak45
- Posts: 954
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin: Samsung TV
This error is not due to TV model but say to not able to find a required python module, which should be in your case : websocket-client.Gdroos68 wrote: Monday 05 March 2018 20:51 2018-03-05 19:33:27.195 Error: (Tv) 'onCommand' failed 'ImportError'.
Do you have installed it ?
-
Gdroos68
- Posts: 5
- Joined: Saturday 24 February 2018 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Samsung TV
Stupid of me but it was not installed. I also copied six.py. But I get the following:zak45 wrote: Tuesday 06 March 2018 12:57 This error is not due to TV model but say to not able to find a required python module, which should be in your case : websocket-client.
Do you have installed it ?
pi@pi:/usr/local/bin $ samsungctl -i --host 192.168.1.152 --method websocket
Traceback (most recent call last):
File "/usr/local/bin/samsungctl", line 11, in <module>
sys.exit(main())
File "/usr/lib/python3.5/samsungctl/__main__.py", line 110, in main
with Remote(config) as remote:
File "/usr/lib/python3.5/samsungctl/remote.py", line 11, in __init__
self.remote = RemoteWebsocket(config)
File "/usr/lib/python3.5/samsungctl/remote_websocket.py", line 30, in __init__
self._read_response()
File "/usr/lib/python3.5/samsungctl/remote_websocket.py", line 67, in _read_response
response = self.connection.recv()
File "/usr/lib/python3.5/websocket/_core.py", line 300, in recv
opcode, data = self.recv_data()
File "/usr/lib/python3.5/websocket/_core.py", line 317, in recv_data
opcode, frame = self.recv_data_frame(control_frame)
File "/usr/lib/python3.5/websocket/_core.py", line 330, in recv_data_frame
frame = self.recv_frame()
File "/usr/lib/python3.5/websocket/_core.py", line 364, in recv_frame
return self.frame_buffer.recv_frame()
File "/usr/lib/python3.5/websocket/_abnf.py", line 383, in recv_frame
frame.validate(self.skip_utf8_validation)
File "/usr/lib/python3.5/websocket/_abnf.py", line 182, in validate
raise WebSocketProtocolException("Invalid close opcode.")
websocket._exceptions.WebSocketProtocolException: Invalid close opcode.
and this in domoticz:
2018-03-06 19:12:04.024 User: [email protected] initiated a switch command (135/Tv - Status/Off)
2018-03-06 19:12:04.027 (Tv) Calling message handler 'onCommand'.
2018-03-06 19:12:04.028 (Tv) onCommand called for Unit 1: Parameter 'Off', Level: 0, Connected: True
2018-03-06 19:12:04.028 Error: (Tv) 'onCommand' failed 'AttributeError':'module 'websocket' has no attribute 'create_connection''.
2018-03-06 19:12:04.028 Error: (Tv) ----> Line 174 in /home/pi/dev-domoticz/plugins/SamsungTV/plugin.py, function onCommand
2018-03-06 19:12:04.028 Error: (Tv) ----> Line 282 in /home/pi/dev-domoticz/plugins/SamsungTV/plugin.py, function SamsungSend
2018-03-06 19:12:04.028 Error: (Tv) ----> Line 11 in /usr/lib/python3.5/samsungctl/remote.py, function __init__
2018-03-06 19:12:04.028 Error: (Tv) ----> Line 28 in /usr/lib/python3.5/samsungctl/remote_websocket.py, function __init__
and after restart of domoticz:
2018-03-06 19:31:16.523 Error: (Tv) 'onStart' failed 'WebSocketTimeoutException'.
2018-03-06 19:31:16.523 Error: (Tv) ----> Line 129 in /home/pi/dev-domoticz/plugins/SamsungTV/plugin.py, function onStart
2018-03-06 19:31:16.523 Error: (Tv) ----> Line 282 in /home/pi/dev-domoticz/plugins/SamsungTV/plugin.py, function SamsungSend
2018-03-06 19:31:16.523 Error: (Tv) ----> Line 11 in /usr/lib/python3.5/samsungctl/remote.py, function __init__
2018-03-06 19:31:16.523 Error: (Tv) ----> Line 30 in /usr/lib/python3.5/samsungctl/remote_websocket.py, function __init__
2018-03-06 19:31:16.523 Error: (Tv) ----> Line 67 in /usr/lib/python3.5/samsungctl/remote_websocket.py, function _read_response
2018-03-06 19:31:16.523 Error: (Tv) ----> Line 300 in /usr/lib/python3.5/websocket/_core.py, function recv
2018-03-06 19:31:16.523 Error: (Tv) ----> Line 317 in /usr/lib/python3.5/websocket/_core.py, function recv_data
2018-03-06 19:31:16.523 Error: (Tv) ----> Line 330 in /usr/lib/python3.5/websocket/_core.py, function recv_data_frame
2018-03-06 19:31:16.524 Error: (Tv) ----> Line 364 in /usr/lib/python3.5/websocket/_core.py, function recv_frame
2018-03-06 19:31:16.524 Error: (Tv) ----> Line 383 in /usr/lib/python3.5/websocket/_abnf.py, function recv_frame
2018-03-06 19:31:16.524 Error: (Tv) ----> Line 309 in /usr/lib/python3.5/websocket/_abnf.py, function recv_header
2018-03-06 19:31:16.524 Error: (Tv) ----> Line 396 in /usr/lib/python3.5/websocket/_abnf.py, function recv_strict
2018-03-06 19:31:16.524 Error: (Tv) ----> Line 440 in /usr/lib/python3.5/websocket/_core.py, function _recv
2018-03-06 19:31:16.524 Error: (Tv) ----> Line 84 in /usr/lib/python3.5/websocket/_socket.py, function recv
Who is online
Users browsing this forum: No registered users and 1 guest