Adding Companion to the Automator
In the top right corner of the Automator, we see 'Devices' - this can be either in red or green depending on the status of the configured devices. Click it and select 'Add device'.
Next, select 'Webhook' from the 'Device type' dropdown list, then give it a name.
To finalise our Companion configuration so it can be used with the Automator, we will need to add predefined Webhook endpoints and their dynamic property names.
Where to find your Webhook endpoints
To find your endpoints, open your Companion, go to 'Settings' and then 'HTTP'.
Select the command you'd like to add, for example : http://127.0.0.1:8000/press/bank/<page>/<button>
Note: When Companion is running on different computer, replace 127.0.0.1
with the ip address of the computer running Companion.
Add your endpoint
The next step is then to add your endpoints in the Automator.
On the page where you added your Companion device, click on '+ Endpoint' at the bottom of the page. You will have the option to add a customised Endpoint from your Companion.
Paste your endpoint in the correct field (marked in red in the screenshot above) and give it a name. For each command that you'd like to do in the Automator, you will add a new endpoint.
'Params', 'Body' & 'Headers' are not needed for the Companion Settings.
Configuring actions
The next step is then to configure each Item and Block template with the commands you want to perform on Companion when triggering the Item or Block - more on that in this article.