Lora > The Things Network > Home Assistant: Missing Fields

Hello everyone

I would appreciate your help.

I am new to Lora and just setup my first gateway ( RAK7246 ) and node ( RAK7205 ) with The Things Network.

I followed the RAK guides and successfully setup both devices and connected them to TTN. I must say, the RAK products and documentation appear to be very exceptionally high quality.

However, I cannot get the sensor values into my Home Assistant. All I have managed to get is the meta data (“time” and “raw”) as attributes (which suggests that a connection between HA and TTN has been established).

1A13816D-B2B3-4B34-8CA9-9F8E112B0F08_4_5005_c

sensor:
# The Things Network
  - platform: thethingsnetwork
    device_id: dalemodule
    values:
      battery: V

However the HA logs suggest otherwise:

HA Logs:

It appears - and I am not a programmer - that I might be missing individual data/value fields when decoding my Lora Payload into TTN. Perhaps this is why I don’t get any values in Home Assistant

TTN Swagger:

*API key changed

However the individual value fields are visible in the TTN console:

TTN Payload Console:

{
  "DecodeDataHex": "0188fa43191601f1007ba20802016f0768640673258c026700760402066b0371003fffe5fc10",
  "DecodeDataObj": {
    "acceleration": {
      "x": "0.063g",
      "y": "-0.027g",
      "z": "-1.008g"
    },
    "battery": "3.67V",
    "environment": {
      "barometer": "961.20hPa",
      "gasResistance": "16.43KΩ",
      "humidity": "50.0% RH",
      "temperature": "11.80°C"
    },
    "gps": {
      "altitude": "316.5m",
      "latitude": "-37.6039°",
      "longitude": "144.2289°"
    }
  }
}

RAK decoder code:

Did you ever figure this out? I have the same problem. I’m trying to extract the sensor data into my mqtt server, which ultimately push sensor data to Influxdb where I can view on using Grafana. But I never got the mqtt part figured out.