From 21897481c77389dad5cc4536507976eb463785df Mon Sep 17 00:00:00 2001 From: JC Connell Date: Sun, 25 Feb 2018 19:23:29 -0500 Subject: [PATCH] Add Spot Crime sensor documentation (#4685) * Create sensor.spotcrime.markdown Docs for the Spot Crime sensor * Update sensor.spotcrime.markdown --- source/_components/sensor.spotcrime.markdown | 61 ++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 source/_components/sensor.spotcrime.markdown diff --git a/source/_components/sensor.spotcrime.markdown b/source/_components/sensor.spotcrime.markdown new file mode 100644 index 00000000000..9e540335595 --- /dev/null +++ b/source/_components/sensor.spotcrime.markdown @@ -0,0 +1,61 @@ +--- +layout: page +title: "Spot Crime" +description: "Instructions on how to integrate spotcrime.com into Home Assistant." +date: 2018-02-16 9:30 +sidebar: true +comments: false +sharing: true +footer: true +ha_category: Sensor +logo: spotcrime.png +ha_release: 0.64 +ha_iot_class: "Cloud Polling" +--- + +The `spotcrime` sensor allows one to track reported incidents occurring in a given area. Incidents include anything reported to [Spot Crime](http://spotcrime.com). 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. + +```yaml +sensor: + - platform: spotcrime + name: + radius: + days: +``` + +Configuration options for the Crime Reports Sensor: + +- **name** (*Required*): Name the sensor whatever you want. +- **radius** (*Required*): Radius in meters. +- **days** (*Optional*): Defaults to 1 day. +- **latitude** (*Optional*): Defaults to your home zone latitude. +- **longitude** (*Optional*): Defaults to your home zone longitude. +- **include** (*Optional*): List of incident types to include. +- **exclude** (*Optional*): List of incident types to exclude. + + +## Notes + +### Incident Types + +You can explicitly include or exclude incident types. Specifying `include`s restricts the incidents to those types. Specifying `exclude`s 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.