Skip to content
The Things Network compatible payload decoder functions for TEKTELIC's KONA LoRaWAN sensors
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Jan 20, 2019
README.md Updating product URLs Feb 28, 2019
tektelic-kona-home-ttn-decoder.js Incorporating avbentem's fixes for negative temperatures and PIR hand… Jan 29, 2019

README.md

The Things Network decoder function for TEKTELIC sensors

TEKTELIC Communications make small "all-in-one" LoRaWAN sensors designed for home/office use. They measure temperature, humidity, PIR activity, and more. This repo contains a decoder function to unpack the payloads of these sensors and separate out the parameters being reported. This is targetted at TTN, but with minor changes will work in other network servers or Node-RED.

We sell the sensors online, here:

To use this:

  • create a TTN application and register your devices using the TTN console
  • in your application, choose "Payload Formats" from the navigation
  • paste the decoder function into the textarea

You can test the function by pasting in this example payload: 0367008904686400FF011D

This should be turned into a JSON object that looks like this:

{
  "activity": null,
  "battery_voltage": 2.85,
  "bytes": "A2cAiQRoZAD/AR0=",
  "external_input": null,
  "humidity": 50,
  "reed_count": null,
  "reed_state": null,
  "temperature": 13.700000000000001
}

(actual data from my particularly chilly office)

This code is MIT licenced, and we don't claim it to be excellent, pull requests are encouraged! This isn't yet complete, it doesn't yet support accelerometer payloads for example. Again, pull request!

Contributors

Many thanks to:

  • avbentem for suggesting fixes to negative temperature and PIR handling
You can’t perform that action at this time.