#Hi what is the equivalent of a webcore’s
1 messages · Page 1 of 1 (latest)
No idea what a webcore piston is - a description of it would help us help you - but a script has to be called by something, where an automation will start when the trigger is met
There are three sections to an automation:
trigger: When any one of these becomes true the automation starts processing. Only one trigger is ever responsible for starting an automation, if you make aconditionthat checks for more than one having started the automation then the condition can never be true.condition: These are checked after atriggerstarts the processing, and must be true for the automation to continue.action: This is the part that does something, and can also include further conditions.
Thanks for replying, a piston in is basically a script in webcore, webcore is an automation tool for smartthings but anyway thats another topic😅 what i’m trying to do is trigger an automation that has different conditions by clicking a url and passing arguments through the url i.e
Click URL which will run a script or automation and this url will have different arguments like AC = ON or Lights = OFF, etc
Then because you clicked the URL the script will be triggered and has to check if AC == ON
If AC == ON
Then
Turn on compressor
Turn on fan
Set to 60f
If AC = OFF
Then
Turn OFF compressor
Turn fan OFF
If Lights == ON
Turn on Downlights
Turn on wall lights
Etc..
The problem is that my trigger is a webhooks url but then in the conditions part there is no option to select a variable or an argument such as AC == On
You have to POST to a webhook for HA