Ignore the Yellow, Black & Red wires inside the base, wire per the installation guide Figures 2, 3 or 4 depending on the base selected for the application.
Wiring for F220-B6PS 12/24VDC Popit Base
Wiring for F220-B6PM 24VDC Popit Base
Wiring for F220-B6PM 24VDC Popit Base with F220-B6 2-Wire Slave Bases
Terminals 1 - 5 Diagram
How to tell the difference between the F220-B6PS and F220-B6PM Base
Base Assembly Diagram