See your last screenshot. “Tamper: detected”
Unrelated to that, most contact sensors (not sure what type yours is, you haven’t said) have a setting to choose whether the magnet-sensing reed switch (see your third photo) or external contacts (the pressure mat you are using) are sensed. You may not have that parameter set correctly- the default is usually to use the reed switch.
If you knew the manufacturer, you could look up the parameter settings here:
https://products.z-wavealliance.org/
Once you know the parameter and the desired setting, you could use this to set it: