This page takes one LoRaWAN gateway and one LoRaWAN sensor from the box to decoded readings in about fifteen minutes. It uses the most common setup: a gateway that speaks Basics Station and a sensor that joins over the air (OTAA). Each step links to the full page in the LoRaWAN section.
What you need
- The Admin role (permission to manage LoRaWAN gateways and devices).
- An EU868 gateway that supports Basics Station (LNS mode), with access to its own configuration page. Gateways that only run the UDP packet forwarder are not supported.
- An EU868 sensor and its supplier sheet with the DevEUI, JoinEUI (also called AppEUI) and AppKey.
- Room for two more devices in your plan: the gateway and the sensor each count as one device.
If your gateway is a licensed router with a LoRa radio, skip steps 1 and 2 and follow Licensed routers as LoRaWAN gateways.
1. Add the gateway
- Open Devices and select New device.
- Choose LoRaWAN gateway (“A Basics Station gateway, by its EUI; its token is shown once.”).
- Enter a Name (for example
Roof, north side) and the Gateway EUI: 16 hexadecimal digits from the gateway’s label or web page. Spaces,-and:are removed for you. The Region is fixed to EU868. - Select Add gateway.
The drawer shows the Connect the gateway values: the LNS address, the Discovery address and the Token header, with buttons to download tc.uri, tc.trust and tc.key.
Warning
The token is shown only here, once. Copy the token header or download the three files before you close the drawer. If you lose it, rotate the token later. See Add a LoRaWAN gateway.
2. Configure the gateway
On the gateway’s own configuration page:
- Choose the network server mode Basics Station (LNS).
- Set the server address (
tc.uri) to the LNS address,wss://<your organisation's address>.<network server host>. If the gateway asks for a discovery address instead, use the Discovery address. - Set the server certificate (
tc.trust): upload the downloaded file, or choose the gateway’s system certificate store. - Set the authorisation token (
tc.key) to the Token header line, or upload the downloadedtc.key. - Save and restart the gateway’s forwarder.
Back in Hermetry, open the gateway from Devices and select its LoRaWAN tab. Within a minute the status says Online, and Round trip and Connected since fill in. See Connect a Basics Station gateway.
3. Add the sensor
- Open Devices > New device and choose LoRaWAN device (“An end device, by its DevEUI, JoinEUI and AppKey.”).
- Keep Activation on OTAA (joins with its AppKey).
- Fill in Name, DevEUI, JoinEUI (AppEUI) (use
0000000000000000when the sheet has none), AppKey (32 hexadecimal digits), LoRaWAN version (1.0.3 unless the sheet says otherwise) and Class (A for battery sensors). - Select Add device. The drawer says The device was added. It shows as joined after its first join request.
The sensor is added on the built-in profile LoRaWAN EU868 Class A OTAA (1.0.3). Only pairing mode adds devices to a profile of your choice.
Warning
The AppKey is stored encrypted and never shown again. Keep the supplier’s sheet.
See Add an OTAA device. For sensors with fixed session keys, see Add an ABP device.
4. Let it join
Power the sensor on, or make it join again (many sensors have a button or a magnet for this). Open the sensor’s LoRaWAN tab: the join badge next to the heading changes to Joined after a successful join. The join and the first uplinks also appear in the frames log: Devices > ⋯ > LoRaWAN frames.
See How a device joins, step by step.
5. Check the codec
A codec turns the sensor’s bytes into readings. A new device uses Automatic (by maker and port): Hermetry picks the codec that claims the sensor’s maker (from its DevEUI) and the frame’s FPort. Your own codecs are tried before the library’s 106 codecs.
On the sensor’s LoRaWAN tab, look at Codec:
- If a codec was found, keep Automatic.
- If no codec claims the sensor, the payload arrives undecoded as hex under the key
raw. Choose the sensor’s codec from the list and select Save, or use None (raw payload to the flows) and decode it in a flow.
See Codecs: turning bytes into values and The codec library.
6. See the first readings
Open the sensor’s Telemetry tab. After the next uplink, the Latest values table shows the decoded keys, for example temperature, humidity and battery, plus the radio keys lora.rssi, lora.snr and others when the profile adds them. The LoRaWAN tab shows the Latest reception with the gateways that heard it.
Battery sensors often send only every 10 to 60 minutes. Check the frames log if you do not want to wait.
If it does not work
| Symptom | First check |
|---|---|
| The gateway never shows Online | It still runs the UDP forwarder, the token line is incomplete, or it does not trust the certificate. See the troubleshooting table in Connect a Basics Station gateway. |
| Nothing from the sensor in the frames log | The sensor is out of range, is not an EU868 device, or has not tried to join. |
| A join is refused in the frames log | Wrong AppKey or JoinEUI, or a reused DevNonce. See Troubleshooting joins. |
Joined, but only raw arrives | No codec claims the sensor. Pick one on the LoRaWAN tab. |
| Values arrive with the maker’s names | Rename and convert them. See Cleaning up decoded values. |
Next steps
- Add more sensors of the same kind at once with pairing mode.
- Place the gateway on the map: Gateway status, health and the map.
- Show the readings on a board: Build your first dashboard.

