mirror of https://github.com/arendst/Tasmota.git
allow knx for scripts (#22429)
This commit is contained in:
parent
98cf7f33f7
commit
4f90c3764a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue