-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Comments
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. |
@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
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
The text was updated successfully, but these errors were encountered: