{"id":43030822,"url":"https://github.com/cyberjunky/home-assistant-p2000","last_synced_at":"2026-01-31T07:35:48.300Z","repository":{"id":37444745,"uuid":"228649088","full_name":"cyberjunky/home-assistant-p2000","owner":"cyberjunky","description":":fire_engine: This component tracks P2000 emergency events in The Netherlands.","archived":false,"fork":false,"pushed_at":"2022-12-31T13:58:27.000Z","size":671,"stargazers_count":48,"open_issues_count":15,"forks_count":8,"subscribers_count":17,"default_branch":"master","last_synced_at":"2023-08-15T13:54:24.519Z","etag":null,"topics":["custom-component","emergency","hacs","home-assistant","homeassistant","p2000","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cyberjunky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-17T15:45:12.000Z","updated_at":"2023-07-12T02:01:28.000Z","dependencies_parsed_at":"2023-01-31T19:15:48.369Z","dependency_job_id":null,"html_url":"https://github.com/cyberjunky/home-assistant-p2000","commit_stats":null,"previous_names":[],"tags_count":24,"template":null,"template_full_name":null,"purl":"pkg:github/cyberjunky/home-assistant-p2000","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberjunky%2Fhome-assistant-p2000","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberjunky%2Fhome-assistant-p2000/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberjunky%2Fhome-assistant-p2000/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberjunky%2Fhome-assistant-p2000/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cyberjunky","download_url":"https://codeload.github.com/cyberjunky/home-assistant-p2000/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberjunky%2Fhome-assistant-p2000/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28933469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T04:05:25.756Z","status":"ssl_error","status_checked_at":"2026-01-31T04:02:35.005Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-component","emergency","hacs","home-assistant","homeassistant","p2000","python"],"created_at":"2026-01-31T07:35:48.247Z","updated_at":"2026-01-31T07:35:48.292Z","avatar_url":"https://github.com/cyberjunky.png","language":"Python","funding_links":["https://www.paypal.me/cyberjunkynl/"],"categories":[],"sub_categories":[],"readme":"[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/custom-components/hacs)  [![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/cyberjunkynl/)\n\n# P2000 Sensor Component\n\n## NOTE: \nWe now use a new RSS feed service provided by Erwin from http://p2000.brandweer-berkel-enschot.nl/ thanks!\nHence this version is in beta state.\n\n# P2000 Sensor Component\n\nThis is a Custom Component for Home-Assistant (https://home-assistant.io) that tracks P2000 emergency events in The Netherlands.\n\n## About\nThis component queries http://p2000.brandweer-berkel-enschot.nl/ at the configured interval and applies filters for range (if lat/lon is available), discipline(s) and regio(s) set.\n\nWhen events are found the P2000 sensor state gets set, which you can use to trigger automation, display sensor data,\nand even plot location on the map.\n\n## Installation\n\n### HACS - Recommended\n- Have [HACS](https://hacs.xyz) installed, this will allow you to easily manage and track updates.\n- Search for 'P2000'.\n- Click Install below the found integration.\n- Configure using the configuration instructions below.\n- Restart Home-Assistant.\n\n### Manual\n- Copy directory `custom_components/p2000` to your `\u003cconfig dir\u003e/custom_components` directory.\n- Configure with config below.\n- Restart Home-Assistant.\n\n## Usage\nTo use this component in your installation, add the following to your `configuration.yaml` file:\n\n```yaml\n# Example configuration.yaml entries\n\nsensor:\n  - platform: p2000\n    scan_interval: 20\n    capcodes: 1403001,1403003\n    icon: mdi:fire-truck\n    nolocation: true\n    \n  - platform: p2000\n    name: Amsterdam\n    regios: 13\n    disciplines: Politiediensten\n    radius: 10000\n    scan_interval: 10\n    latitude: 52.3680\n    longitude: 4.9036\n```\n\nConfiguration variables:\n\n- **regios** (*Optional*): You can specify one, if you want more seperate them by commas, without it you trigger on all (is alot)\n * 0 = Gereserveerd\n * 1 = Groningen\n * 2 = Friesland\n * 3 = Drenthe\n * 4 = IJsselland\n * 5 = Twente\n * 6 = Noord en Oost Gelderland\n * 7 = Gelderland Midden\n * 8 = Gelderland Zuid\n * 9 = Utrecht\n * 10 = Noord Holland Noord\n * 11 = Zaanstreek-Waterland\n * 12 = Kennemerland\n * 13 = Amsterdam-Amstelland\n * 14 = Gooi en Vechtstreek\n * 15 = Haaglanden\n * 16 = Hollands Midden\n * 17 = Rotterdam Rijnmond\n * 18 = Zuid Holland Zuid\n * 19 = Zeeland\n * 20 = Midden- en West-Brabant\n * 21 = Brabant Noord\n * 22 = Brabant Zuid en Oost\n * 23 = Limburg Noord\n * 24 = Limburg Zuid\n * 25 = Flevoland\n- **disciplines** (*Optional*): Disciplines to display, separate them by commas. (default = all of them)\n * Brandweerdiensten = Brandweer\n * Ambulancediensten = Ambulance\n * Politiediensten = Politie\n * Gereserveerd = Gereserveerd\n * [Possible more of them]\n- **radius** (*Optional*): Only display on calls within this range in meters, it uses the lat/lon from your home-assistant.conf file as center or the optional latitude/longitude values.\n- **scan_interval** (*Optional*): Check every x seconds. (default = 30)\n- **name** (*Optional*): Name for sensor.\n- **latitude** (*Optional*): Latitude of center radius.\n- **longitude** (*Optional*): Longitude of center radius.\n- **capcodes** (*Optional*): Capcode(s) you want to filter on. http://capcode.nl. You can specify one, if you want more seperate them by commas. (full 7 digit notation)\n- **nolocation** (*Optional*): Set this to False if you only want events which contain location data (default = True)\n- **contains** (*Optional*): Search for events which contains this word exactly how it is written, for example GRIP\n\nNOTE:\nRegarding capcodes;\nMake sure you specify the correct matching regio(s) in your config and remove leading 0's ie. capcode 0100001 is received as 100001 \n\nYou can use a state trigger event to send push notifications like this:\n```yaml\n# Example automation.yaml entry\n\nautomation:\n  - alias: 'P2000 Bericht'\n    trigger:\n      platform: state\n      entity_id: sensor.p2000\n    condition:\n      alias: \"Time 07~23\"\n      condition: time\n      after: \"07:00:00\"\n      before: \"23:00:00\"\n    action:\n      - service_template: notify.html5\n        data_template:\n          title: P2000 Bericht - {{ state_attr('sensor.p2000', 'discipline') }}\n          message: \u003e\n            {{ states('sensor.p2000') }} (Capcode: {{ state_attr('sensor.p2000', 'capcode') }})\n          data:\n            # iOS URL\n            url: \"https://www.google.com/maps/search/?api=1\u0026query={{ state_attr('sensor.p2000', 'latitude') }},{{ state_attr('sensor.p2000', 'longitude') }}\"\n            # Android URL\n            clickAction: \"https://www.google.com/maps/search/?api=1\u0026query={{ state_attr('sensor.p2000', 'latitude') }},{{ state_attr('sensor.p2000', 'longitude') }}\"\n```\n\nAbove is for html5 notify, you can click the notify message to open google maps with the lat/lon location if available in the P2000 message.\n\n## Screenshots\n\n![alt text](https://github.com/cyberjunky/home-assistant-p2000/blob/master/screenshots/p2000sensor.png?raw=true \"Screenshot Sensor\")\n![alt text](https://github.com/cyberjunky/home-assistant-p2000/blob/master/screenshots/p2000map.png?raw=true \"Screenshot Map\")\n![alt text](https://github.com/cyberjunky/home-assistant-p2000/blob/master/screenshots/p2000multi.png?raw=true \"Screenshot Multi\")\n\nLovelace card example:\n\n```yaml\ncards:\n      - entity: sensor.p2000\n        name: P2000 Dordrecht\n        type: sensor\n      - entity: sensor.amsterdam\n        icon: 'mdi:fire-truck'\n        name: P2000 Amsterdam\n        type: sensor\n      - default_zoom: 7\n        entities:\n          - entity: sensor.p2000\n          - entity: zone.home\n          - entity: sensor.amsterdam\n        title: P2000 Dordrecht \u0026 Amsterdam\n        type: map\n```\n\n## Debugging\nIf you experience unexpected output, please create an issue.\nShare your configuration and post some debug log info.\nYou can obtain this by adding this line to your config and restart homeassistant.\n\n\n```\nlogger:\n  default: info\n  logs:\n      custom_components.p2000: debug\n```\n\n## Donation\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/cyberjunkynl/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberjunky%2Fhome-assistant-p2000","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyberjunky%2Fhome-assistant-p2000","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberjunky%2Fhome-assistant-p2000/lists"}