This Node-Red module contains the "Mijia BLE Filter" node that filters and extracts the sensor data of Mijia BLE devices obtained via node-red-contrib-ble-scan.
The methodolgy and parser has been obtained from the homebridge-mi-hygrothermograph project on GitHub.
To install this module use Node-Red GUI installer or console command:
npm install node-red-contrib-mijia-filter
Input message: msg.payload must be the output message from node-red-contrib-ble-scan.
Output message: msg.payload object that contains the following:
- address - MAC address of Mijia sensor
- data - object of the sensor data that may contain the following dependant on sensor type and data broadcast:
- temperature_ - temperature from sensor
- battery - battery level in percents
- humidity - Mijia Temperature Humidity device only
- light, moisture, conductivity - MiFlora device only
This module has been tested with:
- MJ_HT_V1
- LYWSD02