P2000 notification only for my city

I installed the P2000 addon via HACS and it works fine but I would like to receive notifications via WhatsApp that are only intended for my city.

I have tried all kinds of things but it does not work the way I want.

The strange thing is that when I import the P2000 addon via MQTT in Homey I can only receive notifications for my city via a flow.

I have created this automation and that is actually the same basis as the flow that I created in Homey but it does not work that way.

alias: P2000 Bericht
description: ""
triggers:
  - entity_id:
      - sensor.p2000
    trigger: state
conditions:
  - condition: or
    conditions:
      - condition: state
        entity_id: sensor.p2000
        state: Spijkenisse
actions:
  - action: notify.send_whatspie
    metadata: {}
    data:
      target: 6285159xxxxxxx
      message: |-
        {{ now().strftime("%d-%m-%Y %H:%M")}}.
        {{ states('sensor.p2000') }}
mode: single

Does anyone know how I can get this to only send notifications for my city?

Thanks.

You define that in the sensor. Look at the config options for P2000 and choose the options you need

Here is my sensor definition to get the info into HA. It will only use the data if it is within 5km range from the given coordinates

# =============
# === P2000 ===
# =============
# P2000 systeem
- platform: p2000
  name: MyPlace
  regios: 20
  radius: 5000
  scan_interval: 30
  latitude: ##.#####
  longitude: #.#####
  nolocation: true
  icon: mdi:fire-truck

Next you can filter your town

conditions:
  - condition: template
    value_template: "{{ \"myplace\" in states.sensor.myplace.state|lower }}"

Thanks, I have it setup like this now and I will see if this works like it should.

alias: P2000 Bericht
description: ""
triggers:
  - entity_id:
      - sensor.spijkenisse
    trigger: state
conditions:
  - condition: template
    value_template: "{{ \"spijkenisse\" in states.sensor.spijkenisse.state|lower }}"
actions:
  - action: notify.mobile_app_telefoon_xxxx
    metadata: {}
    data:
      message: |-
        {{ now().strftime("%d-%m-%Y %H:%M")}}.
        {{ states('sensor.spijkenisse') }}
mode: single