JSON data format for JemRF temp & hum sensor

62 views
Skip to first unread message

J V

unread,
May 16, 2024, 10:07:23 PM5/16/24
to PrivateEyePi
Greetings, I'm trying to integrate a JemRF temperature and humidity sensor to my ThingsBoard ecosystem via MQTT. (https://www.jemrf.com/es/products/wifi-temperature-and-humidity-sensor-internet-of-things-iot)

I connected the device and the JSON data format is strange, although it is a JSON, this is the format: [[{"temperature":"19.50","unit_of_measurement":"C"}],[{"humidity":"68.40","unit_of_measurement":"%"}]]

Which is not possible to process in ThingsBoard since the platform is waiting for a JSON of this format:
{ "temperature": 17, 
   "unit_of_measurement_temperature":"C", 
   "humidity": 60, 
    "unit_of_measurement_humidity":"%"
}

Or at least: 

[{ "temperature": 17, 
   "unit_of_measurement_temperature":"C"}, 
   {  "humidity": 60, 
    "unit_of_measurement_humidity":"%"}]

 Is it possible to change this format? I'm trying to integrate without extra gateways or proxies.

Thanks in advance!

Glenn Seaton

unread,
May 16, 2024, 11:24:21 PM5/16/24
to PrivateEyePi
I will review the formats, I see the issue you raised. The JSON was targeted at HomeAssistant users.

Glenn

J V

unread,
May 18, 2024, 12:17:33 AM5/18/24
to PrivateEyePi
Thanks for your response Glenn! I look forward to your update.
Joaquín

Glenn Seaton

unread,
May 18, 2024, 12:46:55 PM5/18/24
to PrivateEyePi
I released WiFi Sensor Update  3.4.6 to the Download server.
I did see the difference and corrected the format to put both values in the same group.

[
{"temperature":"76.28","unit_of_measurement":"F"},
{"humidity":"60.20","unit_of_measurement":"%"}
]

With that change, Can you tell the group how to connect to the Things Network?

Glenn

Reply all
Reply to author
Forward
0 new messages