-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: list indices must be integers or slices, not NoneType #120
Comments
The error is on a line configuring the logger. If I comment out the line, the tool produces:
|
Oh, to be clear, If i do: the TV starts netflix. |
Addendum, this does work: So basically it should be able to control this TV.. |
@henriz I did write a simple python script using websocket-client accessing the TV on port 8002 , the TV requests permission for the device (it's consistent through) and I get the token from the TV. Very frustrating. |
Don't know about other TVs but my Q8FN has blocked port 1900, which UPNP uses. |
Having exactly this issue. @henriz can you post the code you changed in utils.py? There are obviously other issues here. Would probably help to post model numbers. I'm trying to run on Samsung NU7000 |
in Utils.py in the class DebugLogger(object):
Hope this helps. |
discover.py seems broken in develop branch. |
I seem to have a similar issue on a Samsung N5300 model. samsungctl --config-file samsungctl.conf KEY_MENU --name myremote |
Hello,
I have been trying to get my Samsung TV to work with home assistant. This is a maddening experience. Makes you want to burn stuff.
Anyway, I have figured out the issue is with samsungctl. So I got to this repo.
I have installed the development branch, now trying to use it:
get_logger_name: samsungctl
get_logger_name: samsungctl.upnp.UPNP_Device
get_logger_name: samsungctl.upnp.UPNP_Device.adapter_addresses
get_logger_name: samsungctl.upnp.UPNP_Device.discover
get_logger_name: samsungctl.upnp.UPNP_Device.action
get_logger_name: samsungctl.upnp.UPNP_Device.icon
get_logger_name: samsungctl.upnp.UPNP_Device.service
get_logger_name: samsungctl.upnp.UPNP_Device.embedded_device
get_logger_name: samsungctl.upnp.UPNP_Device.upnp_class
get_logger_name: samsungctl.upnp.discover
get_logger_name: samsungctl.upnp
get_logger_name: samsungctl.wake_on_lan
get_logger_name: samsungctl.remote_legacy
get_logger_name: samsungctl.websocket_base
get_logger_name: samsungctl.art_mode
get_logger_name: samsungctl.application
get_logger_name: samsungctl.remote_websocket
get_logger_name: samsungctl.remote_encrypted.crypto
get_logger_name: samsungctl.remote_encrypted
Traceback (most recent call last):
File "/home/henri/python/bin/samsungctl", line 11, in
load_entry_point('samsungctl==0.8.65b0', 'console_scripts', 'samsungctl')()
File "/home/henri/python/lib/python3.7/site-packages/samsungctl-0.8.65b0-py3.7.egg/samsungctl/main.py", line 237, in main
logger.setLevel(log_levels[args.verbose])
I tried the master branch as well. This simply hangs without ever returning, multiple CTRL-C's are needed to get it to quit.
The TV is a Samsung (duh) UE48H6240AWXXN
The text was updated successfully, but these errors were encountered: