USB Device Triggers not saved

I'm seeing some odd behavior when trying to create USB Device Key Triggers with a DeepDeck.

I'll record the triggers and save, and they disappear. If I move to another macro and save, they'll seem to save, but upon relaunching they're not there.

I recorded a video to help demonstrate.

I believe this is the info on the keyboard from the system report:

CP2102N USB to UART Bridge Controller:

Product ID: 0xea60
Vendor ID: 0x10c4 (Silicon Laboratories, Inc.)
Version: 1.00
Serial Number: dce33dc29141ed11a3fc71e70a86e0b4
Speed: Up to 12 Mb/s
Manufacturer: Silicon Labs
Location ID: 0x04200000 / 1
Current Available (mA): 500
Current Required (mA): 100
Extra Operating Current (mA): 0

I've tried turning the engine off. I've also tried turning off Karabiner Elements.

There are ways to change the firmware on this thing (but I'd like to avoid spending time learning that :grimacing:)

The trigger is being deemed useless for some reason, the most likely is that the product or vendor ID is zero (despite what you write from the system report).

You can turn on debugging for the HID trigger system with:

defaults write com.stairways.keyboardmaestro.engine Debug HID

Then relaunch the engine and try again and have a look in the Engine.log file.

That should report the HID buttons detected which might give some information.

After testing, turn logging off with:

defaults delete com.stairways.keyboardmaestro.engine Debug

and relaunch the Keyboard Maestro Engine.

Did the test and the log is at the bottom of this post.

But I think everything you probably need to know is here.

2023-09-25 22:06:53 Watch Device product id 0 (#255)
2023-09-25 22:07:00 Dump Element
2023-09-25 22:07:00 Vendor ID: 0000 -> (null)
2023-09-25 22:07:00 Product ID: 0000 -> Ahuyama
2023-09-25 22:07:00 Device Usage Page: 0001 -> Generic Desktop
2023-09-25 22:07:00 Device Usage: 0002 -> #2
2023-09-25 22:07:00 Device Usage Short: Mouse
2023-09-25 22:07:00 Device Usage Name: Generic Desktop Mouse
2023-09-25 22:07:00 Device Name: Ahuyama (Mouse)
2023-09-25 22:07:00 Element Usage Page: 0007 -> Keyboard
2023-09-25 22:07:00 Element Usage: 005A -> Key Pad 2
2023-09-25 22:07:00 Element Usage Short: ⊞2
2023-09-25 22:07:00 Element Usage Name: Keyboard Key Pad 2

I can (theoretically) change the firmware on this thing. So if I somehow created a Vendor ID number and/or a Product ID number, might that do it?

Log
2023-09-25 22:06:11 Debugging level set to ' HID '
2023-09-25 22:06:11 Engine Starting 10.2
2023-09-25 22:06:11 Invalid Plug In Action with Name Set Finder Label
Last message repeated 4 times
2023-09-25 22:06:53 Watch For HID Triggers
2023-09-25 22:06:53 Start Watching HID Devices
2023-09-25 22:06:53 Watch Device Ahuyama (Mouse)
2023-09-25 22:06:53 Watch Device TouchBarUserDevice (Keyboard)
2023-09-25 22:06:53 Watch Device Logitech K760 (Keyboard)
2023-09-25 22:06:53 Watch Device Steven Lambert’s Trackpad (Mouse)
2023-09-25 22:06:53 Watch Device Keybow (Keyboard)
2023-09-25 22:06:53 Watch Device Karabiner DriverKit VirtualHIDKeyboard 1.6.0 (Keyboard)
2023-09-25 22:06:53 Watch Device OWC Thunderbolt 3 Audio Device (Consumer Control)
2023-09-25 22:06:53 Watch Device Jabra EVOLVE LINK MS (Headset)
2023-09-25 22:06:53 Watch Device product id 0 (#255)
2023-09-25 22:06:53 Watch Device BTM (#72)
2023-09-25 22:06:53 Watch Device Headset (Consumer Control)
2023-09-25 22:06:53 Stop Watching For HID Triggers
2023-09-25 22:06:53 Watch For HID Triggers
2023-09-25 22:06:54 Invalid Plug In Action with Name Set Finder Label
Last message repeated 4 times
2023-09-25 22:07:00 Dump Element
2023-09-25 22:07:00 Vendor ID: 0000 -> (null)
2023-09-25 22:07:00 Product ID: 0000 -> Ahuyama
2023-09-25 22:07:00 Device Usage Page: 0001 -> Generic Desktop
2023-09-25 22:07:00 Device Usage: 0002 -> #2
2023-09-25 22:07:00 Device Usage Short: Mouse
2023-09-25 22:07:00 Device Usage Name: Generic Desktop Mouse
2023-09-25 22:07:00 Device Name: Ahuyama (Mouse)
2023-09-25 22:07:00 Element Usage Page: 0007 -> Keyboard
2023-09-25 22:07:00 Element Usage: 005A -> Key Pad 2
2023-09-25 22:07:00 Element Usage Short: ⊞2
2023-09-25 22:07:00 Element Usage Name: Keyboard Key Pad 2
2023-09-25 22:07:00 Value: 1
2023-09-25 22:07:00 Cookie: 138
2023-09-25 22:07:00 Element Name: Ahuyama Key Pad 2
2023-09-25 22:07:00 Element Short Name: ⊞2
2023-09-25 22:07:00 Dump Element End
2023-09-25 22:07:00 Possible press Ahuyama Key Pad 2
2023-09-25 22:07:00 DumpWatchTriggerElementSet: Handle_WatchForHIDTrigger press
2023-09-25 22:07:00 Element Ahuyama Key Pad 2 state GotPowerOf2 sd 0 vid 0 pid 0 dpage 1 dusage 2 epage 7 eusage 90 pid 138 value 1
2023-09-25 22:07:00 Dump Element
2023-09-25 22:07:00 Vendor ID: 0000 -> (null)
2023-09-25 22:07:00 Product ID: 0000 -> Ahuyama
2023-09-25 22:07:00 Device Usage Page: 0001 -> Generic Desktop
2023-09-25 22:07:00 Device Usage: 0002 -> #2
2023-09-25 22:07:00 Device Usage Short: Mouse
2023-09-25 22:07:00 Device Usage Name: Generic Desktop Mouse
2023-09-25 22:07:00 Device Name: Ahuyama (Mouse)
2023-09-25 22:07:00 Element Usage Page: 0007 -> Keyboard
2023-09-25 22:07:00 Element Usage: 005A -> Key Pad 2
2023-09-25 22:07:00 Element Usage Short: ⊞2
2023-09-25 22:07:00 Element Usage Name: Keyboard Key Pad 2
2023-09-25 22:07:00 Value: 0
2023-09-25 22:07:00 Cookie: 138
2023-09-25 22:07:00 Element Name: Ahuyama Key Pad 2
2023-09-25 22:07:00 Element Short Name: ⊞2
2023-09-25 22:07:00 Dump Element End
2023-09-25 22:07:00 Possible release Ahuyama Key Pad 2
2023-09-25 22:07:00 Consider possible release Ahuyama Key Pad 2
2023-09-25 22:07:00 DumpWatchTriggerElementSet: Handle_WatchForHIDTrigger release
2023-09-25 22:07:00 Element Ahuyama Key Pad 2 state GotZero sd 0 vid 0 pid 0 dpage 1 dusage 2 epage 7 eusage 90 pid 138 value 1
2023-09-25 22:07:00 DumpWatchTriggerElementSet: THIDTriggerManager::HandleTimerEvent
2023-09-25 22:07:00 Element Ahuyama Key Pad 2 state GotZero sd 0 vid 0 pid 0 dpage 1 dusage 2 epage 7 eusage 90 pid 138 value 1
2023-09-25 22:07:00 Got trigger press Ahuyama Key Pad 2
2023-09-25 22:07:00 Stop Watching For HID Triggers
2023-09-25 22:07:01 Invalid Plug In Action with Name Set Finder Label
Last message repeated 4 times
2023-09-25 22:07:05 Stop Watching HID Devices
2023-09-25 22:07:10 Invalid Plug In Action with Name Set Finder Label
Last message repeated 4 times
2023-09-25 22:07:15 Watch For HID Triggers
2023-09-25 22:07:15 Start Watching HID Devices
2023-09-25 22:07:15 Watch Device Jabra EVOLVE LINK MS (Headset)
2023-09-25 22:07:15 Watch Device product id 0 (#255)
2023-09-25 22:07:15 Watch Device BTM (#72)
2023-09-25 22:07:15 Watch Device TouchBarUserDevice (Keyboard)
2023-09-25 22:07:15 Watch Device Ahuyama (Mouse)
2023-09-25 22:07:15 Watch Device Headset (Consumer Control)
2023-09-25 22:07:15 Watch Device Logitech K760 (Keyboard)
2023-09-25 22:07:15 Watch Device Steven Lambert’s Trackpad (Mouse)
2023-09-25 22:07:15 Watch Device Keybow (Keyboard)
2023-09-25 22:07:15 Watch Device Karabiner DriverKit VirtualHIDKeyboard 1.6.0 (Keyboard)
2023-09-25 22:07:15 Watch Device OWC Thunderbolt 3 Audio Device (Consumer Control)
2023-09-25 22:07:15 Stop Watching For HID Triggers
2023-09-25 22:07:15 Watch For HID Triggers
2023-09-25 22:07:16 Dump Element
2023-09-25 22:07:16 Vendor ID: 0000 -> (null)
2023-09-25 22:07:16 Product ID: 0000 -> Ahuyama
2023-09-25 22:07:16 Device Usage Page: 0001 -> Generic Desktop
2023-09-25 22:07:16 Device Usage: 0002 -> #2
2023-09-25 22:07:16 Device Usage Short: Mouse
2023-09-25 22:07:16 Device Usage Name: Generic Desktop Mouse
2023-09-25 22:07:16 Device Name: Ahuyama (Mouse)
2023-09-25 22:07:16 Element Usage Page: 0007 -> Keyboard
2023-09-25 22:07:16 Element Usage: 005A -> Key Pad 2
2023-09-25 22:07:16 Element Usage Short: ⊞2
2023-09-25 22:07:16 Element Usage Name: Keyboard Key Pad 2
2023-09-25 22:07:16 Value: 1
2023-09-25 22:07:16 Cookie: 138
2023-09-25 22:07:16 Element Name: Ahuyama Key Pad 2
2023-09-25 22:07:16 Element Short Name: ⊞2
2023-09-25 22:07:16 Dump Element End
2023-09-25 22:07:16 Possible press Ahuyama Key Pad 2
2023-09-25 22:07:16 DumpWatchTriggerElementSet: Handle_WatchForHIDTrigger press
2023-09-25 22:07:16 Element Ahuyama Key Pad 2 state GotPowerOf2 sd 0 vid 0 pid 0 dpage 1 dusage 2 epage 7 eusage 90 pid 138 value 1
2023-09-25 22:07:16 Dump Element
2023-09-25 22:07:16 Vendor ID: 0000 -> (null)
2023-09-25 22:07:16 Product ID: 0000 -> Ahuyama
2023-09-25 22:07:16 Device Usage Page: 0001 -> Generic Desktop
2023-09-25 22:07:16 Device Usage: 0002 -> #2
2023-09-25 22:07:16 Device Usage Short: Mouse
2023-09-25 22:07:16 Device Usage Name: Generic Desktop Mouse
2023-09-25 22:07:16 Device Name: Ahuyama (Mouse)
2023-09-25 22:07:16 Element Usage Page: 0007 -> Keyboard
2023-09-25 22:07:16 Element Usage: 005A -> Key Pad 2
2023-09-25 22:07:16 Element Usage Short: ⊞2
2023-09-25 22:07:16 Element Usage Name: Keyboard Key Pad 2
2023-09-25 22:07:16 Value: 0
2023-09-25 22:07:16 Cookie: 138
2023-09-25 22:07:16 Element Name: Ahuyama Key Pad 2
2023-09-25 22:07:16 Element Short Name: ⊞2
2023-09-25 22:07:16 Dump Element End
2023-09-25 22:07:16 Possible release Ahuyama Key Pad 2
2023-09-25 22:07:16 Consider possible release Ahuyama Key Pad 2
2023-09-25 22:07:16 DumpWatchTriggerElementSet: Handle_WatchForHIDTrigger release
2023-09-25 22:07:16 Element Ahuyama Key Pad 2 state GotZero sd 0 vid 0 pid 0 dpage 1 dusage 2 epage 7 eusage 90 pid 138 value 1
2023-09-25 22:07:16 Invalid Plug In Action with Name Set Finder Label
Last message repeated 4 times
2023-09-25 22:07:16 DumpWatchTriggerElementSet: THIDTriggerManager::HandleTimerEvent
2023-09-25 22:07:16 Element Ahuyama Key Pad 2 state GotZero sd 0 vid 0 pid 0 dpage 1 dusage 2 epage 7 eusage 90 pid 138 value 1
2023-09-25 22:07:16 Got trigger press Ahuyama Key Pad 2
2023-09-25 22:07:16 Stop Watching For HID Triggers
2023-09-25 22:07:17 Invalid Plug In Action with Name Set Finder Label
Last message repeated 4 times
2023-09-25 22:07:20 Stop Watching HID Devices
2023-09-25 22:07:24 Watch For HID Triggers
2023-09-25 22:07:24 Start Watching HID Devices
2023-09-25 22:07:24 Watch Device Keybow (Keyboard)
2023-09-25 22:07:24 Watch Device Ahuyama (Mouse)
2023-09-25 22:07:24 Watch Device Karabiner DriverKit VirtualHIDKeyboard 1.6.0 (Keyboard)
2023-09-25 22:07:24 Watch Device OWC Thunderbolt 3 Audio Device (Consumer Control)
2023-09-25 22:07:24 Watch Device Jabra EVOLVE LINK MS (Headset)
2023-09-25 22:07:24 Watch Device product id 0 (#255)
2023-09-25 22:07:24 Watch Device BTM (#72)
2023-09-25 22:07:24 Watch Device Headset (Consumer Control)
2023-09-25 22:07:24 Watch Device TouchBarUserDevice (Keyboard)
2023-09-25 22:07:24 Watch Device Logitech K760 (Keyboard)
2023-09-25 22:07:24 Watch Device Steven Lambert’s Trackpad (Mouse)
2023-09-25 22:07:24 Stop Watching For HID Triggers
2023-09-25 22:07:24 Watch For HID Triggers
2023-09-25 22:07:25 Dump Element
2023-09-25 22:07:25 Vendor ID: 0000 -> (null)
2023-09-25 22:07:25 Product ID: 0000 -> Ahuyama
2023-09-25 22:07:25 Device Usage Page: 0001 -> Generic Desktop
2023-09-25 22:07:25 Device Usage: 0002 -> #2
2023-09-25 22:07:25 Device Usage Short: Mouse
2023-09-25 22:07:25 Device Usage Name: Generic Desktop Mouse
2023-09-25 22:07:25 Device Name: Ahuyama (Mouse)
2023-09-25 22:07:25 Element Usage Page: 0007 -> Keyboard
2023-09-25 22:07:25 Element Usage: 005D -> Key Pad 5
2023-09-25 22:07:25 Element Usage Short: ⊞5
2023-09-25 22:07:25 Element Usage Name: Keyboard Key Pad 5
2023-09-25 22:07:25 Value: 1
2023-09-25 22:07:25 Cookie: 141
2023-09-25 22:07:25 Element Name: Ahuyama Key Pad 5
2023-09-25 22:07:25 Element Short Name: ⊞5
2023-09-25 22:07:25 Dump Element End
2023-09-25 22:07:25 Possible press Ahuyama Key Pad 5
2023-09-25 22:07:25 DumpWatchTriggerElementSet: Handle_WatchForHIDTrigger press
2023-09-25 22:07:25 Element Ahuyama Key Pad 5 state GotPowerOf2 sd 0 vid 0 pid 0 dpage 1 dusage 2 epage 7 eusage 93 pid 141 value 1
2023-09-25 22:07:25 Dump Element
2023-09-25 22:07:25 Vendor ID: 0000 -> (null)
2023-09-25 22:07:25 Product ID: 0000 -> Ahuyama
2023-09-25 22:07:25 Device Usage Page: 0001 -> Generic Desktop
2023-09-25 22:07:25 Device Usage: 0002 -> #2
2023-09-25 22:07:25 Device Usage Short: Mouse
2023-09-25 22:07:25 Device Usage Name: Generic Desktop Mouse
2023-09-25 22:07:25 Device Name: Ahuyama (Mouse)
2023-09-25 22:07:25 Element Usage Page: 0007 -> Keyboard
2023-09-25 22:07:25 Element Usage: 005D -> Key Pad 5
2023-09-25 22:07:25 Element Usage Short: ⊞5
2023-09-25 22:07:25 Element Usage Name: Keyboard Key Pad 5
2023-09-25 22:07:25 Value: 0
2023-09-25 22:07:25 Cookie: 141
2023-09-25 22:07:25 Element Name: Ahuyama Key Pad 5
2023-09-25 22:07:25 Element Short Name: ⊞5
2023-09-25 22:07:25 Dump Element End
2023-09-25 22:07:25 Possible release Ahuyama Key Pad 5
2023-09-25 22:07:25 Consider possible release Ahuyama Key Pad 5
2023-09-25 22:07:25 DumpWatchTriggerElementSet: Handle_WatchForHIDTrigger release
2023-09-25 22:07:25 Element Ahuyama Key Pad 5 state GotZero sd 0 vid 0 pid 0 dpage 1 dusage 2 epage 7 eusage 93 pid 141 value 1
2023-09-25 22:07:25 DumpWatchTriggerElementSet: THIDTriggerManager::HandleTimerEvent
2023-09-25 22:07:25 Element Ahuyama Key Pad 5 state GotZero sd 0 vid 0 pid 0 dpage 1 dusage 2 epage 7 eusage 93 pid 141 value 1
2023-09-25 22:07:25 Got trigger press Ahuyama Key Pad 5
2023-09-25 22:07:25 Stop Watching For HID Triggers
2023-09-25 22:07:26 Invalid Plug In Action with Name Set Finder Label
Last message repeated 4 times
2023-09-25 22:07:29 Stop Watching HID Devices
2023-09-25 22:07:31 Invalid Plug In Action with Name Set Finder Label
Last message repeated 20 times
2023-09-25 22:08:16 Stop Watching For HID Triggers
2023-09-25 22:08:16 Engine Quitting
2023-09-25 22:08:16 Stop Watching For HID Triggers

Yes.

Alternatively, it may work with Keyboard Maestro version 11, since that works around similar issues with some MacBook keyboards that also use Vendor/Product ID of 0.

But changing the VID/PID from 0/0 would be a good idea if you can in any event.

Dug into this for a bit, but I think it's over my head.

Created an issue here. :crossed_fingers:

Keyboard Maestro 11... :eyes::thinking: