From 0e4219150f7a201e5892e06a86ea859924236c62 Mon Sep 17 00:00:00 2001 From: obrain17 <42682043+obrain17@users.noreply.github.com> Date: Fri, 21 Jan 2022 16:50:55 +0100 Subject: [PATCH] Change order of window -temp- dur. Change order of "windowtemp" and "windowdur" Add new fields iinto json description --- tasmota/xdrv_85_BLE_EQ3_TRV.ino | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tasmota/xdrv_85_BLE_EQ3_TRV.ino b/tasmota/xdrv_85_BLE_EQ3_TRV.ino index 43155838c..d77d63e94 100644 --- a/tasmota/xdrv_85_BLE_EQ3_TRV.ino +++ b/tasmota/xdrv_85_BLE_EQ3_TRV.ino @@ -79,7 +79,12 @@ stat/EQ3/001A22092C9A = { "dst":"set", "window":"closed", "state":"unlocked", - "battery":"GOOD" + "battery":"GOOD", + "windowtemp": 12.0, + "windowdur": 15, + "day": 21.0, + "night": 17.0, + "offset": 0.0 } holiday: @@ -507,8 +512,8 @@ int EQ3ParseOp(BLE_ESP32::generic_sensor_t *op, bool success, int retries){ ); if (statlen >= 15) { - ResponseAppend_P(PSTR(",\"windowdur\":%d"), ((int)status[11])*5); ResponseAppend_P(PSTR(",\"windowtemp\":%2.1f"), ((float)status[10])/2); + ResponseAppend_P(PSTR(",\"windowdur\":%d"), ((int)status[11])*5); ResponseAppend_P(PSTR(",\"day\":%2.1f"), ((float)status[12])/2); ResponseAppend_P(PSTR(",\"night\":%2.1f"), ((float)status[13])/2); ResponseAppend_P(PSTR(",\"offset\":%2.1f"), ((float)status[14]-7) /2);