Skip to content

Commit f495cff

Browse files
authored
Add examples of events (home-assistant#12534)
* Add examples of events As discussed with @cgtobi in https://community.home-assistant.io/t/netatmo-in-ha-0-105/169377/133?u=gerard33 * Update according to review comments
1 parent 871d46a commit f495cff

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

source/_integrations/netatmo.markdown

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Example:
117117
{% raw %}
118118

119119
```yaml
120-
# Example automation
120+
# Example automation for Netatmo Welcome
121121
- alias: Motion at home
122122
description: 'Motion detected at home'
123123
trigger:
@@ -140,6 +140,30 @@ Example:
140140

141141
{% raw %}
142142

143+
```yaml
144+
# Example automation for Netatmo Presence
145+
- alias: Motion at home
146+
description: 'Motion detected at home'
147+
trigger:
148+
- event_type: netatmo_event
149+
platform: event
150+
event_data:
151+
type: human # other possible types: animal, vehicle
152+
action:
153+
- data_template:
154+
message: >
155+
{{ trigger.event.data["data"]["message"] }}
156+
at {{ trigger.event.data["data"]["home_name"] }}
157+
title: Netatmo event
158+
service: persistent_notification.create
159+
```
160+
161+
{% endraw %}
162+
163+
Example:
164+
165+
{% raw %}
166+
143167
```yaml
144168
# Example automation
145169
- alias: door or window open or movement

0 commit comments

Comments
 (0)