Thanks all for the help. However I am still having a couple of problems.
I have a variant of the same Sagem DIW box which has a Bluetooth remote and I am using a Harmony Elite and hub for my remote.
I have used the CFG files from this post and the Flirc Kodi profile on the Harmony. In general this is a big step forward but it does allow me to use the apps etc on the TV box and record. I have tried most of the buttons available on the standard harmony profile.
I think what I need to do next is add some buttons to the harmony profile and then get the Flirc to recognise these comma