Page 1 of 1
Multiple commands
Posted: Wed Mar 24, 2021 1:17 pm
by Elric
Hi,
I've set up a card to shutdown the pc but when i say the command i'd like to:
Shutdown the PC
turn off the lights of the desk
how can i do that?
Thanks
Re: Multiple commands
Posted: Fri Mar 26, 2021 8:18 pm
by RobLatour
How are your desk lights controlled?
Re: Multiple commands
Posted: Sat Mar 27, 2021 2:36 am
by Elric
Govee and smart light, through google home
Actually i could not find the proper command to shut down the pc as well
Re: Multiple commands
Posted: Sat Mar 27, 2021 11:30 am
by RobLatour
How to shut down your computer is described here:
https://push2run.com/examplecards.html
With respect to your smart lights, Push2Run is more about controlling your PC.
However, if your Govee lights can be controlled by IFTTT you may be able to set up an IFTTT applet that both turns off your lights and issue a trigger for Push2Run to use to shut down your computer. However, of note, IFTTT only supports multiple actions like that if you have a pro account with them.
Re: Multiple commands
Posted: Sat Mar 27, 2021 11:54 am
by Elric
I tried this
to shutdown your computer: /s /t 10 /c "requested by home automation"
But didn't seemed to work
I
Re: Multiple commands
Posted: Sun Mar 28, 2021 3:58 pm
by RobLatour
Can you please copy the contents of your session log into a post on this forum? Also, could you please attach a screenshot of your Push2Run card?
Thanks
Re: Multiple commands
Posted: Mon Mar 29, 2021 2:12 am
by Elric
The command seems to work now but it's kinda slow.
Also, besides taking an premium plan on IFTTT is there another way for multiple commands ? can i make two applets with the same trigger or it won't work?
i wanna do a "lazy" command, when i'm in bed crashing and turn off all of the pc and desk light at the same time haha
Re: Multiple commands
Posted: Mon Mar 29, 2021 7:49 am
by RobLatour
Hi,
The /t parameter is used to set the time until the shutdown happens. In your example below you are using
/t 10
if you want it to start the shutdown in five seconds you would use
/t 5
With respect to multiple commands in one shot, I am working on something now in Push2Run, for a future release, that will allow you to say
ok google, tell my computer to do a and b
and have both a and b run assuming both have Push2Run cards set up for them.
However, as stated earlier, Push2Run is more about controlling your PC (and by extension things that you can control with your computer). If you can control your lights via your computer then this should work for you, otherwise, you will need something else to control your lights which may or may not be IFTTT depending on if IFTTT supports them or not.
Re: Multiple commands
Posted: Mon Mar 29, 2021 7:54 am
by Elric
Oh ok great well i could always say two commands and live with if for now haha thanks