From c21fe3ea92f417f2b8e2538e03445c725594e102 Mon Sep 17 00:00:00 2001 From: Emeric Date: Mon, 9 May 2022 14:34:04 +0200 Subject: [PATCH] Fix units for TPMS and JQJCY01YM (#111) * Fix units for TPMS and JQJCY01YM * Improve documentation for JQJCY01YM and HHCCPOT002 --- docs/devices/HHCCPOT002.md | 2 +- docs/devices/JQJCY01YM.md | 2 +- src/devices/JQJCY01YM_json.h | 4 ++-- src/devices/TPMS_json.h | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/devices/HHCCPOT002.md b/docs/devices/HHCCPOT002.md index 5d42ee7d..2d832427 100644 --- a/docs/devices/HHCCPOT002.md +++ b/docs/devices/HHCCPOT002.md @@ -7,6 +7,6 @@ |Short Description|Moisture, temperature and fertility sensor| |Communication|BLE broadcast| |Frequency|2.4Ghz| -|Power source|CR2032| +|Power source|Rechargeable battery, USB| |Exchanged data|moisture, fertility| |Encrypted|No| diff --git a/docs/devices/JQJCY01YM.md b/docs/devices/JQJCY01YM.md index d713c373..35c00fbe 100644 --- a/docs/devices/JQJCY01YM.md +++ b/docs/devices/JQJCY01YM.md @@ -8,5 +8,5 @@ |Communication|BLE broadcast| |Frequency|2.4Ghz| |Power source|2 AA| -|Exchanged data|formaldehyde, humidity, battery| +|Exchanged data|formaldehyde, temperature, humidity, battery| |Encrypted|No| diff --git a/src/devices/JQJCY01YM_json.h b/src/devices/JQJCY01YM_json.h index f574648f..f7f9b647 100644 --- a/src/devices/JQJCY01YM_json.h +++ b/src/devices/JQJCY01YM_json.h @@ -28,7 +28,7 @@ const char* _JQJCY01YM_json = "{\"brand\":\"Xiaomi\",\"model\":\"Formaldehyde de } })"""";*/ -const char* _JQJCY01YM_json_props = "{\"properties\":{\"batt\":{\"unit\":\"%\",\"name\":\"battery\"},\"tempc\":{\"unit\":\"°C\",\"name\":\"temperature\"},\"hum\":{\"unit\":\"%\",\"name\":\"humidity\"},\"for\":{\"unit\":\"%\",\"name\":\"formaldehyde\"}}}"; +const char* _JQJCY01YM_json_props = "{\"properties\":{\"batt\":{\"unit\":\"%\",\"name\":\"battery\"},\"tempc\":{\"unit\":\"°C\",\"name\":\"temperature\"},\"hum\":{\"unit\":\"%\",\"name\":\"humidity\"},\"for\":{\"unit\":\"mg/m³\",\"name\":\"formaldehyde\"}}}"; /*R""""( { "properties":{ @@ -45,7 +45,7 @@ const char* _JQJCY01YM_json_props = "{\"properties\":{\"batt\":{\"unit\":\"%\",\ "name":"humidity" }, "for":{ - "unit":"%", + "unit":"mg/m³", "name":"formaldehyde" } } diff --git a/src/devices/TPMS_json.h b/src/devices/TPMS_json.h index 475ae679..eb676056 100644 --- a/src/devices/TPMS_json.h +++ b/src/devices/TPMS_json.h @@ -28,7 +28,7 @@ const char* _TPMS_json = "{\"brand\":\"GENERIC\",\"model\":\"TPMS\",\"model_id\" } })"""";*/ -const char* _TPMS_json_props = "{\"properties\":{\"batt\":{\"unit\":\"%\",\"name\":\"battery\"},\"tempc\":{\"unit\":\"°C\",\"name\":\"temperature\"},\"pres\":{\"unit\":\"kPa\",\"name\":\"temperature\"},\"count\":{\"unit\":\"int\",\"name\":\"count\"},\"alarm\":{\"unit\":\"status\",\"name\":\"alarm\"}}}"; +const char* _TPMS_json_props = "{\"properties\":{\"batt\":{\"unit\":\"%\",\"name\":\"battery\"},\"tempc\":{\"unit\":\"°C\",\"name\":\"temperature\"},\"pres\":{\"unit\":\"kPa\",\"name\":\"pressure\"},\"count\":{\"unit\":\"int\",\"name\":\"count\"},\"alarm\":{\"unit\":\"status\",\"name\":\"alarm\"}}}"; /*R""""( { "properties":{ @@ -42,7 +42,7 @@ const char* _TPMS_json_props = "{\"properties\":{\"batt\":{\"unit\":\"%\",\"name }, "pres":{ "unit":"kPa", - "name":"temperature" + "name":"pressure" }, "count":{ "unit":"int",