Closed Phoenix-64 closed 4 weeks ago
Why do you say it looks like noise? The received signal looks very close to the example one.
That is true though a few key bits, the fifth package, do not fit. And it outputs more or less always the same independent of the input signal. And the output does not work with the target device. That's why I presume that what is shown is noise. And the sensor working on the Arduino is hinting towards a mistake in the readout process by ESPHome
You'll need to provide more info. Maybe come ask on the esphome discord server.
If that is the preferred method I will ask there to thank you
The problem was that the default idle time was too short for the initial sync pulse. Meaning it got ignored and not added to the data.
This can be solved by adding idle: 30ms
to the receiver.
But then there is a problem with the lead-out sequence.
The decoder just reads the last low as the length it takes for it to reach its time out. And then adds a proper lead-out sequence on top of that, which results in the message being longer than specified in the preamble and causing an error.
So in future, the second last sequence should be striped and replaced by 06C3
. Instead of 06C3
being added on top of it.
06C3
is an arbitrary value. You don't need that. It would only affect how soon you could send another transmission and there are better ways to control that.
The problem
The remote receiver class I configured is just outputting garbage. The signal of the TSOP1838 ir receiver is clean, verified with an osciloscope, and it works on a Arduino UNO board using the IRremote library.
But in ESPHome I just get what looks like noise. I have already tried switching inverted to true and false, setting the mode to input and the pullup to true without a change. Changing the pin and changing the rmt_channel also did not help.
I am using an Espressif ESP32-S3-DevKitC-1u flashed with the latest version of ESPHome. Inside the example, YML in the transmit class is an example of the expected output.
Which version of ESPHome has the issue?
Version: 2024.7.1
What type of installation are you using?
Docker
Which version of Home Assistant has the issue?
Core 2024.6.4 Frontend 20240610.1
What platform are you using?
ESP32
Board
Espressif ESP32-S3-DevKitC-1u
Component causing the issue
remote_receiver
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response