I think incorporating the mi home gateway into Home Assistant or Node-RED might be a little off topic for this community site. I mean no disrespect of course but those respective communities might be better suited and able to help with that.
In terms of bridging the Hubitat with those platforms - you can use these awesome community contributions: