Binding a LUA action script to a MIDI map

I have a LUA script, kindly provided by @x42.

ardour { ["type"] = "EditorAction", name = "Nudge Playhead 1 sec",
  license     = "MIT",
  author      = "Ardour Team",
}
...

It is stored in scripts/NudgePlayhead1sec.lua. It shows in the editor and I can execute it manually.

I want to bind this to a key (actual: the rotary dial) of the MIDI map of a more or less Mackie compliant surface.
I have tried several ways but I can’t seem to get it to work.

<Binding channel="1" msg="B0 3c 01"  function="NudgePlayhead1sec"/>
<Binding channel="1" msg="B0 3c 01"  function="Nudge Playhead 1 sec"/>
<Binding channel="1" msg="B0 3c 01"  function="LuaAction/Nudge Playhead 1 sec"/>
<Binding channel="1" msg="B0 3c 01"  function="LuaAction/NudgePlayhead1sec"/>

Binding an existing function, e.g. Common/playhead-forward-to-grid works fine.

What is the correct way to bind this action to the midi key?

Assign the script to any of the 32 Editor Action slots, e.g. 17, and in the MIDI map use this…

action="LuaAction/script-17"

Yes! This works!

Thanks!