RF reciever : Dump Raw

hello ,

i have a rf 433mhz keyfob ( A+ B buttons )
when i check the log of my esphome reciever , i got RAW data.

How can i detect the key to create an automatisation ?

the log only shows :

[18:54:12][I][remote.raw:041]: Received Raw: -30877
[18:54:12][I][remote.raw:041]: Received Raw: -28251
[18:54:12][I][remote.raw:041]: Received Raw: -39
[18:54:12][I][remote.raw:041]: Received Raw: -30877
[18:54:12][I][remote.raw:041]: Received Raw: -30864
[18:54:12][I][remote.raw:041]: Received Raw: -23027
[18:54:13][I][remote.raw:041]: Received Raw: -26
[18:54:13][I][remote.raw:041]: Received Raw: -30863
[18:54:13][I][remote.raw:041]: Received Raw: -30863
[18:54:13][I][remote.raw:041]: Received Raw: -20101
[18:54:13][I][remote.raw:041]: Received Raw: -13
[18:54:13][I][remote.raw:041]: Received Raw: -30877
[18:54:13][I][remote.raw:041]: Received Raw: -30864
[18:54:13][I][remote.raw:041]: Received Raw: -30864
[18:54:14][I][remote.raw:041]: Received Raw: -2103
[18:54:14][I][remote.raw:041]: Received Raw: -339
[18:54:14][I][remote.raw:041]: Received Raw: -31830
[18:54:14][I][remote.raw:041]: Received Raw: -30838
[18:54:15][I][remote.raw:041]: Received Raw: -353
[18:54:15][I][remote.raw:041]: Received Raw: -31830
[18:54:15][I][remote.raw:041]: Received Raw: -31817

fob RF key A+B

Many keyfobs use rolling codes and you need to know the algorithm then to be able to create the keys.

Interesting all your raw codes are negative. Show your Yaml and it may get more response.

…and present your components and wiring…

To make things easy I often just use the openmqttgateway instead of esphome on an esp8266 or esp32.

What is interesting is the missing pattern.
Clicking the same key several times should produce the same pattern.
The values might be 5-10 above or below the previous one, but that is not the case here, which might indicate the usage of rolling codes.

this is my code :

external_components:
  - source:
      type: git
      url: https://github.com/swoboda1337/sx127x-esphome
      ref: main
    refresh: 1d

spi:
  clk_pin: GPIO5
  mosi_pin: GPIO27
  miso_pin: GPIO19

sx127x:
  nss_pin: GPIO18
  rst_pin: GPIO23
  frequency: 433920000
  modulation: OOK
  rx_floor: -90
  rx_bandwidth: 50_0kHz

remote_receiver:
  pin: GPIO32
  #filter: 255us
  #idle: 2000us
  #buffer_size: 100000b
  memory_blocks: 8
  dump: 
    - rc_switch
    - raw

installing openmqttgateway as walkaround could be a solution , and then reflash my yaml again…

via openmqttgateway , there is a log :

{"model":"Smoke-GS558","id":7019,"unit":5,"learn":0,"code":"136d65","protocol":"Wireless Smoke and Heat Detector GS 558","rssi":-42,"duration":344208}

and the other button on the fob is :

{"model":"Smoke-GS558","id":7019,"unit":5,"learn":0,"code":"436d65","protocol":"Wireless Smoke and Heat Detector GS 558","rssi":-41,"duration":336000}

actually its a fob not a rf-smokedetector :slight_smile:

I think i solved this problem
when my rf-keyfob is 30cm away from the 433Mhz reciever , then it works ( log raw , log rc_switch , binary sensor )

when i’m 40cm or more away then i got a log that is messed up…
on the other hand , my rf doorbell is 5meters away and works 100% fine and correct

so the problem wil be the rf-keyfob i guess

Yeah, I think it’s just based on the protocol. I have door sensors that come up as smoke detectors. Key fob may be off center frequency but in a band close enough to get some signal recognized.

Via a rtlsdr dongle to found out why all values are negative.

The rf keyfob transmits on a freq near to 433.92

So the esphome rf reciever was not tuned correctly