This is what I have and it works fine, I just have to reset the switches once loaded in.
{ down = gear_commands.HookHandle, up = gear_commands.HookHandle, cockpit_device_id = devices.GEAR_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('Arresting Hook Handle - Up'), category = {_('Special for Panels'), _('Right Vertical Panel')}},