mqtt and button press help.

Hi chaps,

I have a code that uses mqtt to control my blinds, it works perfect (I didn't write it)

I would like to add a physical button to operate the 3 commands as well working from mqtt.

Ideally using Onebutton but I could use 3 individual switches.

I'm struggling.

could some one point me in the right direction

Thanks.

blinds.ino (7.98 KB)

I think I have cracked it