Strange behaviour in two similar automations

I have two similar automations:

The first:

- alias: Fha appena entrata
  hide_entity: true
  initial_state: true
  trigger:
    - platform: state
      entity_id: device_tracker.fha
      to: 'home'
  action:
    - service: input_boolean.turn_on
      entity_id: input_boolean.fha_appena_entrata
    - service: notify.join
      data:
        message: Fha appena entrata
        title: HomeAssistant          
    - delay: '00:06:00'
    - service: input_boolean.turn_off
      entity_id: input_boolean.fha_appena_entrata
    - service: notify.join
      data_template:
        message: >-
          "{{ trigger.to_state.attributes.friendly_name }} arriva a casa alle {{ states('sensor.time') }}"

The second:

- alias: Maurizio appena entrato
  hide_entity: true
  initial_state: true
  trigger:
    platform: zone
    entity_id: device_tracker.s8_s8
    event: enter
    zone: zone.home
  action:
    - service: input_boolean.turn_on
      entity_id: input_boolean.mau_appena_entrato
    - delay: '00:06:00'
    - service: input_boolean.turn_off
      entity_id: input_boolean.mau_appena_entrato
    - service: notify.join
      data_template:
        message: >-
          "{{ trigger.to_state.attributes.friendly_name }} arriva a casa alle {{ states('sensor.time') }}"

But while the second is running smoothly, the first is triggered every some minutes…

Home Assistant

17:48

"Fha MQTT arriva a casa alle 17:48"

Home Assistant

17:45

"Fha MQTT arriva a casa alle 17:45"

And so on…
Can somebody help me to solve this?

Have you checked device_tracker.fha history?
My first guess would be its a phone that keeps dropping off your wifi and reconnecting to save its battery

Ok, i noticed it goes on and off from ‘home’ to not_home’, but my device_tracker are using zanzito mqtt and not wifi as in this way i can follow the devices also out of wifi…

Not familiar with zanzito but ive just had a very quick look out of interest and the one thing i picked up on is that you tell it your home SSID in the settings. So my guess is still some kind of power saving on the phone, which I would disable for testing.

Hmmm… intenresting… it’s just little time i am using zanzito, so i’ll check better the configs…