Python Plugin: Samsung TV
Moderator: leecollings
-
- Posts: 11
- Joined: Wednesday 16 August 2017 10:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Samsung TV
@zak45
I installed python plugin SamsungTV and it's ok but I want to use the Kodi remote but I have this message :
(Samsung TV) Remote command not defined: Select
But I don't know how to defined this commande ?
Thx
I installed python plugin SamsungTV and it's ok but I want to use the Kodi remote but I have this message :
(Samsung TV) Remote command not defined: Select
But I don't know how to defined this commande ?
Thx
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin: Samsung TV
Wiki need to be updated ....
Which version you have ?
Which version you have ?
-
- Posts: 11
- Joined: Wednesday 16 August 2017 10:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Samsung TV
@zak45
samsungctl-0.6.0.tar.gz
samsungctl-0.6.0.tar.gz
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin: Samsung TV
what's your plugin version ?
2017-09-08 20:03:44.935 (Samsung TV Salon) Initialized version 2.0.0, author 'zak45'
-
- Posts: 24
- Joined: Wednesday 28 September 2016 17:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5997
- Contact:
Re: Python Plugin: Samsung TV
Hello when tying to run
sudo samsungctl -i --host 192.168.X.X --port 8001 --method websocket
I get this as a result
it looks like the plugin is trying to use python 2.7 even though python 3 is installed
I also tryed this https://linuxconfig.org/how-to-change-f ... bian-linux but this didn't turned out to be a sollution.
anyone have any idea what could be the issue?
[edit] somehowe i could install samsungctl again with pip install samsungctl
and the same goes for websocket
also when testing from the commandline it works and i see responce on my TV but the plugin gives the folowing error in the log
[Edit 2] i found the problem, i overlooked one line in the wiki
sudo samsungctl -i --host 192.168.X.X --port 8001 --method websocket
I get this as a result
Code: Select all
Traceback (most recent call last):
File "/usr/local/bin/samsungctl", line 11, in <module>
load_entry_point('samsungctl==0.6.0', 'console_scripts', 'samsungctl')()
File "/usr/local/lib/python2.7/dist-packages/samsungctl/__main__.py", line 93, in main
config = _read_config()
File "/usr/local/lib/python2.7/dist-packages/samsungctl/__main__.py", line 37, in _read_config
except FileNotFoundError:
NameError: global name 'FileNotFoundError' is not defined
I also tryed this https://linuxconfig.org/how-to-change-f ... bian-linux but this didn't turned out to be a sollution.
anyone have any idea what could be the issue?
[edit] somehowe i could install samsungctl again with pip install samsungctl
and the same goes for websocket
also when testing from the commandline it works and i see responce on my TV but the plugin gives the folowing error in the log
Code: Select all
2017-09-09 17:34:59.658 Error: (SamsungTV) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/samsungtv/:/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload'.
2017-09-09 17:34:59.658 Error: (TV Woonkamer) Module Import failed, exception: 'ImportError'
2017-09-09 17:34:59.658 Error: (TV Woonkamer) Module Import failed: ' Name: samsungctl'
Code: Select all
sudo cp -r /usr/local/lib/python3.4/dist-packages/samsungctl/ /usr/lib/python3.4/
Rasberry Pi 3; Razberry 2.0; RFXCOM
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin: Samsung TV
@Yustmenl
nice that you have been able to help yourself
nice that you have been able to help yourself
-
- Posts: 11
- Joined: Wednesday 16 August 2017 10:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Samsung TV
@zak45
Hi,
I don't know what's happen but I create a folder SamsungTV but when I reboot my raspberry this folder is automatically delete !
I'm lost....
EDIT : It's the same with domoticz ... if I add a switch for exemple it's remove if I reboot my raspberry
Hi,
I don't know what's happen but I create a folder SamsungTV but when I reboot my raspberry this folder is automatically delete !
I'm lost....
EDIT : It's the same with domoticz ... if I add a switch for exemple it's remove if I reboot my raspberry
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin: Samsung TV
Looks like your Domoticz re install at each boot !! ??
-
- Posts: 11
- Joined: Wednesday 16 August 2017 10:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Samsung TV
Looks like my raspberry is in read only mode !
I tried to install the new beta domoticz software... after this installation, it was ok but after the raspberry reboot I was back at the last version of domoticz.
EDIT : I was clone my SD CARD and it's ok with the new SD CARD ! ...
I tried to install the new beta domoticz software... after this installation, it was ok but after the raspberry reboot I was back at the last version of domoticz.
EDIT : I was clone my SD CARD and it's ok with the new SD CARD ! ...
Re: Python Plugin: Samsung TV
Hello
First, i want to Thank you all for the information you share.
I have a problem and I will be glad if someone can help
when I try to turn off the TV, I getting this error:
2017-09-23 20:47:45.100 Error: (SamsungTV) 'onCommand' failed 'WebSocketBadStatusException'.
2017-09-23 20:47:45.101 Error: (SamsungTV) ----> Line 170 in C:\Program Files (x86)\Domoticz\plugins\SamsungTV\plugin.py, function onCommand
2017-09-23 20:47:45.101 Error: (SamsungTV) ----> Line 287 in C:\Program Files (x86)\Domoticz\plugins\SamsungTV\plugin.py, function SamsungSend
2017-09-23 20:47:45.101 Error: (SamsungTV) ----> Line 10 in C:\Program Files (x86)\Python35-32\Lib\site-packages\samsungctl\remote.py, function __init__
2017-09-23 20:47:45.101 Error: (SamsungTV) ----> Line 23 in C:\Program Files (x86)\Python35-32\Lib\site-packages\samsungctl\remote_websocket.py, function __init__
2017-09-23 20:47:45.101 Error: (SamsungTV) ----> Line 220 in C:\Program Files (x86)\Python35-32\Lib\site-packages\websocket\_core.py, function connect
2017-09-23 20:47:45.101 Error: (SamsungTV) ----> Line 69 in C:\Program Files (x86)\Python35-32\Lib\site-packages\websocket\_handshake.py, function handshake
2017-09-23 20:47:45.101 Error: (SamsungTV) ----> Line 129 in C:\Program Files (x86)\Python35-32\Lib\site-packages\websocket\_handshake.py, function _get_resp_headers
i'm using Python 3.5.2.
Thanks
I found the problem. now there is no error, but the commands not work (only ON command working)
First, i want to Thank you all for the information you share.
I have a problem and I will be glad if someone can help
when I try to turn off the TV, I getting this error:
2017-09-23 20:47:45.100 Error: (SamsungTV) 'onCommand' failed 'WebSocketBadStatusException'.
2017-09-23 20:47:45.101 Error: (SamsungTV) ----> Line 170 in C:\Program Files (x86)\Domoticz\plugins\SamsungTV\plugin.py, function onCommand
2017-09-23 20:47:45.101 Error: (SamsungTV) ----> Line 287 in C:\Program Files (x86)\Domoticz\plugins\SamsungTV\plugin.py, function SamsungSend
2017-09-23 20:47:45.101 Error: (SamsungTV) ----> Line 10 in C:\Program Files (x86)\Python35-32\Lib\site-packages\samsungctl\remote.py, function __init__
2017-09-23 20:47:45.101 Error: (SamsungTV) ----> Line 23 in C:\Program Files (x86)\Python35-32\Lib\site-packages\samsungctl\remote_websocket.py, function __init__
2017-09-23 20:47:45.101 Error: (SamsungTV) ----> Line 220 in C:\Program Files (x86)\Python35-32\Lib\site-packages\websocket\_core.py, function connect
2017-09-23 20:47:45.101 Error: (SamsungTV) ----> Line 69 in C:\Program Files (x86)\Python35-32\Lib\site-packages\websocket\_handshake.py, function handshake
2017-09-23 20:47:45.101 Error: (SamsungTV) ----> Line 129 in C:\Program Files (x86)\Python35-32\Lib\site-packages\websocket\_handshake.py, function _get_resp_headers
i'm using Python 3.5.2.
Thanks
I found the problem. now there is no error, but the commands not work (only ON command working)
Last edited by mircer on Saturday 23 September 2017 20:09, edited 1 time in total.
- emme
- Posts: 909
- Joined: Monday 27 June 2016 11:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: Milano, Italy
- Contact:
Re: Python Plugin: Samsung TV
Let me just say
OMG! this plugin is AMAZING!!!
THANK YOU SO MUCH!!!
OMG! this plugin is AMAZING!!!
THANK YOU SO MUCH!!!
The most dangerous phrase in any language is:
"We always done this way"
"We always done this way"
- felix63
- Posts: 244
- Joined: Monday 07 December 2015 9:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Location: Gouda
- Contact:
Re: Python Plugin: Samsung TV
I use the following script to turn off the tv
Code: Select all
samsungctl --method websocket --host 192.168.x.x --port 8001 -v KEY_POWER
Re: Python Plugin: Samsung TV
Hello felix63,
I try:
C:\WINDOWS\system32>samsungctl --method websocket --host 192.168.1.189 --port 8001 -v KEY_POWER
Sending control command: KEY_POWER
But nothing happens.
I have 2017 model, 75mu7000
someone know what i'm doing wrong ?
Thanks for the help
I try:
C:\WINDOWS\system32>samsungctl --method websocket --host 192.168.1.189 --port 8001 -v KEY_POWER
Sending control command: KEY_POWER
But nothing happens.
I have 2017 model, 75mu7000
someone know what i'm doing wrong ?
Thanks for the help
- felix63
- Posts: 244
- Joined: Monday 07 December 2015 9:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Location: Gouda
- Contact:
Re: Python Plugin: Samsung TV
Sorry... difficult to answer that question. I am running on linux not windows. And without any other than 'nothing happens' it's difficult to debug. Can't help you out.
- emme
- Posts: 909
- Joined: Monday 27 June 2016 11:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: Milano, Italy
- Contact:
Re: Python Plugin: Samsung TV
Are you trying to switch it on or off? is that the only one button that does not work?mircer wrote: ↑Tuesday 26 September 2017 23:49 Hello felix63,
I try:
C:\WINDOWS\system32>samsungctl --method websocket --host 192.168.1.189 --port 8001 -v KEY_POWER
Sending control command: KEY_POWER
But nothing happens.
I have 2017 model, 75mu7000
someone know what i'm doing wrong ?
Thanks for the help
some models does not support wake up on lan, especially if you have it WiFi connected (the interface is down while tv is off)
If you're trying to switch it off... ensure the remote connection is enabled and the plugin is paired with the device
ciao
M
The most dangerous phrase in any language is:
"We always done this way"
"We always done this way"
- gijsje
- Posts: 132
- Joined: Saturday 19 August 2017 14:28
- Target OS: NAS (Synology & others)
- Domoticz version: Stable
- Location: Berkel Enschot, NL
- Contact:
Re: Python Plugin: Samsung TV
i think it is seeing the tv
When i want to change something i get2017-10-16 20:30:54.511 (Samsung TV) Calling message handler 'onHeartbeat'.
2017-10-16 20:30:54.512 (Samsung TV) isAlive status :True
Any idea?2017-10-16 20:28:07.724 Error: (Samsung TV) 'onCommand' failed 'ImportError'.
2017-10-16 20:28:07.724 Error: (Samsung TV) ----> Line 170 in /home/pi/domoticz/plugins/samsungctl/plugin.py, function onCommand
2017-10-16 20:28:07.724 Error: (Samsung TV) ----> Line 287 in /home/pi/domoticz/plugins/samsungctl/plugin.py, function SamsungSend
2017-10-16 20:28:07.724 Error: (Samsung TV) ----> Line 10 in /usr/lib/python3.5/samsungctl/remote.py, function __init__
2017-10-16 20:28:07.724 Error: (Samsung TV) ----> Line 13 in /usr/lib/python3.5/samsungctl/remote_websocket.py, function __init__
Synology DS218+ - RFXtrx433 - Aeotec Z-Stick Gen5 - Toon Thermostat - Neo CoolCam plug - Neo CoolCam PIR - FIBARO PIR - Heiman Smart Smoke Senso - Neo CoolCam Leakage Detector - BeNext Tag Reader - P1 and S0 USB - many Mi-Light lights - KAKU switches
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin: Samsung TV
'onCommand' failed 'ImportError'
Looks like you do not have copied in the folder that can be found by the plugin system. Please take a look at the wiki.
Looks like you do not have copied in the folder that can be found by the plugin system. Please take a look at the wiki.
- gijsje
- Posts: 132
- Joined: Saturday 19 August 2017 14:28
- Target OS: NAS (Synology & others)
- Domoticz version: Stable
- Location: Berkel Enschot, NL
- Contact:
Re: Python Plugin: Samsung TV
i do have the plugin.py in the folder plugins/samsungctl did try also to change the folder to SamsungTV and Samsung TV without suc6
also checked if /usr/lib/python3.5/samsungctl/remote.py and /usr/lib/python3.5/samsungctl/remote_websocket.py are there and they are
If i restart domoticz i do get
if i do samsungctl --host 192.168.0.112 --method websocket KEY_VOLUP that is working also samsungctl --host 192.168.0.112 --method websocket KEY_MUTE
also checked if /usr/lib/python3.5/samsungctl/remote.py and /usr/lib/python3.5/samsungctl/remote_websocket.py are there and they are
If i restart domoticz i do get
if i try button mute i get2017-10-16 23:44:03.107 Error: (Samsung TV) 'onStart' failed 'ImportError'.
2017-10-16 23:44:03.107 Error: (Samsung TV) ----> Line 134 in /home/pi/domoticz/plugins/SamsungTV/plugin.py, function onStart
2017-10-16 23:44:03.107 Error: (Samsung TV) ----> Line 287 in /home/pi/domoticz/plugins/SamsungTV/plugin.py, function SamsungSend
2017-10-16 23:44:03.107 Error: (Samsung TV) ----> Line 10 in /usr/lib/python3.5/samsungctl/remote.py, function __init__
2017-10-16 23:44:03.107 Error: (Samsung TV) ----> Line 13 in /usr/lib/python3.5/samsungctl/remote_websocket.py, function __init__
I do have a K series tv so maybe it does not work ue49ks7000s017-10-16 23:47:51.587 User: Admin initiated a switch command (117/Samsung TV - Volume/Set Level)
2017-10-16 23:47:51.619 (Samsung TV) Calling message handler 'onCommand'.
2017-10-16 23:47:51.619 (Samsung TV) onCommand called for Unit 3: Parameter 'Off', Level: 0, Connected: True
2017-10-16 23:47:51.621 Error: (Samsung TV) 'onCommand' failed 'ImportError'.
2017-10-16 23:47:51.621 Error: (Samsung TV) ----> Line 182 in /home/pi/domoticz/plugins/SamsungTV/plugin.py, function onCommand
2017-10-16 23:47:51.621 Error: (Samsung TV) ----> Line 287 in /home/pi/domoticz/plugins/SamsungTV/plugin.py, function SamsungSend
2017-10-16 23:47:51.621 Error: (Samsung TV) ----> Line 10 in /usr/lib/python3.5/samsungctl/remote.py, function __init__
2017-10-16 23:47:51.621 Error: (Samsung TV) ----> Line 13 in /usr/lib/python3.5/samsungctl/remote_websocket.py, function __init__
if i do samsungctl --host 192.168.0.112 --method websocket KEY_VOLUP that is working also samsungctl --host 192.168.0.112 --method websocket KEY_MUTE
Synology DS218+ - RFXtrx433 - Aeotec Z-Stick Gen5 - Toon Thermostat - Neo CoolCam plug - Neo CoolCam PIR - FIBARO PIR - Heiman Smart Smoke Senso - Neo CoolCam Leakage Detector - BeNext Tag Reader - P1 and S0 USB - many Mi-Light lights - KAKU switches
-
- Posts: 117
- Joined: Tuesday 24 October 2017 18:32
- Target OS: Linux
- Domoticz version: 4.10159
- Contact:
Re: Python Plugin: Samsung TV
Hi guys, a guide for linux installation (ubuntu) and domoticz?
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
Who is online
Users browsing this forum: No registered users and 1 guest