I received the following from Roman at SmartCopilot:
If you issue the command by your LUA script, does it also gets transmitted to another pilot? If yes, you can attach these commands to X-Plane keyboard hotkeys and use it with keyboard only. HeinzXP note: I tried this and the HOME and DTO commands execute correctly on Master and Slave.
It looks like these commands are working only in one direction: if the user issues the command, it will trigger the button event like in your example. It is also the main reason why the devs add these commands to control the plugin from external hardware.
However, when the user triggers the button itself, the command is not being issued. You need to contact plugin developers and ask if they can make it work in both directions. It is minimal modification. Otherwise, there is no chance to capture the button events.
Best regards,
Roman.