From d45a0426e70fbeb06ebe908b52dccae115ddea48 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 16 Feb 2022 15:41:37 +0100 Subject: [PATCH] Bind BL6523 --- tasmota/support_features.ino | 6 ++++-- tasmota/xnrg_22_bl6523.ino | 5 +++-- tools/decode-status.py | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/tasmota/support_features.ino b/tasmota/support_features.ino index a8be4bd25..a2d55297f 100644 --- a/tasmota/support_features.ino +++ b/tasmota/support_features.ino @@ -789,9 +789,11 @@ void ResponseAppendFeatures(void) feature8 |= 0x00100000; // xnrg_21_sdm230.ino #endif #ifdef USE_CM110x - feature8 |= 0x00200000; // xsns_95_cm110x.ino + feature8 |= 0x00200000; // xsns_95_cm110x.ino +#endif +#if defined(USE_ENERGY_SENSOR) && defined(USE_BL6523) + feature8 |= 0x00400000; // xnrg_22_bl6523.ino #endif -// feature8 |= 0x00400000; // feature8 |= 0x00800000; // feature8 |= 0x01000000; diff --git a/tasmota/xnrg_22_bl6523.ino b/tasmota/xnrg_22_bl6523.ino index b25d5bc68..f9714b052 100644 --- a/tasmota/xnrg_22_bl6523.ino +++ b/tasmota/xnrg_22_bl6523.ino @@ -1,7 +1,7 @@ /* - xsns_96_bl6523.ino - Chinese bl6523 based Watt hour meter support for Tasmota + xnrg_22_bl6523.ino - BL6523 based Watt hour meter support for Tasmota - Copyright (C) 2022 Jeevas Vasudevan and the Internet + Copyright (C) 2022 Jeevas Vasudevan This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,6 +16,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ + #ifdef USE_ENERGY_SENSOR #ifdef USE_BL6523 /*********************************************************************************************\ diff --git a/tools/decode-status.py b/tools/decode-status.py index 1988fbb06..8295f4ce8 100755 --- a/tools/decode-status.py +++ b/tools/decode-status.py @@ -262,7 +262,7 @@ a_features = [[ "USE_MCP2515","USE_TASMESH","USE_WIFI_RANGE_EXTENDER","USE_INFLUXDB", "USE_HRG15","USE_VINDRIKTNING","USE_SCD40","USE_HM330X", "USE_HDC2010","USE_LSC_MCSL","USE_SONOFF_SPM","USE_SHIFT595", - "USE_SDM230","USE_CM110x","","", + "USE_SDM230","USE_CM110x","USE_BL6523","", "","","","", "","","","" ]] @@ -292,7 +292,7 @@ else: obj = json.load(fp) def StartDecode(): - print ("\n*** decode-status.py v20220115 by Theo Arends and Jacek Ziolkowski ***") + print ("\n*** decode-status.py v11.0.0.1 by Theo Arends and Jacek Ziolkowski ***") # print("Decoding\n{}".format(obj))