Problem with dual endstop

I’m using the skr 1.4 and having trouble with the end stops.

I started out with a config for Rambo with dual endstop config and changed it to fit my skr. I can move the motors but M119 returns:
x2_min: open
y_min: open
y2_min: open
z_min: TRIGGERED

At this state the end stops are not connected at all.

I wonder though why I don’t see a x_min and also how I can get remove the z_min? When I tried to remove it from the config marlin does build

My config looks like this:
#define USE_XMIN_PLUG

#define USE_YMIN_PLUG

#define USE_ZMIN_PLUG

#define USE_XMAX_PLUG

#define USE_YMAX_PLUG

//#define USE_ZMAX_PLUG

If I comment out the USE_ZMIN_PLUG, I get a SanityCheck error

Endstops are normally configured as NC (normally closed) depending on how you connected the wires to the stops, so triggering the end stop opens the circuit. It looks like your z-min has been setup as NO (normally open). As to the xmin being missing that would be somewhere in your config, and I think you are removing the variable, there should be a Boolean somewhere like USE_ZMIN_PLUG 1 (or true)

I removed the DIAG pin on the tmc2209 and now they all say triggered when not connected which seems fine.

The M119 still dont list the x_min though, any ideas?