Yes you are right, there have been discussions about making it variable bit it has not happened yet. In this situation then personally I would pick up the value and immediately republish it to MQTT with a more meaningful name (home/bedroom/temperature or whatever matches your naming convention) and use that.
I get MQTT messages whenever a parameter changes (or every 10 secs via Tasmota if they do not change) and store them in global variables in Node-Red (approx 200 different in total right now.)
All subsequent process steps (like writing the value to SQL database or showing them in a chart) is timewise independent and simply reads the latest value from Global Vars.
E.g. it does not make sense for me to store some figures every 10 sec into the SQL DB - there is another process that triggers every 15 mins
Linecharts get new data every 2 mins
If I need a live-trigger from a MQTT-message I connect the step in parallel to the process step that writes the Global Vars
I am using the Global Vars as "single point of information" for my whole Node-Red Installation.
e.g. I do an online-monitoring by verifying the latest UpdateTimeStamp of a Global-Var-Object - independent of the MQTT-Input side
or I compare up to 4 parameters to decide a "next process step" - independent when they were updated the last time - like if I turn on the light in the garage when its bright or dark outside
the bright or dark parameter is delivered via MQTT, but changes only twice a day, so I have to store it somewhere
Just curious. Do you have these as separate global variables or as properties of 1 or 2 objects that are stored in global?
I do something similar where values come from many different sources - but are related & I need to know values independentantly. I pack them up into an object that I store in flow or global context - makes things easier to manage and visualise.
One device (e.g. sensor for water temperature) is one object consisting of a TimeStamp (in readable format), a serialized TimeStamp (for Usage in Node-Red), sometimes a devicename (for ESP8266 sensors and actors) and 0-x measured values
I really like it because it is slim and easy to use
and in most cases the whole object is updated by one specific MQTT package