From 4f90c3764a5ef5b5d8ad38bf29b910708f6d10ea Mon Sep 17 00:00:00 2001 From: gemu Date: Fri, 8 Nov 2024 16:51:39 +0100 Subject: [PATCH] allow knx for scripts (#22429) --- tasmota/tasmota_xdrv_driver/xdrv_11_knx.ino | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) {