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 markerConfiguration:
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:
-
Install "Sensor Settings" Android app on your smartphone.
-
Switch on NFC on your smartphone
-
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.
-
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).
-
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.
-
In Android App, click Write and tap the phone against the bottom of the sensor
-
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