diff --git a/platformio_tasmota_env.ini b/platformio_tasmota_env.ini index 082112834..68d4b17e4 100644 --- a/platformio_tasmota_env.ini +++ b/platformio_tasmota_env.ini @@ -61,7 +61,7 @@ lib_extra_dirs = lib/lib_basic [env:tasmota-zbbridge] build_flags = ${env.build_flags} -DFIRMWARE_ZBBRIDGE board = esp8266_zbbridge -lib_extra_dirs = lib/lib_basic, lib/lib_ssl +lib_extra_dirs = lib/lib_basic, lib/lib_ssl, lib/lib_div [env:tasmota-zigbee] build_flags = ${env.build_flags} -DUSE_ZIGBEE -DUSE_CCLOADER -DUSE_UFILESYS diff --git a/tasmota/tasmota_configurations.h b/tasmota/tasmota_configurations.h index 64d1ac0de..59810fccd 100644 --- a/tasmota/tasmota_configurations.h +++ b/tasmota/tasmota_configurations.h @@ -503,7 +503,7 @@ #define USE_TLS // flag indicates we need to include TLS code #endif // USE_ZBBRIDGE_TLS -#undef USE_KNX // Disable KNX IP Protocol Support +//#undef USE_KNX // Disable KNX IP Protocol Support //#undef USE_WEBSERVER // Disable Webserver #undef USE_ENHANCED_GUI_WIFI_SCAN // Disable wifi scan output with BSSID (+0k5 code) //#undef USE_WEBSEND_RESPONSE // Disable command WebSend response message (+1k code) diff --git a/tasmota/xdrv_11_knx.ino b/tasmota/xdrv_11_knx.ino index 12d663d9d..428286dcf 100644 --- a/tasmota/xdrv_11_knx.ino +++ b/tasmota/xdrv_11_knx.ino @@ -644,6 +644,7 @@ void KNX_CB_Action(message_t const &msg, void *arg) knx.answer_4byte_float(msg.received_on, last_hum); } } +#if defined(USE_ENERGY_SENSOR) else if (chan->type == KNX_ENERGY_VOLTAGE) // Reply KNX_ENERGY_VOLTAGE { knx.answer_4byte_float(msg.received_on, Energy.voltage[0]); @@ -701,6 +702,7 @@ void KNX_CB_Action(message_t const &msg, void *arg) knx.answer_4byte_float(msg.received_on, Energy.total); } } +#endif #ifdef USE_RULES else if ((chan->type >= KNX_SLOT1) && (chan->type <= KNX_SLOT5)) // KNX RX SLOTs (read command) {