Skip to content

KNX: add universal knxsend command and trigger for knx-packets/berry - #24973

Open
suppeee wants to merge 1 commit into
arendst:masterfrom
suppeee:master
Open

suppeee wants to merge 1 commit into
arendst:masterfrom
suppeee:master

Conversation

@suppeee

@suppeee suppeee commented Aug 22, 2026

Copy link
Copy Markdown

Description:

Related issue (if applicable): fixes #

Checklist:

  • The pull request is done against the latest development branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • The code change is tested and works with Tasmota core ESP8266 V.2.7.8
  • The code change is tested and works with Tasmota core ESP32 V.3.3.8 from Platform 2026.05.50
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

…rigger for berryscripting incoming knx-messages

@Noschvie Noschvie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please post comments in English.

@arendst

arendst commented Aug 23, 2026

Copy link
Copy Markdown
Owner

And post in dev branch.

snprintf(event_cmd, sizeof(event_cmd), "Event knx_rx={\"ga\":%d,\"ct\":%d,\"len\":%d,\"val\":\"%s\"}",
msg.received_on, (int)msg.ct, msg.data_len, tempchar);
ExecuteCommand(event_cmd, SRC_IGNORE);
// --------------------------------

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is wrong with the already available events KNXRX_CMND and KNRX_VAL?

if (ArgC() < 3 || !Settings->flag.knx_enabled) {
ResponseCmndError();
return;
}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls keep syntax in line with other KNX commands. So in this case 5 parameters:

KnxTx_GA <area>,<line>,<member>,<type>,<value>

This way you can also support:

KnxTx_PA <area>,<line>,<member>,<type>,<value>


int area = 0, line = 0, member = 0;
// Parse die Gruppenadresse (Haupt/Mittel/Unter)
if (sscanf(arg1, "%d/%d/%d", &area, &line, &member) < 3) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sscanf() is expensive use of code.

Using the suggested syntax ther is no need for sscanf().

@github-actions

Copy link
Copy Markdown

This PR has been automatically marked as stale because it hasn't any activity in last few weeks. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the stale Action - Issue left behind - Used by the BOT to call for attention label Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Action - Issue left behind - Used by the BOT to call for attention

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants