Automation is unavailable

I have in homeassistant\include the file automation.yaml. In there this code

#kelderverlichting gaat branden bij openen trap. dit door een magneetsensor
  - alias: kelderverlichting
    id: '6157081212610'
    initial_state: true
    trigger:
      - platform: state
        entity_id: binary_sensor.magneetsensor_kelder
    condition: >
      {{ 
        states('binary_sensor.magneetsensor_kelder') in [ 'on', 'off' ] 
        and trigger.from_state.state != trigger.to_state.state
      }}
    action:
      - service: "light.turn_{{ trigger.to_state.state }}"
        target:
        entity_id: light.hue_lightstrip_plus_1
          
#dompelpomp start bij grondwaterdetectie kelder
  - alias: dompelpomp
    id: '6657051215618'
    initial_state: true
    trigger:
      - platform: state
        entity_id: binary_sensor.grondwaterdetectie
    condition: >
      {{ 
        states('binary_sensor.grondwaterdetectie') in [ 'on', 'off' ] 
        and trigger.from_state.state != trigger.to_state.state
      }}
    action:
      - service: "light.turn_{{ trigger.to_state.state }}"
        target:
          entity_id: light.hue_smart_plug_

in my lovelace yaml I have

      - type: entities
        view_layout:
          grid-area: tablet
        title: Kelder
        show_header_toggle: false
        card_mod:
          class: header
          style: |
            ha-card {
              margin: 0px !important;
            }
        entities:
          - entity: automation.kelderverlichting

          - entity: automation.dompelpomp

automation.kelderverlichting doesn’t get recognized (unavailable)
automation.dompelpomp just works.

what is going wrong to the first automation