Just started to look over the code and I don't have a receiver to test with so...
I'll start by stating that Hubitat doesn't support tiles so I would remove the entire tiles{} section.
Also, did you see this thread?
https://community.hubitat.com/t/app-and-driver-porting-to-hubitat/812