{{langData.layout_email_2}}{Email Account Here} {{langData.layout_email_3}}{{langData.layout_email_4}}

Raw Sensors Data

Retrieve all raw and unprocessed connected sensor data of a user or gateway.


API End Point


    GET https://www.lifecare.sg/mlifecare/event/getRawSensorData
        

Parameters

Key Type Description Example Defined Required
DeviceId String Gateway MAC Address z0a78298473 --
StartDateTime Date Timestamp Start date time parameter for sensor data to be retrieved 2015-01-01T00:00:00Z --
EndDateTime Date Timestamp End date time parameter for sensor data to be retrieved 2015-01-01T23:59:59Z --
PageSize Integer Pagination usage. State the number of record to return per request. 10 --
SkipSize Integer Pagination usage. State the number of offset records for that request. 0 --
EventTypeId String Unique identifier of event types 20014
  • 2 - Panic
    User panic alert data
  • 3 - Fall
    User fall detected data
  • 1004 - Location Telemetry Data Upload
    SmartEAR Kids sends location data to AT.Things Platform
  • 1005 - Battery Telemetry Data Upload
    SmartEAR Kids sends battery data to AT.Things Platform
  • 1006 - SOS Telemetry Data Upload
    SmartEAR Kids sends SOS data to AT.Things Platform
  • 1007 - Online Status Telemetry Data Upload
    SmartEAR Kids sends Online / Offline data to AT.Things Platform
  • 1008 - Picture Telemetry Data Upload
    SmartEAR Kids sends Picture Telemetry Data to AT.Things Platform
  • 1009 - Voice Message Telemetry Data Upload
    SmartEAR Kids sends voice message to AT.Things Platform
  • 20001- Alarm Report
    Sensor's alarm triggered and reporting extra data (check response extra data field)
  • 20002- Status On
    Sensor's sends it current ON status to the cloud, usually happens right after 20004 (see below)
  • 20003- Status Off
    Sensor's sends it current OFF status to the cloud, usually happens after executing certain commands and before going back to (20005) idle/sleep mode.
  • 20004 - Sensor On
    Sensor triggered and turned on to execute certain command
  • 20005 - Sensor Off
    Sensor turrning off and going to sleep
  • 20006 - Thermostat Mode
    Current Mode of the thermostats
  • 20007 - Thermostat Temp
    Temperature of the thermostats
  • 20008 - Thermostat Fan
    Temperature of the Fan Speed
  • 20009 - Battery Report
    Battery levels of the sensor
  • 20010 - Sensor Update Data
    Sensor returning extra data
  • 20011 - Doorlock Secured
  • 20012 - Doorlock Unsecured
  • 20013 - Bpm Update Data
    Blood Pressure and Heart Rate Data
  • 20014 - Scale Data
    Weight data from the weighing scale
  • 20015 - Glucose Update Data
    Glucose meter data
  • 20016 - Accelerometer Update Data
    Accelerometer meter data
  • 20017 - Gyroscope Update Data
    Gyroscope meter data
  • 20018 - Magnetometer Update Data
    Magnetometer meter data
  • 20019 - Barometer Update Data
    Barometer meter data
  • 20020 - Humidity Update Data
    Humidity meter data
  • 20021 - Power Update Data
    Current power reading of any energy devices in W
  • 20022 - Water Flow Update Data
    Current water flow reading in cm3 / s
  • 20023 - Smoke Detect
    Smoke detection data
  • 20024 - Carbon Monoxide Detect
    Carbon monoxide detection data
  • 20025 - Carbon Dioxide Detect
    Carbon dioxide detection data
  • 20026 - Heat Detect
    Fire / heat detection data
  • 20027 - Water Detect
    Flood / water detection data
  • 20028 - Freeze Detect
    Freezing temperature detection data
  • 20029 - Tamper Detect
    Damage detection data
  • 20030 - Energy Update Data (Hourly) AUX Sensor Data (Deprecated)
    Hourly energy update data in kWh
  • 20031 - Water Update Data (Hourly) Door Open Data (Deprecated)
    Hourly water usage data in litres
  • 20032 - Tilt Detect
    Tilt motion detect
  • 20032 (TEMP - Green Hotel Only) - Energy Profile Data
    Combined data of AC energy usage, Other devices energy usage apart from AC, Total energy usage. 15 minute interval.
  • 20033 - Motion Detect
    Motion detect
  • 20034 - Glass Break
    Breaking glass detect
  • 20035 - Door Close
    Door closing sensor detect
  • 20036 - Vibration Detected
    Seismic or Tamper activity
  • 20038 - Motion Off
    Motion sensor turned off
  • 20039 - Water Sensing
    Detect if area is wet
  • 20041 - Arm State On
    Security for a particular zone is turned on
  • 20042 - Disarm State On
    Security for all zones are turned off
  • 20043 - Possible intrusion
    A event has been detected in an armed zone. Waiting for confirmation of the event if its an intrusion via passcode / other forms of verification
  • 20044 - Intrusion Detected
    Intrusion has been confirmed parties to be alerted
  • 20047 - Permanent Fault
    Prolonged Tamper
  • 20048 - Water Meter Dongle Removed
    Water meter dongle was removed from the gateway
  • 20050 - SPO2
    SPO2 (Pulse and Oxygen) Data
  • 20051 - Thermometer
    Thermometer Data
  • 20052 - Pedometer
    Steps Calculated
  • 20053 - Urine Analyzer
    Urine samples taken
  • 20060 - Medication Intake
    In-take of medication
  • 20061 - Food Intake
    In-take of food
  • 20062 - Presence Detected
    User's presence in a location
  • 20063 - Symptoms
    User's medical symptoms
  • 20064 - Presence Off
    User's disapperance from a location
  • 20065 - Clock-in
    User's time-in to the system
  • 20066 - Clock-out
    User's time-out from the system
  • 20067 - Doorbell Ringing
    Ringing of the doorbell
  • 20070 - Location Update Data
    Latitude and Longitude data of the user
  • 20071 - Arm State On
    Security of all zones are turned on
  • 20072 - Arm State On
    Security of all zones are turned on, with dwellers within
ZoneCode String Abbreviation of the location name of the sensor MB
  • BT1 - Bathroom 1
  • KI - Kitchen
  • MB - Master Bedroom
  • LR - Living Room
EntityId String Unique Identifier of Lifecare's User ID E094984SF3-AOFIE0329F-0W9E29R98F --
EventId String Unique Identifier of Event 1538976 --
Rfid String User's RFID access tag 5e638ds --
Ip String IP Address of the user 127.0.0.1 --

Response

Value Type Description
_id String Unique identifier of the sensor record
event_type_name String Sensor's event name
event_type_id String Sensor's event unique identifier
node_id String Sensor's unique identifier
node_name String Sensor's name
zone String Location of the sensor
device_id String Unique identifier of the gateway
extra_data String Raw detailed data from the sensor
entity_id String Uniquer identifier of Lifecare user
zone_code String Unique code of the location of the sensor
ip String IP Address of the user
rfid String User's RFID Access
create_date Date Timestamp Sensor's event create date

Returned Object Example


    {
        "TotalRows": 873,
        "RowsReturned": 873,
        "Data": [
            {
                "_id": "54ce67c8bfdf3c030038c256",
                "event_type_name": "Sensor Off",
                "event_type_id": "20005",
                "node_id": "26",
                "node_name": "kitchen sensor",
                "zone": "Kitchen",
                "device_id": "z0a78300b00b",
                "extra_data": "none",
                "entity_id": "UPDNAY3H-ZX76LXDW-VGV9XD98",
                "zone_code": "KI",
                "ip": '127.0.0.1',
                "rfid": '5e638ds',
                "create_date": "2015-01-04T15:21:32.000Z"
            },
            ...
        ],
        "Error": false,
        "ErrorDesc": null,
        "ErrorCode": null
    }
            

Set up a discussion here!