Capture X10 All units Off and All Lights On

Hi, has anyone written something to capture X10 "All Units Off’ and “All Lights ON” from an X10 Mini controller. I’m running a mix of ZWave and X10 and I thought it would be nice to be able to hit the “All units off” button on an X10 desktop controller and have HG capture it so I could also turn off ZWave and other lights (or any other device),

I saw some code for sending an all units off command through the web API, but not the other way.

Probably wouldn’t be too hard to read the raw X10 data but I wanted to make sure hadn’t already written something before I spend time doing it again.

Thanks!

BTW, first post so please let me know if I can improve my topic naming or level of details.