Fantastic thanks for the tips and direction.
While it may not look look like much... It works!
And after a quick update to the openHAB items file they update just the same as the MQTT broker gateway.
Now time to build it into a nice plastic box and figure out how to send it data for a relay.
Thanks again.
Cheers,
George