* 🔥 Removes octopress.js * 🔥 Removes use of root_url var * 🔥 Removes Octopress generator reference from feed * 🔥 Removes delicious support * 🔥 Removes support for Pinboard * 🔥 Removes support for Disqus * 🔥 Removes support for Google Plus * ↩️ Migrate custom after_footer to default template * ↩️ Migrate custom footer to default template * ↩️ Migrate custom header to default template * 🔥 Removes unused template files * 🚀 Places time to read directly in post template * 🚀 Removes unneeded capture from archive_post.html template * 🔥 🚀 Removes unused, but heaving sorting call in component page * 🚀 Merged javascripts into a single file * 🔥 Removes more uses of root_url * 🚀 Removal of unneeded captures from head * 🔥 🚀 Removal of expensive liquid HTML compressor * 🔥 Removes unneeded templates * 🚀 Replaces kramdown with GitHub's CommonMark 🚀 * 💄 Adds Prism code syntax highlighting * ✨ Adds support for redirect in Netlify * ↩️ 🔥 Let Netlify handle all developer doc redirects * ✏️ Fixes typo in redirects file: Netify -> Netlify * 🔥 Removes unused .themes folder * 🔥 Removes unused aside.html template * 🔥 Removes Disqus config leftover * 🔥 Removes rouge highlighter config * 🔥 Removes Octopress 🎉 * 💄 Adjust code block font size and adds soft wraps * 💄 Adds styling for inline code blocks * 💄 Improve styling of note/warning/info boxes + div support * 🔨 Rewrites all note/warning/info boxes
2.0 KiB
title, description, ha_release, ha_iot_class, redirect_from
| title | description | ha_release | ha_iot_class | redirect_from | |
|---|---|---|---|---|---|
| Spot Crime | Instructions on how to integrate spotcrime.com into Home Assistant. | 0.65 | Cloud Polling |
|
The spotcrime sensor allows one to track reported incidents occurring in a given area. Incidents include anything reported to Spot Crime. Your regional emergency services may or may not report data. The sensor defaults to counting incidents within one day, but can be customized via configuration.yaml.
Configuration
To enable this sensor, add the following lines to your configuration.yaml. Your radius should be of sufficient size to capture incidents in your area. 0.01 = 1 mile.
sensor:
- platform: spotcrime
name: NAME
radius: SEARCH_RADIUS
api_key: YOUR_API_KEY
{% configuration %} name: description: Name the sensor what you'd like. required: true type: string radius: description: Radius you'd like to search within. 0.01 = 1 mile. required: true type: float api_key: description: The API key to access the service. required: true type: string days: description: Number of days you'd like see to crime statistics for. required: false type: integer include: description: Event types you want statistics for. required: false type: list exclude: description: Event types to ignore statistics for. required: false type: list {% endconfiguration %}
Notes
Incident Types
You can explicitly include or exclude incident types. Specifying includes restricts the incidents to those types. Specifying excludes will return all incident types except those specified.
These incident types are available:
- Arrest
- Arson
- Assault
- Burglary
- Robbery
- Shooting
- Theft
- Vandalism
- Other
Events
The crimealerts sensor fires a crimealerts_incident event when a new incident is detected, including the type, time, and location of the incident.