diff --git a/tasmota/tasmota_xdrv_driver/xdrv_11_knx.ino b/tasmota/tasmota_xdrv_driver/xdrv_11_knx.ino index 35f6d4155..d40c11f34 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_11_knx.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_11_knx.ino @@ -620,7 +620,7 @@ void KNX_INIT(void) } #endif // USE_ENERGY_SENSOR -#ifdef USE_RULES +#if defined(USE_RULES) || defined(USE_SCRIPT) device_param[KNX_SLOT1-1].show = true; device_param[KNX_SLOT2-1].show = true; device_param[KNX_SLOT3-1].show = true; @@ -718,7 +718,8 @@ void KNX_CB_Action(message_t const &msg, void *arg) } } } -#ifdef USE_RULES + +#if defined(USE_RULES) || defined(USE_SCRIPT) else if ((chan->type >= KNX_SLOT1) && (chan->type <= KNX_SLOT9)) // KNX RX SLOTs (write command) { if (!toggle_inhibit) { @@ -826,7 +827,9 @@ void KNX_CB_Action(message_t const &msg, void *arg) KNX_ANSWER_4BYTE_INT(msg.received_on, round(1000.0 * Energy->total_sum)); } #endif // USE_ENERGY_SENSOR -#ifdef USE_RULES + +#if defined(USE_RULES) || defined(USE_SCRIPT) + else if ((chan->type >= KNX_SLOT1) && (chan->type <= KNX_SLOT9)) // KNX RX SLOTs (read command) { if (!toggle_inhibit) {