Crimereports component help

According to the component description: The crimealerts sensor fires a crimealerts_incident event when a new incident is detected, including the type, description, time, location, and coordinates of the incident.

Is there a method to get an iOS notification with all the events details (type, descp, time, location…etc). I’m having a hell of a time teasing out the specifics to get this event to send any data. As is stands now, the sensor.crime_stats gets a state change and shows the number of incidents.

Thanks for the help!

I don’t know if you ever got this up and running but thought I’d share how I was handling notifications for my setup.

    automation:
  - alias: Crime Report Incident
    initial_state: True
    trigger:
      - platform: event
        event_type: crimereports_incident
    action:
      - service: notify.ios_phone
        data_template:
          title: >
            {{ trigger.event.data.type }}
          message: >
            {{ trigger.event.data.type }}, {{ trigger.event.data.description }}, occured at {{ trigger.event.data.location | title }} {{ (as_timestamp(trigger.event.data.timestamp) | int | timestamp_custom('%A at %I:%M %P')) | replace(' 0', ' ') }}.
2 Likes