The temp wire is to get power for the switch? That's what I got from the pic.
You say that the earlier pic is incorrect re power in/out. How why?
What is the right way?
If it all worked I was going to slice that temp wire into the black wire.
If someone local has wired one in a bit of a look see would help here. @sooty_10 can you share done light on this mate.
Edit.
Just noticed that you added a pic. I have seen this and will try to work it out using that.
Electrical is not for me, but I try.
Thanks @Ben-e-boy