Skip to content

Commit 7e705f7

Browse files
zeehioballoob
authored andcommitted
Support multiple keys in ifttt triggers (home-assistant#8751)
* Support multiple keys in ifttt triggers * Rename `to` to `target` in ifttt as suggested
1 parent 4dafc5c commit 7e705f7

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

source/_components/ifttt.markdown

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,19 @@ Once you have added your key to your `configuration.yaml` file, restart your Hom
7070
After restarting the server, be sure to watch the console for any logging errors that show up in red, white or yellow.
7171
</p>
7272

73+
### {% linkable_title Multiple IFTTT keys %}
74+
75+
If you have multiple IFTTT users you can specify multiple IFTTT keys with:
76+
77+
```yaml
78+
# Example configuration.yaml entry
79+
ifttt:
80+
key:
81+
YOUR_KEY_NAME1: YOUR_API_KEY1
82+
YOUR_KEY_NAME2: YOUR_API_KEY2
83+
```
84+
85+
7386
### {% linkable_title Testing your trigger %}
7487

7588
You can use the **Developer tools** to test your [Webhooks](https://ifttt.com/maker_webhooks) trigger. To do this, open the Home Assistant frontend, open the sidebar, click on the first icon in the developer tools. This should get you to the **Call Service** screen. Fill in the following values:
@@ -85,6 +98,17 @@ Service Data | `{"event": "EventName", "value1": "Hello World"}`
8598
When your screen looks like this, click the 'call service' button.
8699
</p>
87100

101+
By default the trigger is sent to all the api keys from `configuration.yaml`. If you
102+
want to send the trigger to a specific key use the `target` field:
103+
104+
Field | Value
105+
----- | -----
106+
domain | `ifttt`
107+
service | `trigger`
108+
Service Data | `{"event": "EventName", "value1": "Hello World", "target": "YOUR_KEY_NAME1"}`
109+
110+
The `target` field can contain a single key name or a list of key names.
111+
88112
### {% linkable_title Setting up a recipe %}
89113

90114
Press the *New applet* button and search for *Webhooks*.

0 commit comments

Comments
 (0)