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

"err_code":-3 on schedule.editrule for HS110 hardware version 2.0 (working on HS110 hardware version 1.0) #89

Open
Ekhozie opened this issue Jan 25, 2020 · 1 comment
Assignees

Comments

@Ekhozie
Copy link

Ekhozie commented Jan 25, 2020

Hello,
First of all, great work on this API, it's very useful!
I have a problem with the method schedule.editRule on a new plug HS110 (hardware version 2.0, software version 1.5.3) whereas the same code is working on an old plug HS110 (hardware version 1.0, software version 1.0.10).
The error is

(node:7627) UnhandledPromiseRejectionWarning: ResponseError: err_code not zero response: {"err_code":-3,"err_msg":"invalid argument"} command: {"schedule":{"edit_rule":{"id":"1E8FE3EFDE18D7F9E025544BCC6E0F1F","sact":1,"name":"","enable":0,"emin":0,"etime_opt":-1,"smin":425,"stime_opt":0,"wday":[false,true,true,true,true,true,false],"repeat":true}}}
    at processResponse (/opt/vacation-mode/node_modules/tplink-smarthome-api/lib/device/index.js:84:11)
    at Plug.sendCommand (/opt/vacation-mode/node_modules/tplink-smarthome-api/lib/device/index.js:370:21)

API version is 2.0.0
Node.Js version is 12.14.1

Thanks for your support.

@plasticrake
Copy link
Owner

Yeah I noticed this too, it looks like the schedule format is different for those devices but I haven't had to time to figure out what is different yet. Would love it if someone could figure it out!

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

No branches or pull requests

2 participants