GPIO Contact not Updating

You might need either a pullup or a pulldown depending on how your circuit is configured. It’s to ensure a wire connected to an open circuit switch is pulled to a known voltage, not left “floating”. If the resistor pulls to the same voltage as the switch when active … then nothing ever changes.

Get a meter and check voltage at your GPIO pin in both states.

I know little about the binding but this looks relevant

This might help