More than one TTN app in HA

Continuing the discussion from How to configure more than 1 application-id in TTN:

This issue is becoming more and more popular, as number of growing nodes and consequentially number of TTN apps growing up.
Is there any solution to use more than one TTN app in Home assistant?

Thank You!

Hi Roberto69,

I don’t use this Integration anymore because of this limitation.
My working solution by now:

  1. Added Node-Red to my Installation
  2. Created an Node-Red Flow, which acts as an MQTT Bridge between TTN-MQTT and HA-MQTT and put the App-ID in the mqtt-topic

This works for me since a few month without any problem.

1 Like

Hi michas79,

thank you for the hint - it seems a good idea.
Would you be so kind and share some more info how to do this (for example picture of flow)?

I would like to use my existing NodeRed, located on other Raspberry than HA is running.

It is really a very simple flow.

  1. Connect to your TTN-MQTT-Server an use the Topic ‘+/devices/+/up’
  2. transform JSON to Object
  3. Add APP_ID to Topic like:
msg.topic = 'ttn/'+msg.payload.app_id+'/'+msg.payload.dev_id;
return msg;


4. transform Object to JSON
5. Send it to your HA MQTT

All together looks like this

:slight_smile:

2 Likes