mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Add config flow to brottsplatskartan (#22475)
This commit is contained in:
parent
8921f18bee
commit
a20c6c9386
@ -2,9 +2,13 @@
|
|||||||
title: Brottsplatskartan
|
title: Brottsplatskartan
|
||||||
description: Instructions on how to integrate brottsplatskartan.se into Home Assistant.
|
description: Instructions on how to integrate brottsplatskartan.se into Home Assistant.
|
||||||
ha_category:
|
ha_category:
|
||||||
|
- Sensor
|
||||||
- Social
|
- Social
|
||||||
ha_release: 0.85
|
ha_release: 0.85
|
||||||
ha_iot_class: Cloud Polling
|
ha_iot_class: Cloud Polling
|
||||||
|
ha_config_flow: true
|
||||||
|
ha_codeowners:
|
||||||
|
- '@gjohansson-ST'
|
||||||
ha_domain: brottsplatskartan
|
ha_domain: brottsplatskartan
|
||||||
ha_platforms:
|
ha_platforms:
|
||||||
- sensor
|
- sensor
|
||||||
@ -13,36 +17,7 @@ ha_integration_type: integration
|
|||||||
|
|
||||||
The `brottsplatskartan` sensor allows one to track reported incidents occurring in a given area. Incidents include anything reported to [Brottsplatskartan](https://brottsplatskartan.se). The sensor only counts incidents from the current day.
|
The `brottsplatskartan` sensor allows one to track reported incidents occurring in a given area. Incidents include anything reported to [Brottsplatskartan](https://brottsplatskartan.se). The sensor only counts incidents from the current day.
|
||||||
|
|
||||||
## Configuration
|
{% include integrations/config_flow.md %}
|
||||||
|
|
||||||
To enable this sensor, add the following lines to your `configuration.yaml`.
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
sensor:
|
|
||||||
- platform: brottsplatskartan
|
|
||||||
```
|
|
||||||
|
|
||||||
{% configuration %}
|
|
||||||
name:
|
|
||||||
description: Custom name for the sensor.
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: Brottsplatskartan
|
|
||||||
area:
|
|
||||||
description: Area for sensor to monitor
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
latitude:
|
|
||||||
description: Latitude for sensor.
|
|
||||||
required: false
|
|
||||||
type: float
|
|
||||||
default: Your home zone latitude defined in your configuration.
|
|
||||||
longitude:
|
|
||||||
description: Longitude for sensor.
|
|
||||||
required: false
|
|
||||||
type: float
|
|
||||||
default: Your home zone longitude defined in your configuration.
|
|
||||||
{% endconfiguration %}
|
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user