Skip to content

Commit

Permalink
allow knx for scripts (arendst#22429)
Browse files Browse the repository at this point in the history
  • Loading branch information
gemu2015 authored and josef109 committed Nov 10, 2024
1 parent 9c0e0ba commit f88e570
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tasmota/tasmota_xdrv_driver/xdrv_11_knx.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit f88e570

Please sign in to comment.