OK, Mike, you said it was OK. ?
I have uploaded my PG-XL Node-Red Flow. ?It is "ugly", but it works, mostly, for what I need.
I received my PG-XL yesterday and learned that when I use my Node-Red Dashboard "Tune Button" the PG-XL stays in "operate", so I get many watts when tuning that way.
This is not a problem when using any of the devices that Flex has interfaced with the PG-XL to because there is a "handy" button available to easily change the mode of the amp.
So....I "Sharked" the PG-XL, found the commands and responses, and with the help of the "parsing wizard of Jersy", built an "Amp Mode" button. ? I then tied the "amp mode button" into my "Tune" button, so when I tune, from the Node-Red dashboard, the amp goes to "standby". ?
I added an additional 50ms (80ms total) to the PTT delay on the Flex PTT settings for good measure to make sure the Node-Red commands were complete before RF goes out the pipe.
The tune button background changes based on the status response from the PG-XL to confirm there was an actual mode change. ?Using the status also provides the data for the button to "toggle" between "Operate" and "Standby".
The rest of the flow was an attempt to extract the remaining status messages from the PG-XL. ?As you will see, some make sense, like "band" and "VAC", others do not......like I said, WIP.
Alan
WA9WUD