-
Notifications
You must be signed in to change notification settings - Fork 117
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
question: How to run multiple commands at one? #689
Comments
Ah, never mind I had a type-typo in the json, it works as required with |
-i file.json works, but can't get this to work with -j even when using the same json.
|
The
(Note that JSON is the default for non-tty input so there is seldom a need for the |
Thanks. this works just as required and with multiple commands. Will the authentication token work indefinitely of will it need to be renewed/re-auth'd periodically? |
No, the token won't work indefinitely - you'll be prompted to log in once it expires. |
What is your question? Please describe.
How can I run multiple commands?
I want to submit multiple commands like this:
[
{"capability":"samsungce.dryerCycle", "command":"setDryerCycle", "arguments":["Course_1F"]},
{"capability":"samsungce.dryerDelayEnd", "command":"setDelayTime", "arguments":["642"]},
{"capability":"samsungce.dryerOperatingState", "command":"start"},
]
This is possible with curl POST but I don't want to have to keep renewing the PAT/bearer token ever 24 hours.
How long does the token last with this cli tool? It's been > 24hrs since I last authenticated so I assume smartthings-cli uses a long living token or smartapp token maybe?
The text was updated successfully, but these errors were encountered: