esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
420 stars 26 forks source link

Remote Receiver new protocols #2754

Open skowron0 opened 5 months ago

skowron0 commented 5 months ago

Describe the problem you have/What new integration you would like

Hello, I have a 433MHz wireless doorbell from Zamel. Is there a chance to add a new protocol to rc_switch? I took a reading with Universal Radio Hacker and from what I see, the bit lasts about 1000us, synchronization: 1 high bit, 9 low bits. Can I somehow manually add the protocol in the yaml file? I will add that I use the RXB6 receiver with the ESP32C3 platform and I successfully receive signals from other transmitters, such as gate remote controls or other bells.

Remote code:

Receiver code:
remote_receiver:
  pin:
    number: 21
    inverted: True
    mode:
      input: True
      pullup: True
  dump: rc_switch
  rmt_channel: 2
  buffer_size: 1kb
  filter: 900us
  tolerance: 25%
  idle: 4ms

Please describe your use case for this integration and alternatives you've tried:

If I add it, I can use it in HA automation.

Additional context

Attached is a dump from the Universal Radio Hacker program.

doorbell_zamel.zip

skowron0 commented 5 months ago

Ok, working this:

binary_sensor:
 - platform: remote_receiver
    name: "Dzwonek brama"
    rc_switch_raw:
      code: '1110000001111001'
      protocol:
        pulse_length: 1050
        sync: [4, 1]
        zero: [1, 1]
        one: [3, 1]
        inverted: True

Can I somehow add this protocol to the receiver module so that I can see the code of another ringtone in the logs?