From ecb3a07d2f3aa0180a1283533f882ce6a3f81fcf Mon Sep 17 00:00:00 2001 From: Milenko Mitrovic Date: Sun, 19 Dec 2021 11:58:41 +0100 Subject: [PATCH] Changed json property names to better match the other properties --- tasmota/xsns_62_esp32_mi_ble.ino | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tasmota/xsns_62_esp32_mi_ble.ino b/tasmota/xsns_62_esp32_mi_ble.ino index 1c37323d1..5b4fa8eed 100644 --- a/tasmota/xsns_62_esp32_mi_ble.ino +++ b/tasmota/xsns_62_esp32_mi_ble.ino @@ -2753,17 +2753,17 @@ void MI32GetOneSensorJson(int slot, int hidename){ #endif //USE_HOME_ASSISTANT ){ if (MI32.option.directBridgeMode) { - ResponseAppend_P(PSTR(",\"weight_removed\":%u"), p->weight_removed); - ResponseAppend_P(PSTR(",\"weight_stabilized\":%u"), p->weight_stabilized); + ResponseAppend_P(PSTR(",\"WeightRemoved\":%u"), p->weight_removed); + ResponseAppend_P(PSTR(",\"WeightStabilized\":%u"), p->weight_stabilized); } - ResponseAppend_P(PSTR(",\"weight_unit\":\"%s\""), p->weight_unit); - ResponseAppend_P(PSTR(",\"weight\":%*_f"), + ResponseAppend_P(PSTR(",\"WeightUnit\":\"%s\""), p->weight_unit); + ResponseAppend_P(PSTR(",\"Weight\":%*_f"), Settings->flag2.weight_resolution, &p->weight); if (p->feature.impedance) { if (MI32.option.directBridgeMode) { - ResponseAppend_P(PSTR(",\"impedance_stabilized\":%u"), p->impedance_stabilized); + ResponseAppend_P(PSTR(",\"ImpedanceStabilized\":%u"), p->impedance_stabilized); } - ResponseAppend_P(PSTR(",\"impedance\":%u"), p->impedance); + ResponseAppend_P(PSTR(",\"Impedance\":%u"), p->impedance); } } }