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

setScheduledCharging format #65

Open
ihitsov opened this issue Jul 5, 2023 · 3 comments
Open

setScheduledCharging format #65

ihitsov opened this issue Jul 5, 2023 · 3 comments

Comments

@ihitsov
Copy link

ihitsov commented Jul 5, 2023

I am not sure how to send a message to the setScheduledCharging. I am sending this via a function:
// msg.command = 'setScheduledCharging';
msg.commandArgs = {
enable: 1,
time: "2 AM"
};
return msg;

It does seem to kind of work, but no matter what I send, in the app it changes it to 00:00. I tried different time formats (02:00, 2:00AM, 02:00 AM etc.), but same result. Any ideas what I am doing wrong? Also tried enable: true, didnt work either. Thanks in advance!

@GaPhi
Copy link
Contributor

GaPhi commented Jul 5, 2023 via email

@ihitsov
Copy link
Author

ihitsov commented Jul 5, 2023

Thank you, this works!

@GaPhi
Copy link
Contributor

GaPhi commented Jul 5, 2023

'enable' should also be a boolean

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

2 participants