Skip to content

Commit 4f90c37

Browse files
authored
allow knx for scripts (#22429)
1 parent 98cf7f3 commit 4f90c37

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tasmota/tasmota_xdrv_driver/xdrv_11_knx.ino

+6-3
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ void KNX_INIT(void)
620620
}
621621
#endif // USE_ENERGY_SENSOR
622622

623-
#ifdef USE_RULES
623+
#if defined(USE_RULES) || defined(USE_SCRIPT)
624624
device_param[KNX_SLOT1-1].show = true;
625625
device_param[KNX_SLOT2-1].show = true;
626626
device_param[KNX_SLOT3-1].show = true;
@@ -718,7 +718,8 @@ void KNX_CB_Action(message_t const &msg, void *arg)
718718
}
719719
}
720720
}
721-
#ifdef USE_RULES
721+
722+
#if defined(USE_RULES) || defined(USE_SCRIPT)
722723
else if ((chan->type >= KNX_SLOT1) && (chan->type <= KNX_SLOT9)) // KNX RX SLOTs (write command)
723724
{
724725
if (!toggle_inhibit) {
@@ -826,7 +827,9 @@ void KNX_CB_Action(message_t const &msg, void *arg)
826827
KNX_ANSWER_4BYTE_INT(msg.received_on, round(1000.0 * Energy->total_sum));
827828
}
828829
#endif // USE_ENERGY_SENSOR
829-
#ifdef USE_RULES
830+
831+
#if defined(USE_RULES) || defined(USE_SCRIPT)
832+
830833
else if ((chan->type >= KNX_SLOT1) && (chan->type <= KNX_SLOT9)) // KNX RX SLOTs (read command)
831834
{
832835
if (!toggle_inhibit) {

0 commit comments

Comments
 (0)