Hi all,
thanks for the answer.
Yes the issue was the ground wire not properly connected.
Now the device is connected to lights wire and it works whether lights are switched on or off.
The mechanic removed the USB device fuse (which makes me a bit worried) but he reassured me that in worst case the lights fuse would take action and avoid any damages to the bike electronic... fingers crossed