Pulse counter with 3 channels

It is some time since I used esphome and I am confused. I am trying to count pulses from 3 differesnt pulse sources (electric meters)below is my script

esphome:
  name: test06
  friendly_name: pulse_counter
esp8266:
  board: nodemcu

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "L6h2FdWxobJYo/JtejCA86Sy2DwmKkB7PNDVtTSSGjI="

ota:
  - platform: esphome
    password: "09d2cc8e3fa6f68d0fbf4bd9d6b7dea5"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Test06 Fallback Hotspot"
    password: "UpP8JyuSrChq"

#captive_portal:
sensor:
  - platform: pulse_counter
    pin: GPIO04
    name: "Pulse Counter"
    #update_interval: 60s
   total:
     name:  COUNTER_A"
     update_interval: 60s
  
  - platform: pulse_counter
    pin: GPIO5
    name: "     Pulse CounterB"
   #update_interval: 600s

   total:
     name: "                               COUNTER_B"
     update_interval: 600s



 - platform: pulse_counter
   pin: GPIO0
   name: "          Pulse CounterC"
   #update_interval: 600s

   total:
     name: "                                                      COUNTER_C"
   update_interval: 600s
       type or paste code here

I know there are errors in my file and I do not know how to correct them. Can anybody point me in the right direction Please

Your indentation is off. total: should be in line with platform: and the update interval is part of the main block, not the total. e.g.

  - platform: pulse_counter
    pin: GPIO5
    name: "     Pulse CounterB"
   #update_interval: 600s

   total:
     name: "                               COUNTER_B"
     update_interval: 600s

Should be:

  - platform: pulse_counter
    pin: GPIO5
    name: "Pulse CounterB"
    update_interval: 600s

    total:
      name: "COUNTER_B"

Also what’s up with the massive number of spaces before your names?

You’re not using tabs instead of spaces are you?

That is not allowed in yaml.

You can only have up to eight pulse counters due to hardware limitations. So your three should be fine.

Finally GPIO0 and GPIO5 are not great choices. See the table lower down on this page: ESP32 Pinout Reference: Which GPIO pins should you use? | Random Nerd Tutorials

A really BIG THANKS. after a bit of head scratching I have got the script loaded and giving results. Unfortunately at my desk as I have wifi issues at the measuring site.

Can you advise a good YAML tutorial site as YAMl is a huge mystery?

There’s this: Thomas Lovén - YAML for Non-programmers

But when I started all I did was look very closely at the examples provided and made sure I followed the spacing that was shown in those examples.