ESP to MQTT button using ESPEasy

Hey all,

I’ve finished following this tutorial and all is well but one thing.

When I press the button the state changes the relay to 1 but when the button releases it goes back to 0. I don’t know enough about the code to know how to change it. Or is it the fact that I’m using a standard physical push up button and need to buy a button that holds the state?

Any help would be great.

link to button setup (now plugged into D6):