As far as I can tell, parse is way downstream from the relay the hub does.
Essentially hub v1 is a stupidly simple device. It’s a radio stack for zigbee and zwave and basic IP functions to communicate with the cloud services.
The local hubaction originates in the cloud, sends the request down to the hub, out over ip, leaves the port open and waits for a response, ala a web browser request. Then the response is relayed back up to the cloud for processing.
This is where the issue is, there is frankly nothing that can be really done locally on the hub without the cloud completely controlling it.
The response is parsed in the cloud and based on the DNI it routes it to the appropriate devicetype bound to that DNI or in the case of smartApps it routes it to the location (hub location) handler for ANY smartapp to parse.
So I think you are probably wanting to dig into the location handler and not the parse function. However, that code only exists cloud side (for now, hub v2? maybe local) and isn’t user accessible.
I found the UDP flag via a lengthy search and putting together lots of pieces of a puzzle, but ultimately not accepting that it isn’t possible to do.
Essentially, once I realized they were wrapping the basic httprequester function in java into the hubaction, it was clear that UDP could be done, it was just a matter of how it needed to be configured.
Just keep in mind the local hubaction commands are completely not supported (my words, not ST) and will probably depreciate them soon as hub v2 eventually launches and should have a much more robust local network support (maybe?).
We’ve come a long way since a year ago with hubactions locally, however, very little has changed or has been shared from ST. This has been a complete hack by end-users / community developers.
Too bad really… Would be nice to pull aside the komono a bit and show us exactly what could be done with hub v1 and not just tell us to wait (forever?) for hub v2.
Anyway, maybe someday soon the local network support for ST will be feature rich and allow true integrations with anything. I won’t be holding my breath, instead, I’ll keep firing up packet sniffers and watching packets and asking the same questions in different ways until I find that one piece of knowledge I need to make it work. (then they will break it, again… Go figure.)