How to on off realy in ardiuno via openhab 2 useing mqtt

Looks good now.

Any errors in your openhab.log or broker log? Any state change events in your events.log?

Go through all the steps described here: