Mail based on binary sensor not always working

Hi,

I have a binary sensor for each of my aircons :

- binary_sensor:
    - name: "airco_gang_is_on"
      icon: "mdi:fan"
      state: "{{ not is_state('climate.airco_gang', 'off') }}"
    - name: "airco_living_links_is_on"
      icon: "mdi:fan"
      state: "{{ not is_state('climate.airco_living_links', 'off') }}"
    - name: "airco_living_rechts_is_on"
      icon: "mdi:fan"
      state: "{{ not is_state('climate.airco_living_rechts', 'off') }}"

When an aircon switch on or off, I want to get an e-mail.

So I created these automatisations :

alias: '!!! Notificatie indien airco living rechts ingeschakeld wordt'
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor.airco_living_rechts_is_on
    to: 'on'
    for:
      hours: 0
      minutes: 0
      seconds: 3
condition: []
action:
  - service: script.cb_e_mail
    data:
      message: Airco living rechts ingeschakeld !
      title: Airco living rechts ingeschakeld !
mode: single

alias: '!!! Notificatie indien airco living rechts uitgeschakeld wordt'
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor.airco_living_rechts_is_on
    to: 'off'
    for:
      hours: 0
      minutes: 0
      seconds: 3
condition: []
action:
  - service: script.cb_e_mail
    data:
      message: Airco living rechts uitgeschakeld !
      title: Airco living rechts uitgeschakeld !
mode: single

This works mostly, but not always…why ?

Sensor is on, but no e-mail that airco went on…

Schermafbeelding 2022-01-20 162327

Thanks for that.

I wll start another topic, cause I think the problem is somewhere else…