Skip to content
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

[Error] Unable to set wemo smart plug #14

Open
sawjai opened this issue Mar 9, 2022 · 2 comments
Open

[Error] Unable to set wemo smart plug #14

sawjai opened this issue Mar 9, 2022 · 2 comments

Comments

@sawjai
Copy link

sawjai commented Mar 9, 2022

When I use hs.py to set wemo smart plug on/off, I got this exception
Traceback (most recent call last):
File "/root/hs.py", line 91, in
hs.setStates(sys.argv[argumentLength-1] or None)
File "/usr/local/lib/python3.9/dist-packages/homescript/init.py", line 124, in setStates
item['value'][0]['value'] = int(value)
IndexError: list index out of range.

I try to debug the problem, and I found if I make minor change to "/usr/local/lib/python3.9/dist-packages/homescript/init.py" file, it fixes the issue. See attached modified init.py, I am not sure if there is any other place that need to modify.

homescript_debug_2022.03.09.log
init.py.gz

@menahishayan
Copy link
Owner

menahishayan commented Jan 1, 2023

Hi, thank you for identifying issues and contributing. It would be great if you could fork this repo and create a PR with your changes.

Apologies, since I haven't been able to find the time with my day job to actually debug and evaluate these issues.

@job2310
Copy link

job2310 commented Jan 20, 2023

@sawjai Thanks for that, I was seeing the same error. Your fix works for me however I'm getting Response 470 errors now. Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants