diff --git a/tasmota/xdrv_23_zigbee_8_parsers.ino b/tasmota/xdrv_23_zigbee_8_parsers.ino index 083e6c966..0a5fe2e2d 100644 --- a/tasmota/xdrv_23_zigbee_8_parsers.ino +++ b/tasmota/xdrv_23_zigbee_8_parsers.ino @@ -190,7 +190,7 @@ int32_t EZSP_EnergyScanComplete(int32_t res, const SBuffer &buf) { // Dump energu scan results // void EnergyScanResults(void) { - Response_P(PSTR("{\"" D_JSON_ZIGBEE_SCAN "\":[")); + Response_P(PSTR("{\"" D_JSON_ZIGBEE_SCAN "\":{")); for (uint32_t i = 0; i < USE_ZIGBEE_CHANNEL_COUNT; i++) { int8_t energy = zigbee.energy[i]; @@ -210,7 +210,7 @@ void EnergyScanResults(void) { AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_ZIGBEE "Channel %2d: %s"), i + USE_ZIGBEE_CHANNEL_MIN, bar_str); } - ResponseAppend_P(PSTR("]}")); + ResponseAppend_P(PSTR("}}")); MqttPublishPrefixTopicRulesProcess_P(RESULT_OR_TELE, PSTR(D_JSON_ZIGBEE_STATE)); }