The problem with the smart tail light how do you actually know it is at the end? You also need a cable connection all the way through the train.
No you don't. Wireless ETD/SBU units have been in regular use on thousands of trains every day across many countries including the USA and Australia where trains over three times the length of a British freight train run on tightly curved routes carved into hilly terrain.
Longer term, a shift towards introducing ECP on all new freight rolling stock (and subsidising a retro-fit program) would be desirable, in order to upgrade the handling of freight trains so they have braking performance more like a multiple unit and can then run at higher speeds. In that case, you would have data cables linking each wagon.
Then of course if your reordering a train or deleting or adding wagons, how do you know it's at the end? It sound simple but the deeper you look the more complex.
If using a ETD/SBU, you would know it's at the end because you'd have the ground staff take it off and put it on the end each time a change is made to the train length.
It would be just as simple if ECP rolling stock was in use, except that it would be plugged into the last wagon's data connector instead of being completely wireless.
It would not be complex, purely because the hard work of resolving the complexity was done back in the 1980's.