Skip to content

DIY3D/Elsys-EMS-TTN-node-RED

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elsys-EMS-TTN-node-RED

Elsys EMSindoor LoRaWan wireless sensor with TTN and node-RED

I recently visited The Things Conference in Amsterdam and bought this nice small indoor LoRaWan sensor whit different features like Temperature, Humidity, Leak detection, Magnetic switch Acceleration, NFC and a battery life time of approx. 10years. I registered this device in the TTN Console and created an application with node-RED that reads the temperature, humidity, battery voltage and reedrelay status.

What's inside?

You can open the case with the help of a small screwdriver, slit between the bottom and the upper part. Here are some pictures from the inside.

Elsys EMS parts

Elsys EMS frontside

Elsys EMS teardown, on the left two supercaps for a longer battery life

Elsys EMS backsider

Leak detection contact...Important:There is no battery plus and minus indication to be found so I used a marker

Configuration:

This sensor is equipped with NFC (Near Field Communication) for easy configuration with an Android phone. With the application "Sensor Settings" you can create your own configuration settings and upload them to the Elsys EMS sensor using this NFC feature.

The very comprehensive, clear site contains all the information needed to bring this sensor online. You can find there: Datasheets, Usermanuals, Firmware versions, documentation about the Android App, battery life calculator, Downlink generator, NFC coding, Javascript payload decoder, TTN payload decoder ... in short super extensive site. Fine!! https://www.elsys.se/en/lora-ems/

Steps to take:

  1. Install "Sensor Settings" Android app on your smartphone.

  2. Switch on NFC on your smartphone

  3. Create a new Application + new Device in TTNconsole. Device ID can be found in android app under sensor settings. Copy the payload decoder (scroll down @ https://www.elsys.se/en/elsys-payload/) to the "Payload Formats" tab in your TTN console.

  4. For OTAA join, App EUI and AppKey copy from ttnconsole to phone (I have converted notation from upper case and spaces in TTN to lower case, no spaces in Android app).

  5. In Android app: Configure all components and open the switches for the custom items, example: Sensor: EMS Timebase: 30 Sec (gets warning but good to test) Temp / hum / Light ..periods etc .: 1 Sensor leys: OTAA Advanced: Datarate> DR5, Datarate max> DR5, Datarate min> 0 Port: 1 ...etc.

  6. In Android App, click Write and tap the phone against the bottom of the sensor

  7. Configuration is transferred via NFC.

node-RED flow

I created an application in node-RED with a dashboard that provides the Temperature, Humidity, Battery Voltage, Led relay status, Text to Speak nodes and "test inject node" with an comlpleet Elsys EMS json payload string.

For testing wire to the inject node

The flow, with dashboard, pushover, status led and text to speak nodes

node-RED dashboard

Dashboard on smartphone with the "WallPanel" android app

About

Elsys indoor LoRaWan wireless sensor with TTN and node-RED

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published