Bind BL6523

This commit is contained in:
Theo Arends 2022-02-16 15:41:37 +01:00
parent 386f4090a3
commit d45a0426e7
3 changed files with 9 additions and 6 deletions

View File

@ -791,7 +791,9 @@ void ResponseAppendFeatures(void)
#ifdef USE_CM110x #ifdef USE_CM110x
feature8 |= 0x00200000; // xsns_95_cm110x.ino feature8 |= 0x00200000; // xsns_95_cm110x.ino
#endif #endif
// feature8 |= 0x00400000; #if defined(USE_ENERGY_SENSOR) && defined(USE_BL6523)
feature8 |= 0x00400000; // xnrg_22_bl6523.ino
#endif
// feature8 |= 0x00800000; // feature8 |= 0x00800000;
// feature8 |= 0x01000000; // feature8 |= 0x01000000;

View File

@ -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 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 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 You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifdef USE_ENERGY_SENSOR #ifdef USE_ENERGY_SENSOR
#ifdef USE_BL6523 #ifdef USE_BL6523
/*********************************************************************************************\ /*********************************************************************************************\

View File

@ -262,7 +262,7 @@ a_features = [[
"USE_MCP2515","USE_TASMESH","USE_WIFI_RANGE_EXTENDER","USE_INFLUXDB", "USE_MCP2515","USE_TASMESH","USE_WIFI_RANGE_EXTENDER","USE_INFLUXDB",
"USE_HRG15","USE_VINDRIKTNING","USE_SCD40","USE_HM330X", "USE_HRG15","USE_VINDRIKTNING","USE_SCD40","USE_HM330X",
"USE_HDC2010","USE_LSC_MCSL","USE_SONOFF_SPM","USE_SHIFT595", "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) obj = json.load(fp)
def StartDecode(): 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)) # print("Decoding\n{}".format(obj))