Hi,
I read 92 x values from heating controller via modbus TCP. Response payload is just array of values

I have a list, what each value means. e.g. 3rd value name is "403". I don't use any database in Node Red, so the list should be built in the nodes.
Also, there are always empty values. For example 5th value is never there, so it should be skipped. So it doesn't have a matching pair in the list. About 50 of those 92 received values actually mean something.
What I'd like to do, is to publish the values via MQTT in JSON message to be used in Home Assistant sensors.
My thoughts were to add a topic (or other identifier) for each value so it can be picked in Home Assistant and build a JSON message.
{"403":123,"404":456}
I really suck at function node and couldn't find suitable example from forum.
Home Assistant can easily divide JSON message for different sensor values:
sensor:
- platform: mqtt
name: "403"
state_topic: "heating/HC1"
unit_of_measurement: 'C'
value_template: "{{ value_json.403}}"
