Fibaro Smart Implant: instructions to configure binary inputs (Updated, SKIP first two posts, instructions on the 3rd)

Thanks @therealdb
I’ve unpaired and paired the device again (generic zwave device) and got the devices on the second image (one master, one temp sensor, 2* generic IO, 3 * Get_LANG). I then ran the script from the third post (with corrected master id) using the “Test luup code” option and it failed and then I tried to do it on “edit startup Lua” and it worked.
After running the script I get no child devices, see first figure.
Last two figures show the Advanced device parameter and variable tabs after running the script.
Thanks,
Avi