The Things Network (TTN) - new adapter for v3

Just in case, I haven’t managed to run TTN adapter in HA, but integrating Mosquitto with TTN MQTT works just fine.

Details of my journey here

Discovered by luck your integration (I’m using MQTT with TTN since the flip from V2 to V3 and no more official integration) and so far it works great for all my sensors but my GPS tracker devices (RAK trackers) and my Buttons (RAK7201) don’t show up at all.
Is it normal ? or is there something I can do about it ? When I try to edit Devices or Fields for these two applications integration tells me there is nothing to setup there :frowning:

Also do you plan to support account wide instead of support by app ?

Thanks anyway for that great integration :+1:

Hi all,

I’vo got two LoRaWAN sensors communicating to TTN.

I can’t seem to find this repository in HACS to add them to HA, can any of you still find this repository?
Thanks for the trouble.

As indicated in the doc you add manually the repo at HACS and you’ll be able to install it from HACS (did it yesterday without any problems :wink:

1 Like

Hi Thomas, I have a Dragino Water Flow meter which does not appear in the devices configuration, do you have any advice?

Hi Paul,
I have the same device and also 5 other new Lora-devices from Dragino all sucessfullly registered and comunicating within an TTN APP. But the HA integration doesn´t show the devices in the configuration. I just opened a topic [No devices found in TTN (new version) v0.2.0 · Issue #15 · angelnu/home_assistant_thethingsnetwork · GitHub] in Github.
Kind regards
Timo

Hi, ty for creating this adaptor. Having an issue seeing / displaying the proper sensor data.

im running HA with your new adaptor installed.
I have one lorawan sensor - a seeed sense cap 2105 and a 3rd party lorawan gateway.
everything connected to the things network

my 2105 seems to be sending only a portion of the 3 fields of data it can receive to TTN.
And the field received, is gibberish in HA.

Have you installed the payload decoder in TTN for your sensecap ?
Also I advise you to use the regular mqtt path instead of the TTN V3 connector as it’s not reliable and not supported anymore by its creator :frowning:

Thx for the reply.
I went to applications - payload formatters - use device repositories, if that’s what you are referring to?

And in terms of MQTT - if im using a few other sensors throughout my house that are connected via MQTT broker to HA, can i not add TTN as a second MQTT

If device is known by TTN you can do that but I advise to put the payload formatter supplied by manufacturer :wink: GitHub - Seeed-Solution/TTN-Payload-Decoder

Not sure to understand your questions. For TTN you create a MQTT bridge between MQTT server from TTN and your local one :wink: You can have a look at that thread where I explain how to do the setup: The Things Stack integration ? (on TTN V3)? - #41 by sp8 I use it here since more than a year for a bunch of Lora devices and it works perfect !

1 Like

the data is being formatted correctly in TTN. however not in HA. im running TTN from HACS.

this is what I see -

and second question - if I just go down the mqtt path -

and use the mqtt host for ttn - nam1.clpud.thethings.network

is there a way to keep the existing home mqtt devices I have running on my local HA at 192.168.X.XXX network?

Did you check options of integration:
Screenshot_20230512_184002
Then select Fields and setup them at best :wink:

yep it won’t interfere ! You use the standard included mqtt broker of HA add-ons ?

The issue is - HA sees the sensor data as a message - and is not parsing out the relevant values. In TTN, im using the device specific payload formatted.

So as u can see above - HA sees “messages” as a sensor. It would seems like HA should see the 3 or 4 values within the messages as the sensors.

It’s not HA but the integration and you can’t do anything about it that’s why I suggest you since few messages to use the MQTT way as you can then easily extract any data you need :wink:

Im trying MQTT - but im having a problem.

I configure the MQTT broker in HA with the host, and username/password - but nothing populates in devices, MQTT.
And i know the Ttn MQTT is working bc if i go to any program that receives MQTT feeds, it will work.

Nothing here is showing up as a device -
image

This is the set up w the proper credentials that receives data if i try to listen for it on other devices.

It’s absolutely not the way to do it ! Please look at link in my previous posts where I explain how to configure HA MQTT add-on to get it to communicate it with TTN :wink: You have to create a bridge configuration !

1 Like

I am not seeing your instructions on creating a bridge. where should I look? I looked at post #41 - but im not seeing instructions there

have a loot at my post there: The Things Stack integration ? (on TTN V3)? - #5 by vincen

so if I understand the sequence correctly

  1. go to add on’s - go to the mqtt broker app configuration -
    change the text to
logins: []
customize:
  active: true
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
anonymous: false

from

then - add

connection nameitasyouwant
address eu1.cloud.thethings.network
bridge_protocol_version mqttv311
remote_username xxxxx@ttn (to get on device profile page in TTS console)
start_type automatic
notifications false
try_private false
remote_password NNSXS.XXXXXXX (named API keys in TTS console)
bridge_insecure true
topic # in 0
cleansession true

if this is correct - where do I put the above code? I dont see a folder named mosquito? where would I look - or does this get entered in an integration?