Is it possible to make an integration for local control of an Xbee Digi hub? For local control of a Hot Springs / Caldera Watkins Hot Spa

I found this python script on GitHub but I don't know exactly what to do with it. Has anyone tried to bake this into Hubitat for local control of their hot tub? The Caldera Spas app is awful with slow response times. I suspect it is a server issue on their end, wish I could bypass them.