Skip to content

Commit 3e713df

Browse files
authored
docs(alerting): Fix the homeassistant event structure example (#1213)
docs(Homeassistant): Fix the event structure in the example
1 parent 2f99ecc commit 3e713df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,13 +1070,13 @@ automation:
10701070
action:
10711071
- service: notify.notify
10721072
data_template:
1073-
title: "Gatus Alert: {{ trigger.event.data.endpoint }}"
1073+
title: "Gatus Alert: {{ trigger.event.data.event_data.endpoint }}"
10741074
message: >
1075-
Status: {{ trigger.event.data.status }}
1076-
{% if trigger.event.data.description %}
1077-
Description: {{ trigger.event.data.description }}
1075+
Status: {{ trigger.event.data.event_data.status }}
1076+
{% if trigger.event.data.event_data.description %}
1077+
Description: {{ trigger.event.data.event_data.description }}
10781078
{% endif %}
1079-
{% for condition in trigger.event.data.conditions %}
1079+
{% for condition in trigger.event.data.event_data.conditions %}
10801080
{{ '✅' if condition.success else '❌' }} {{ condition.condition }}
10811081
{% endfor %}
10821082
```

0 commit comments

Comments
 (0)