The Point integration fires events from an incoming webhook.
The following automation works well, but I don’t like trigger.event.data.event.type
(trigger.data.type
would make more sense) is there a smarter way to use hass.bus.async_fire()
or can the automation be written better?
automation:
alias: Point button press
trigger:
- event_type: point_webhook_received
event_data: {}
platform: event
condition:
condition: template
value_template: "{{ trigger.event.data.event.type == 'short_button_press' }}"
action:
- data_template:
message: "Button press on Point {{ trigger.event.data.event.device_id }}"
title: Point button press
service: persistent_notification.create
``