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).
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: