Hi,
The idea of creating TCI Node-Red library is really good, but keep in mind that creating library is totally different story then creating flows. Right now I dont have knowledge how to do that. Anyway, you can use my concept as as good starting point. If you have any question relate to my flow let me know, I can easilly explain most parts.