Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: net1
- description: "Count all events pushed by the Netatmo API"
- trigger:
- - event_data: {}
- event_type: netatmo_event
- platform: event
- action:
- - service: persistent_notification.create
- data_template:
- notification_id: "prova1"
- title: "Netatmo event"
- message: "prova1"
- - alias: Net2
- description: 'Motion detected at home'
- trigger:
- - event_type: netatmo_event
- platform: event
- event_data:
- type: movement # animal, vehicle
- action:
- - service: persistent_notification.create
- data_template:
- notification_id: "Netatmo"
- title: "Netatmo event"
- message: >
- {% if is_state('persistent_notification.netatmo' , 'notifying') %}
- {{ states.persistent_notification.netatmo.attributes.message }}
- [{{ now().strftime('%H:%M') }}] - Movimento Rilevato
- {% else %}
- [{{ now().strftime('%H:%M') }}] - Movimento Rilevato
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement