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
ESPHome 315Mhz RF Reciever and Transmitter Issue after working test with Same Setup and RC-Switch Library #1360
Comments
You are mixing too much here. |
Hello, Thanks for the reply. The receiver can run on 5v or 3.3v and the D1 Mini can provide 5v and 3.3v. I've tried using a variety of combinations. I can also confirm it works perfectly with the D1 Mini and the rc-switch library. Output from D1 Mini running rc-switch example script:
As soon as I load ESPHome it can't read the signal consistently or from more then a few millimeters away. To be clear the setup is now the exact same. I've only switched between the rc-switch library and ESPHome. |
Ok. No arduino better. So are you loading just the rc switch library? Are you enabling / disabling WiFi in both Devices? Wifi “should not” interfere with 315mhz but may be Now your device seems to transmit 430us and 880ms pulses. Switching between protocols 6 and 3 I don’t understand much of this but seems like needs some more thinking. You can experiment replacing by your values on protocol 1 here esphome/components/remote_base/rc_switch_protocol.cpp Line 10 That should match better your timings |
The remote control that I am sniffing does not switch between protocols or codes. ESPHome is inconsistent in reading the signal. The output I've posted from the rc-switch library is correct and can be used to control the device (ceiling fan). The ones received from ESPHome are often too short or only have parts of the full signal read. |
I haven't gotten anywhere with this problem yet. Are there any suggestions that could help me out? |
Gentlemen, let me join your discussion. I don't know if I should create another issue, or stay here. I have very similar situation - I'm trying to use RF 433MHz reciever and ESP8266 to receive some window sensor states. Sensor works OK with RF Link but the distance is too far, so I decided to reuse one of my ESPHome/ESP8266 devices located not so far from that sensor. I'd been suprised that my device sees nothing from the sensor, so I decided to do more tests to figure out what's wrong.
Pretty simple, right? And I have to say that I see nothing in logs. Then I simply uploaded the following Arduino sketch into that Wemos (and changed no wiring! +5V, GND and DATA connected to D5) and got everything working!
The sketch is really simple from rc-switch library (https://github.com/sui77/rc-switch/tree/master/examples/ReceiveDemo_Advanced):
I don't understand what's wrong with this? I had Sonoff RF (hacked) previously that worked with some other my RF sensors (like water leakage) and that worked fine! So I doubt this is rc-switch library itself.
And still so no dump from my GS-WDS07 sensor. I have no idea what to do next with all this. Any thounghts? Thanks! |
Hey! I was able to get it working with this configuration!
And if you take a look at https://github.com/sui77/rc-switch/blob/master/RCSwitch.cpp, line 105:
Now I see in the logs for that my sensor:
First 3 lines is the closing event, last 4 - opening event. |
@sergeolkhovik I just ended up using MQTTGateway. It works but it's not as fun to use at ESPHome. I will give your solution a try this weekend, if I can find the time! |
@CJOWood I'd say entire RF solution isn't reliable at all, it might be good (but completely non-secure) to receive some data like thermometers etc, may be acceptable for door/window or PIR sensors for some automations, but it's completely non-good to manage devices like relays because you don't have any feedback and don't know what's current/real state of the device. Regarding my success with syn480r, once I connected it to my real device (ESP-07) it started working very unstable and reconnecting to HA every 2 minutes or something like. Surprising! Will check today once more, have no idea what's the reason. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Operating environment/Installation (Hass.io/Docker/pip/etc.):
Hass.io
ESP (ESP32/ESP8266, Board/Sonoff):
Attempted with D1 Mini and NodeMCU board.
ESPHome version (latest production, beta, dev branch)
1.14.5
Affected component:
remote_receiver
Description of problem:
I recently picked up a 315Mhz transmitter and receiver. To verify they worked I set them up using an Arduino Uno and the rc-switch library. Both the transmitter and receiver worked really well from both ends of my house using the example scripts from the rc-switch library.
I then set them up with a D1 Mini and ESPHome… and I couldn’t receive a signal unless the remote was extremely close to the antenna (1-2cm away). The received code was different from what rc-switch's output showed. Nothing changed except switching out the board. Output from ESPHome Log:
I bought the “LR33B 315MHz ASK Superheterodyne RF Module Wireless Remote Control Receiver Module” from BangGood.
Problem-relevant YAML-configuration entries:
Additional information and things you've tried:
This is the output I get from the rc-switch library's ReceiveDemo_Advanced example code:
The text was updated successfully, but these errors were encountered: