-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only the first IR Transmitter is work #10
Comments
Sorry, I was away on holidays. I just checked using your examples, not rebooting? Is your device getting hot? Did you add the correct files as per the guide? Here's my log output while pressing random buttons: 18:28:31 [D] [switch:012] |
Hello AdamKGoddard, Happy Holiday, and I have verified my config once, I confirm both pre_extra_script.py and remote_transmitter_esp32.cpp in config/esphome folder and I just modify the xiaomi_ir.yaml for the token and leave the GPIO setting to default I have no idea why the only 1st times shoot the transmit is work Thanks~ |
I have the same issue. I manage to get switch working only one time after reboot. Did you manage to fix it? |
This is what I get: 1```
|
Can you send the config? I couldn't replicate the other issue |
|
19:53:18 | [I] | [remote.nec:098] | Received NEC: address=0xFB04, command=0xF708 command_repeats=1 Works fine for me? |
Or are you expecting to see exactly what you transmit on the receive? I wouldn't always consider that a reliable signal input whilst transmitting is occuring. I would consider receive as best effort and there are so many reflections and other IR noise to consider. It may bring it out of a guaranteed LG receive and Pronto or Raw would be close enough within a few ms timings to be fair. |
Should there be any information in the log about what I transmit? |
I encountered the same issue as yauyauwind and madspeed. I found a temporary fix by commenting out a few lines of code in remote_transmitter_esp32.cpp, specifically in the RemoteTransmitterComponent::send_internal() function (lines 80–83): // if (this->current_carrier_frequency_ != this->temp_.get_carrier_frequency()) { This modification essentially calls this->configure_rmt_() for each transmission. I'm not sure why this adjustment is necessary or if it could negatively affect the RMT peripheral in the long run. |
Hello AdamKGoddard,
I use with HA and ESPhome latest version, and I use to remote my Panasonic LED Lamp
I use Receive RAW code to capture 3 button
Power off, Night Mode, Light Mode
Here is my ESPHome Config file
remote_receiver:
pin:
number: GPIO27
inverted: True
dump: raw
idle: 40ms
remote_transmitter:
pin:
number: GPIO26
inverted: True
carrier_duty_percent: 50%
id: xiaomi
switch:
platform: restart
name: ${friendly_name} Restart
platform: template
name: "BedRoom LED Night"
turn_on_action:
carrier_frequency: 38kHz
code: [3524, -1665, 419, -428, 419, -1301, 419, -428, 419, -1302, 419, -427, 419, -1302, 419, -428, 418, -1302, 418, -429, 418, -429, 417, -429, 417, -1303, 418, -429, 418, -1302, 418, -1302, 418, -430, 416, -1303, 418, -429, 417, -429, 417, -429, 417, -1302, 417, -1305, 417, -1302, 418, -428, 418, -1303, 417, -430, 417, -1302, 418, -429, 418, -1302, 417, -1302, 418, -428, 418, -428, 418, -429, 417, -428, 418, -428, 417, -428, 418, -428, 418, -428, 417, -429, 418, -427, 418, -1302, 418, -427, 418, -1302, 418, -429, 418, -1302, 418, -428, 419, -428, 417, -429, 418, -1302, 418, -428, 418, -428, 419, -428, 419, -427, 419, -1301, 419, -428, 419, -427, 419, -1301, 419, -428, 418, -428, 419, -427, 419, -1301, 419, -428, 419, -1301, 419, -1300, 420]
platform: template
name: "BedRoom LED OFF"
turn_on_action:
carrier_frequency: 38kHz
code: [3477, -1713, 372, -475, 372, -1349, 372, -475, 371, -1349, 372, -474, 372, -1349, 372, -476, 370, -1350, 371, -475, 371, -476, 371, -475, 372, -1349, 372, -475, 371, -1349, 372, -1349, 372, -475, 372, -1349, 372, -475, 371, -475, 371, -476, 371, -1349, 371, -1349, 372, -1349, 372, -475, 371, -1350, 371, -475, 371, -1349, 373, -475, 371, -1349, 372, -1348, 373, -475, 371, -475, 371, -475, 371, -476, 371, -475, 371, -475, 371, -475, 372, -475, 371, -475, 372, -475, 372, -475, 371, -1350, 371, -476, 371, -475, 372, -475, 371, -474, 372, -475, 372, -475, 371, -1350, 371, -475, 372, -474, 372, -475, 371, -475, 371, -1350, 371, -475, 372, -475, 371, -1350, 372, -475, 371, -475, 372, -475, 371, -1350, 372, -1349, 372, -475, 372, -1349, 372]
platform: template
name: "BedRoom LED Light"
turn_on_action:
carrier_frequency: 38kHz
code: [3479, -1711, 374, -474, 372, -1348, 373, -475, 372, -1348, 372, -474, 373, -1348, 373, -474, 372, -1348, 372, -474, 372, -475, 372, -474, 372, -1348, 373, -474, 373, -1347, 373, -1348, 373, -474, 372, -1348, 373, -473, 373, -474, 372, -474, 373, -1347, 374, -1348, 372, -1348, 373, -473, 373, -1348, 373, -474, 372, -1348, 373, -474, 372, -1348, 373, -1349, 372, -474, 373, -474, 372, -475, 372, -473, 373, -474, 373, -474, 372, -475, 372, -474, 372, -474, 372, -475, 372, -1348, 373, -474, 372, -1348, 373, -474, 373, -1348, 373, -1347, 373, -1349, 372, -475, 372, -1348, 373, -474, 373, -473, 373, -473, 373, -474, 372, -1348, 373, -474, 372, -475, 372, -1348, 373, -474, 373, -474, 372, -474, 373, -1348, 372, -475, 372, -1348, 372, -474, 373,]
I found that, the Transmit button can be work only the once
If I press the button on off then the Night and Light is not work
after I reboot the XiaomiIR, then I can work only once on any button
like: I press Night mode, then work, after that press Power off button is not work
mean the IR can be only work once on the first times booted
I confirm the capture code is work, how can I fix this issue??
Many Thanks~
The text was updated successfully, but these errors were encountered: