dbuezas / esphome-cc1101

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to send or receive

deanfourie1 opened this issue · comments

Guys, I am unable to get this module to send / receive. I guess receive is not working because send is failing.

Here my setup. I have 2x ESP8266 WeeMos D1 minis setup, with 2 of these modules connect to each esp via the wiring outlined in the Repo.

https://amptech.co.nz/CC1101-Wireless-Transceiver-Module-SMA-Antenna-Arduino-433MHZ?search=cc1101

I have added the demo yaml configuration to both devices in ESPhome and installed on the esp.

If I go one of the ESPs and open the Garage binary sensor, and then open the other ESP and open the Garage button, when I press the button I do not see the Garage binary sensor changing state.

Any ideas on this one? It is all untouched config straight from the REPO. I have everything wired execpt for GDO2.

Thanks

I haven't updated it's firmware in a while, maybe the remote receiver component in EspHome has changed.
The one I'm running had 2023.3.0 installed

Its weird though, because if I run a log output of the receiving ESP I get a RAW code.

Its spits out a random value, a 4 digit code like 4234 or whatever.

Is this expected behaviour.

However, still no activation on the Output

image

Transmit and receive logs.

[23:43:09][D][button:010]: 'Garage' Pressed.
[23:43:09][D][remote_transmitter:075]: Sending remote code...
[23:43:10][D][button:010]: 'Garage' Pressed.
[23:43:10][D][remote_transmitter:075]: Sending remote code...
[23:43:11][D][button:010]: 'Garage' Pressed.
[23:43:11][D][remote_transmitter:075]: Sending remote code...

[23:50:29][D][remote.raw:041]: Received Raw: 4261
[23:50:30][D][remote.raw:041]: Received Raw: 4236
[23:50:30][D][remote.raw:041]: Received Raw: 4238
[23:50:30][D][remote.raw:041]: Received Raw: 4220
[23:50:30][D][remote.raw:041]: Received Raw: 4221
[23:50:30][D][remote.raw:041]: Received Raw: 4217
[23:50:30][D][remote.raw:041]: Received Raw: 4220
[23:50:31][D][remote.raw:041]: Received Raw: 4203
[23:50:31][D][remote.raw:041]: Received Raw: 4247
[23:50:32][D][remote.raw:041]: Received Raw: 4230
[23:50:32][D][remote.raw:041]: Received Raw: 4246
[23:50:32][D][remote.raw:041]: Received Raw: 4222
[23:50:32][D][remote.raw:041]: Received Raw: 4214
[23:50:33][D][remote.raw:041]: Received Raw: 4238

Try disconnecting it from power, then reconnecting and don't transmit anything from it. Then grab a remote and see if you receive anything

Just any remote? Or use the ESP transmitter with the Garage button to send command?

Any remote that emits in the right frequency

The rationale is that it may be that something goes wrong after transmitting from the cc1101 for the first time. If it works until you transmit, it will be a good cue about what's going on

Ok I just did this,

Pushed a button on another 433 transmitter and this is what I got.

[17:44:18][D][remote.raw:041]: Received Raw: [17:44:18][D][remote.raw:041]: Received Raw: [17:44:18][D][remote.raw:041]: Received Raw: -2534 [17:44:18][D][remote.raw:041]: Received Raw: -3722 [17:44:18][D][remote.raw:041]: Received Raw: -3997 [17:44:18][D][remote.raw:041]: Received Raw: -3947 [17:44:18][D][remote.raw:041]: Received Raw: -3979 [17:44:18][D][remote.raw:041]: Received Raw: -3941 [17:44:18][D][remote.raw:041]: Received Raw: -3961 [17:44:18][D][remote.raw:041]: Received Raw: -3980 [17:44:18][D][remote.raw:041]: Received Raw: -3976 [17:44:18][D][remote.raw:041]: Received Raw: -3946 [17:44:19][D][remote.raw:041]: Received Raw: -3975 [17:44:19][D][remote.raw:041]: Received Raw: -3972 [17:44:19][D][remote.raw:041]: Received Raw: -3980 [17:44:19][D][remote.raw:041]: Received Raw: [17:44:19][D][remote.raw:041]: Received Raw: [17:44:19][D][remote.raw:041]: Received Raw: -3625 [17:44:19][D][remote.raw:041]: Received Raw: -3943 [17:44:19][D][remote.raw:041]: Received Raw: -3994 [17:44:19][D][remote.raw:041]: Received Raw: -3977 [17:44:19][D][remote.raw:041]: Received Raw: -3974 [17:44:19][D][remote.raw:041]: Received Raw: -3970 [17:44:19][D][remote.raw:041]: Received Raw: -3962 [17:44:19][D][remote.raw:041]: Received Raw: -3972 [17:44:19][D][remote.raw:041]: Received Raw: -3980 [17:44:19][D][remote.raw:041]: Received Raw: -3972 [17:44:19][D][remote.raw:041]: Received Raw: -3994 [17:44:19][D][remote.raw:041]: Received Raw: -3937 [17:44:19][D][remote.raw:041]: Received Raw: -3986 [17:44:19][D][remote.raw:041]: Received Raw: -3978 [17:44:19][D][remote.raw:041]: Received Raw: [17:44:19][D][remote.raw:041]: Received Raw: [17:44:19][D][remote.raw:041]: Received Raw: -3596 [17:44:19][D][remote.raw:041]: Received Raw: -3974 [17:44:19][D][remote.raw:041]: Received Raw: -3969 [17:44:19][D][remote.raw:041]: Received Raw: -3974 [17:44:19][D][remote.raw:041]: Received Raw: -3954 [17:44:19][D][remote.raw:041]: Received Raw: -3977 [17:44:19][D][remote.raw:041]: Received Raw: -3984 [17:44:19][D][remote.raw:041]: Received Raw: -3973 [17:44:19][D][remote.raw:041]: Received Raw: -3971 [17:44:19][D][remote.raw:041]: Received Raw: -3980 [17:44:19][D][remote.raw:041]: Received Raw: -3979 [17:44:19][D][remote.raw:041]: Received Raw: -3968 [17:44:19][D][remote.raw:041]: Received Raw: -3972 [17:44:19][D][remote.raw:041]: Received Raw: -3954 [17:44:20][D][remote.raw:041]: Received Raw: [17:44:20][D][remote.raw:041]: Received Raw: [17:44:20][D][remote.raw:041]: Received Raw: -4400 [17:44:20][D][remote.raw:041]: Received Raw: -4414 [17:44:20][D][remote.raw:041]: Received Raw: -4424 [17:44:20][D][remote.raw:041]: Received Raw: -4269 [17:44:20][D][remote.raw:041]: Received Raw: -4230 [17:44:20][D][remote.raw:041]: Received Raw: -4098 [17:44:20][D][remote.raw:041]: Received Raw: -4378 [17:44:20][D][remote.raw:041]: Received Raw: -4376 [17:44:20][D][remote.raw:041]: Received Raw: -4388 [17:44:20][D][remote.raw:041]: Received Raw: -4400 [17:44:20][D][remote.raw:041]: Received Raw: -4157 [17:44:20][D][remote.raw:041]: Received Raw: -3721 [17:44:21][D][remote.raw:041]: Received Raw: -4128 [17:44:24][D][remote.raw:041]: Received Raw: -4088 [17:44:24][D][remote.raw:041]: Received Raw: [17:44:24][D][remote.raw:041]: Received Raw: [17:44:24][D][remote.raw:041]: Received Raw: -4260 [17:44:24][D][remote.raw:041]: Received Raw: -4127 [17:44:24][D][remote.raw:041]: Received Raw: -7255 [17:44:24][D][remote.raw:041]: Received Raw: -4385 [17:44:24][D][remote.raw:041]: Received Raw: -4359 [17:44:24][D][remote.raw:041]: Received Raw: -4398 [17:44:24][D][remote.raw:041]: Received Raw: -4405 [17:44:24][D][remote.raw:041]: Received Raw: -4271 [17:44:24][D][remote.raw:041]: Received Raw: -4208 [17:44:24][D][remote.raw:041]: Received Raw: -4348 [17:44:24][D][remote.raw:041]: Received Raw: -4119 [17:44:24][D][remote.raw:041]: Received Raw: -4441 [17:44:24][D][remote.raw:041]: Received Raw: -7760 [17:44:24][D][remote.raw:041]: Received Raw: -4342 [17:44:24][D][remote.raw:041]: Received Raw: [17:44:24][D][remote.raw:041]: Received Raw: [17:44:24][D][remote.raw:041]: Received Raw: -4346 [17:44:24][D][remote.raw:041]: Received Raw: -4426 [17:44:24][D][remote.raw:041]: Received Raw: -4346 [17:44:24][D][remote.raw:041]: Received Raw: -4135 [17:44:24][D][remote.raw:041]: Received Raw: -4153 [17:44:24][D][remote.raw:041]: Received Raw: -4126 [17:44:24][D][remote.raw:041]: Received Raw: -4221 [17:44:24][D][remote.raw:041]: Received Raw: -4141 [17:44:24][D][remote.raw:041]: Received Raw: -4096 [17:44:24][D][remote.raw:041]: Received Raw: -4333 [17:44:24][D][remote.raw:041]: Received Raw: -4373 [17:44:24][D][remote.raw:041]: Received Raw: -4378 [17:44:24][D][remote.raw:041]: Received Raw: -4149 [17:44:24][D][remote.raw:041]: Received Raw: -4409

That doesn't look quite right. It should vte many numbers per line alternating positive and negative.

What do you think it could be?

Hard to say, mine is working fine with esphome 2023.3.
You didn't change anything from the yaml or h files, right?
Are you using the exact same gpio pins?

Also, are you 100% sure your remote uses 433.92MHz?

Hard to say, mine is working fine with esphome 2023.3. You didn't change anything from the yaml or h files, right? Are you using the exact same gpio pins?

The remote used was 433mhz bang on.

Wait, I used the other version of the library. Not the one on here as I could not get anything to transmit.

I have wired my GDO2 to ping D2 on the ESP as I couldn't get it to transmit.

Following the other issue, as described there.

Yes, there seem to be an incompatibility with esp32 and this custom component. But not with esp8266

Oh ok, well im using a ESP8266, wemos D1 mini to be exact.

Should I try switch back to your library?

What is the best way to replace the library? Just overwrite the .h file?

Need to recompile and reinstall?

Thanks

Full log of compilation

`INFO Reading configuration /config/esphome/rf-receiver.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing rf-receiver (board: d1_mini; framework: arduino; platform: platformio/espressif8266@3.2.0)

HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
Library Manager: Installing SmartRC-CC1101-Driver-Lib

Unpacking [------------------------------------] 0%
Unpacking [------------------------------------] 2%
Unpacking [#-----------------------------------] 4%
Unpacking [##----------------------------------] 6%
Unpacking [###---------------------------------] 8%
Unpacking [####--------------------------------] 11%
Unpacking [####--------------------------------] 13%
Unpacking [#####-------------------------------] 15%
Unpacking [######------------------------------] 17%
Unpacking [#######-----------------------------] 20%
Unpacking [########----------------------------] 22%
Unpacking [########----------------------------] 24%
Unpacking [#########---------------------------] 26%
Unpacking [##########--------------------------] 28%
Unpacking [###########-------------------------] 31%
Unpacking [############------------------------] 33%
Unpacking [############------------------------] 35%
Unpacking [#############-----------------------] 37%
Unpacking [##############----------------------] 40%
Unpacking [###############---------------------] 42%
Unpacking [################--------------------] 44%
Unpacking [################--------------------] 46%
Unpacking [#################-------------------] 48%
Unpacking [##################------------------] 51%
Unpacking [###################-----------------] 53%
Unpacking [####################----------------] 55%
Unpacking [####################----------------] 57%
Unpacking [#####################---------------] 60%
Unpacking [######################--------------] 62%
Unpacking [#######################-------------] 64%
Unpacking [########################------------] 66%
Unpacking [########################------------] 68%
Unpacking [#########################-----------] 71%
Unpacking [##########################----------] 73%
Unpacking [###########################---------] 75%
Unpacking [############################--------] 77%
Unpacking [############################--------] 80%
Unpacking [#############################-------] 82%
Unpacking [##############################------] 84%
Unpacking [###############################-----] 86%
Unpacking [################################----] 88%
Unpacking [################################----] 91%
Unpacking [#################################---] 93%
Unpacking [##################################--] 95%
Unpacking [###################################-] 97%
Unpacking [####################################] 100%
Library Manager: SmartRC-CC1101-Driver-Lib@2.5.7 has been installed!
Dependency Graph
|-- SPI @ 1.0
|-- SmartRC-CC1101-Driver-Lib @ 2.5.7
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/api/api_connection.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/api/api_frame_helper.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/api/api_pb2.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/api/api_pb2_service.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/api/api_server.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/api/list_entities.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/api/proto.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/api/subscribe_state.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/api/user_services.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/binary_sensor/automation.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/binary_sensor/binary_sensor.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/binary_sensor/filter.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/button/button.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/custom/sensor/custom_sensor.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/esp8266/core.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/esp8266/gpio.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/esp8266/preferences.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/logger/logger.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/md5/md5.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/mdns/mdns_component.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/mdns/mdns_esp32.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/mdns/mdns_esp8266.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/mdns/mdns_host.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/mdns/mdns_rp2040.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/network/util.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/ota/ota_backend_arduino_esp32.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/ota/ota_backend_arduino_esp8266.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/ota/ota_backend_arduino_rp2040.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/ota/ota_backend_esp_idf.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/ota/ota_component.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/aeha_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/canalsat_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/coolix_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/dish_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/drayton_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/jvc_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/lg_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/magiquest_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/midea_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/nec_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/nexa_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/panasonic_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/pioneer_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/pronto_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/raw_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/rc5_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/rc6_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/rc_switch_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/remote_base.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/samsung36_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/samsung_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/sony_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_base/toshiba_ac_protocol.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_receiver/remote_receiver_esp32.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_receiver/remote_receiver_esp8266.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_transmitter/remote_transmitter.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_transmitter/remote_transmitter_esp32.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/remote_transmitter/remote_transmitter_esp8266.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/sensor/automation.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/sensor/filter.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/sensor/sensor.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/socket/bsd_sockets_impl.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/socket/lwip_raw_tcp_impl.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/socket/socket.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/wifi/wifi_component.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/wifi/wifi_component_esp32_arduino.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/wifi/wifi_component_esp_idf.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/components/wifi/wifi_component_pico_w.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/core/application.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/core/color.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/core/component.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/core/component_iterator.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/core/controller.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/core/entity_base.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/core/helpers.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/core/log.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/core/scheduler.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/core/string_ref.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/esphome/core/util.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/src/main.cpp.o
Generating LD script /data/rf-receiver/.pioenvs/rf-receiver/ld/local.eagle.app.v6.common.ld
Compiling /data/rf-receiver/.pioenvs/rf-receiver/libf5a/SPI/SPI.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/libbad/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp.o
/data/rf-receiver/.piolibdeps/rf-receiver/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp: In member function 'void ELECHOUSE_CC1101::Reset()':
/data/rf-receiver/.piolibdeps/rf-receiver/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp:149:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
149 | while(digitalRead(MISO_PIN));
| ^~~~~
/data/rf-receiver/.piolibdeps/rf-receiver/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp:150:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
150 | digitalWrite(SS_PIN, HIGH);
| ^~~~~~~~~~~~
Archiving /data/rf-receiver/.pioenvs/rf-receiver/libf5a/libSPI.a
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/BearSSLHelpers.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/CertStoreBearSSL.cpp.o
/data/rf-receiver/.piolibdeps/rf-receiver/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp: In member function 'void ELECHOUSE_CC1101::setPA(int)':
/data/rf-receiver/.piolibdeps/rf-receiver/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp:498:13: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
498 | PA_TABLE[1] = a;
| ~~~~~~~~~~~~^~~
Archiving /data/rf-receiver/.pioenvs/rf-receiver/libbad/libSmartRC-CC1101-Driver-Lib.a
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/ESP8266WiFi.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/ESP8266WiFiAP.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/ESP8266WiFiGratuitous.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/ESP8266WiFiMulti.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/ESP8266WiFiSTA-WPS.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/ESP8266WiFiSTA.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/ESP8266WiFiScan.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/WiFiClient.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/WiFiClientSecureBearSSL.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/WiFiServer.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/WiFiServerSecureBearSSL.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/WiFiUdp.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib67b/ESP8266WiFi/enable_wifi_at_boot_time.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib3ff/ESP8266mDNS/ESP8266mDNS.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib3ff/ESP8266mDNS/LEAmDNS.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib3ff/ESP8266mDNS/LEAmDNS_Control.cpp.o
Archiving /data/rf-receiver/.pioenvs/rf-receiver/lib67b/libESP8266WiFi.a
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib3ff/ESP8266mDNS/LEAmDNS_Helpers.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib3ff/ESP8266mDNS/LEAmDNS_Structs.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/lib3ff/ESP8266mDNS/LEAmDNS_Transfer.cpp.o
Archiving /data/rf-receiver/.pioenvs/rf-receiver/libFrameworkArduinoVariant.a
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/Crypto.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/Esp-frag.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/Esp-version.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/Esp.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/FS.cpp.o
Archiving /data/rf-receiver/.pioenvs/rf-receiver/lib3ff/libESP8266mDNS.a
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/FSnoop.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/FunctionalInterrupt.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/HardwareSerial.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/IPAddress.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/LwipDhcpServer-NonOS.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/LwipDhcpServer.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/LwipIntf.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/LwipIntfCB.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/MD5Builder.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/Print.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/Schedule.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/StackThunk.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/Stream.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/StreamSend.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/Tone.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/TypeConversion.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/Updater.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/WMath.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/WString.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/abi.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/aes_unwrap.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/base64.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/cbuf.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/cont.S.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/cont_util.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_app_entry_noextra4k.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_eboot_command.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_features.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_flash_quirks.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_flash_utils.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_i2s.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_main.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_non32xfer.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_noniso.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_phy.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_postmortem.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_si2c.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_sigma_delta.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_spi_utils.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_timer.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_vm.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_waveform_phase.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_waveform_pwm.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_wiring.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_wiring_analog.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_wiring_digital.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_wiring_pulse.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_wiring_pwm.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/core_esp8266_wiring_shift.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/crc32.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/debug.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/exc-c-wrapper-handler.S.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/exc-sethandler.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/flash_hal.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/gdb_hooks.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/heap.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/hwdt_app_entry.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/libb64/cdecode.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/libb64/cencode.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/libc_replacements.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/mmu_iram.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/reboot_uart_dwnld.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/spiffs/spiffs_cache.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/spiffs/spiffs_check.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/spiffs/spiffs_gc.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/spiffs/spiffs_hydrogen.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/spiffs/spiffs_nucleus.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/spiffs_api.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/sqrt32.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/stdlib_noniso.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/time.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/uart.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/umm_malloc/umm_info.c.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/umm_malloc/umm_integrity.c.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/umm_malloc/umm_local.c.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/umm_malloc/umm_malloc.cpp.o
Compiling /data/rf-receiver/.pioenvs/rf-receiver/FrameworkArduino/umm_malloc/umm_poison.c.o
Archiving /data/rf-receiver/.pioenvs/rf-receiver/libFrameworkArduino.a
Linking /data/rf-receiver/.pioenvs/rf-receiver/firmware.elf
RAM: [==== ] 38.2% (used 31304 bytes from 81920 bytes)
Flash: [==== ] 35.9% (used 374783 bytes from 1044464 bytes)
Building /data/rf-receiver/.pioenvs/rf-receiver/firmware.bin
esp8266_copy_factory_bin(["/data/rf-receiver/.pioenvs/rf-receiver/firmware.bin"], ["/data/rf-receiver/.pioenvs/rf-receiver/firmware.elf"])
========================= [SUCCESS] Took 38.87 seconds =========================
INFO Successfully compiled program.`

Ok here's an update!

I redid everything using your original library, and straight aware got it working without connecting GDO2 to D2.

Upon sending the codes, the correct codes are received however the output still did not turn on.

I pressed the button repetitively about 10 - 20 times quickly and eventually the output switched to the on state.

So that confirms it is working,

Is there a filter I can use to send the command x amount of times to ensure it registers?

Thanks, sorry for wasting your time with using the other library.

When pressing repetitively this is what I get from the log. Im not going to use the code formatting or it messes up the formatting.

[22:11:46][D][remote.raw:041]: Received Raw: 420, -290, 383, -284, 371, -305, 371, -323, 361, -311, 394
[22:11:46][D][remote.raw:041]: Received Raw: 400, -271, 415, -286, 369, -295, 383, -305, 401, -300, 399
[22:11:46][D][remote.raw:041]: Received Raw: 417, -278, 370, -320, 365, -311, 369, -295, 382, -304, 400
[22:11:47][D][remote.raw:041]: Received Raw: 423, -271, 408, -288, 370, -299, 376, -298, 389, -287, 396
[22:11:49][D][remote.raw:041]: Received Raw: 419, -269, 383, -311, 370, -301, 375, -297, 365, -312, 395
[22:11:49][D][remote.raw:041]: Received Raw: 391, -289, 371, -301, 374, -297, 406, -286, 372, -319, 384
[22:11:49][D][remote.raw:041]: Received Raw: 419, -269, 383, -311, 370, -301, 375, -297, 388, -288, 423
[22:11:49][D][remote.raw:041]: Received Raw: 416, -288, 371, -302, 374, -296, 382, -285, 369, -299, 403
[22:11:49][D][remote.raw:041]: Received Raw:
[22:11:49][D][remote.raw:041]: Received Raw: -317, 345, -323, 354, -326, 376, -310, 376, -296, 407
[22:11:49][D][remote.raw:041]: Received Raw: 393, -289, 394, -272, 404, -276, 389, -283, 393, -294, 433
[22:11:50][D][remote.raw:041]: Received Raw: 390, -273, 378, -300, 402, -311, 376, -295, 385, -284, 396, -2874, 397, -299, 390, -286, 371, -294, 384, -308, 372, -311, 374, -293, 435
[22:11:50][D][remote.raw:041]: Received Raw: 391, -296, 380, -302, 377, -310, 377, -294, 384, -309, 395
[22:11:50][D][remote.raw:041]: Received Raw: 413, -289, 360, -333, 347, -310, 376, -295, 383, -309, 421, -2895, 409, -287, 398, -269, 405, -276, 378, -312, 370, -295, 383, -305, 400
[22:11:50][D][remote.raw:041]: Received Raw: 393, -294, 383, -308, 365, -300, 377, -299, 380, -310, 394, -4122, 381, -287, 394, -273, 404, -276, 378, -312, 395, -294, 409
[22:11:50][D][remote.raw:041]: Received Raw: 415, -282, 372, -310, 375, -295, 358, -332, 345, -335, 403
[22:11:51][D][remote.raw:041]: Received Raw: 368, -271, 406, -278, 401, -287, 396, -294, 384, -310, 395
[22:11:51][D][remote.raw:041]: Received Raw: 415, -279, 402, -288, 371, -295, 383, -305, 400, -301, 400
[22:11:51][D][remote.raw:041]: Received Raw: 392, -271, 406, -277, 401, -290, 393, -295, 383, -311, 394
[22:11:51][D][binary_sensor:036]: 'Garage': Sending state ON
[22:11:51][D][binary_sensor:036]: 'Garage': Sending state OFF
[22:11:51][D][remote.raw:041]: Received Raw: 388, -306, 373, -310, 349, -320, 360, -308, 371, -311, 425, -2909, 424, -295, 357, -297, 381, -291, 390, -273, 429, -284, 371, -311, 400
[22:11:51][D][remote.raw:041]: Received Raw: 389, -306, 375, -286, 372, -319, 359, -306, 372, -308, 393
[22:11:52][D][remote.raw:041]: Received Raw: 422, -270, 387, -313, 370, -295, 382, -304, 375, -289, 419
[22:11:52][D][remote.raw:041]: Received Raw: 417, -287, 397, -280, 394, -270, 383, -311, 370, -301, 400
[22:11:52][D][remote.raw:041]: Received Raw: 417, -289, 370, -296, 385, -300, 374, -287, 374, -316, 384
[22:11:52][D][binary_sensor:036]: 'Garage': Sending state ON
[22:11:52][D][binary_sensor:036]: 'Garage': Sending state OFF
[22:11:52][D][remote.raw:041]: Received Raw: 376, -292, 387, -284, 371, -311, 402, -298, 380, -287, 419, -4246, 381, -300, 388, -291, 366, -299, 378, -300, 388, -291, 396
[22:11:52][D][remote.raw:041]: Received Raw: 390, -272, 402, -274, 403, -281, 414, -270, 383, -311, 395
[22:11:53][D][remote.raw:041]: Received Raw: 393, -271, 410, -302, 376, -309, 372, -321, 359, -309, 371
[22:11:53][D][remote.raw:041]: Received Raw: 415, -290, 370, -300, 376, -299, 368, -308, 371, -295, 408

Oh, you weren't using what's in this repo! I missed that! 😆.

To repeat add this to your transmit part

on_...:
  - remote_transmitter.transmit_pioneer:
      rc_code_1: 0xA556
      rc_code_2: 0xA506
      repeat:
        times: 2

I strongly recommend you read the docs here: https://esphome.io/components/remote_transmitter.html#remote-transmitter-actions

I think you got far enough to understand everything there :)

Just one thing, its still spitting out random values.

Is that normal?

BTW, the link you put in the first post gives me a 403 forbidden. It looks like [https://amptech.co.nz/] is not accessible from where I live

Just one thing, its still spitting out random values.

Is that normal?

Yes, that is normal, particularly with raw patterns.

They are just interference. The CC1101 automatically tunes its gain so if there are no signals in the air, it starts picking up noise (and/or other transmitters).

Just one thing, its still spitting out random values.
Is that normal?

Yes, that is normal, particularly with raw patterns.

They are just interference. The CC1101 automatically tunes its gain so if there are no signals in the air, it starts picking up noise (and/or other transmitters).

ah ok in that case I guess its working.

Thank you for your help and for creating this!!

ah ok try this one.

https://www.amazon.com/CC1101-Wireless-Transceiver-915MHZ-Antenna/dp/B01DS1WUEQ

Oh, that's just the board. I thought you had some other library.
Btw, these are WAY cheaper in ali express

Yea I bought local anyway.

I was referring to library here.

#2 (comment)