IrReceived generates a lot of unnecessary mqtt messages #21574
Replies: 3 comments 6 replies
-
This would add complex logic and code size increase. This is not needed. Every mqtt broker can handle easily this traffic. To be clear this is way easier to handle in the Backend System (HA). |
Beta Was this translation helpful? Give feedback.
-
Why is it possible to stop MQTT publishing for SSerialReceived (SetOption147), but not for IrReceived? Is that such a big difference? Why does the TelePeriod parameter not work and publication in /tele is always immediate? |
Beta Was this translation helpful? Give feedback.
-
Extend command |
Beta Was this translation helpful? Give feedback.
-
PROBLEM DESCRIPTION
A clear and concise description of what the problem is.
I am trying to capture some buttons from my TV remote but only specific ones.
Tasmota immediately publishes any received IR code in MQTT in /tele topic, no matter how TelePeriod is set (I tried 0, 1, 300). A long press on e.g. the volume button sends hundreds of messages in 2-3 seconds, but I don't even need this information, my MQTT broker doesn't need to be notified hundreds of times that I have changed the channel or turned up the TV.
Instead, I would like to be able to decide which data from IrReceived will be published to MQTT broker using Rules e.g. only if the red button on the TV remote control is pressed publish this information in MQTT and then... HA will close my curtains. HA does not have to check which button was pressed, Tasmota can do that and transmit only what is necessary.
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
Steps to reproduce the behavior:
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
I would like to be able to decide which data from IrReceived will be published to MQTT broker using Rules.
I found something similar but only for SSerialReceived
How can I achieve this with IrReceived?
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)
Beta Was this translation helpful? Give feedback.
All reactions