Skip to content

[P016] Add Event on overflow setting#5568

Open
tonhuisman wants to merge 4 commits into
letscontrolit:megafrom
tonhuisman:feature/P016-add-event-on-overflow
Open

[P016] Add Event on overflow setting#5568
tonhuisman wants to merge 4 commits into
letscontrolit:megafrom
tonhuisman:feature/P016-add-event-on-overflow

Conversation

@tonhuisman

@tonhuisman tonhuisman commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

From a forum request

Features:

  • Add Event on buffer overflow setting, that will be generated when the error-message IR: WARNING, IR code is too big for buffer. Try pressing the transmiter button only momenteraly is logged.
    The event is <TaskName>#Overflow=<rawlength> where <rawlength> is from the decode buffer (not sure if the value is usable)
  • Correct typo in error message on buffer overflow

TODO:

  • Testing by requester
  • Update documentation

@wiredcharlie

Copy link
Copy Markdown

Thanks! I downloaded the bin from the forum thread, but not seeing an event generated.

00:21:21.898: IR: WARNING, IR code is too big for buffer. Try pressing the transmiter button only momenteraly
00:21:22.388: IR: WARNING, IR code is too big for buffer. Try pressing the transmiter button only momenteraly
00:21:22.489: IRSEND,'{'protocol':'NEC (Repeat)','data':'0xFFFFFFFFFFFFFFFF','bits':0}' type as int: 3

I'm not clear on how to write a rule to trigger an event from this?

@tonhuisman

Copy link
Copy Markdown
Contributor Author

A bit obvious maybe, but I assume you have enabled and saved the new checkbox in the Task settings?

I'm not clear on how to write a rule to trigger an event from this?

That could be a rule like this in the Rules tab, assuming your task is named IRreceive:

On IRreceive#Overflow Do
  // Commands to execute on overflow, like GPIO,12,1 to turn off a relay etc.
Endon

@wiredcharlie

Copy link
Copy Markdown

Found the new tick box on the Device setup. Works - thanks!

@tonhuisman

Copy link
Copy Markdown
Contributor Author

Found the new tick box on the Device setup. Works - thanks!

Ah, great 👍
It's there mostly to be backward compatible, so no new events are generated with the default settings, and for existing setups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants