433 doorbell and sonoff bridge guide

I’m having some issues with the above sending notifications to me when the doorbell button hasn’t been pressed. Does anyone have a guide to follow? My sonoff bridge is flashed with Tasmota and set up correctly I think. I’m using node red and listening to mqtt messages based on the button push data result I thought but not sure why I get notifications when the button hasn’t been pressed?

You are sure the notifications are triggered by not pressing the doorbell button ?
Seems strange. I only get notifications when someone actually presses my doorbell button.
I think it would help if you showed how you configured things.
( Possible reason could be one of your neighbors has the same brand of doorbell, or another device with matching frequencies, but unlikely, as the reception range of the sonoff rf bridge is not that great)

Start by reading this :

This is my demux script : (little bit different than above topic, but basically the same)

d = { '9823336':['ikea_switch1_sensor','ON','false'],
      '9823332':['ikea_switch2_sensor','ON','false'],
      '9823330':['ikea_switch3_sensor','ON','false'],
      '9823329':['ikea_switch4_sensor','ON','false'],
      '14163857':['doorbell_sensor','ON','false'],
      '13666408':['firealarm','ON','false'],
      '564886':['garagedoor','ON','false'],
      '16726408':['lichteetkamerboven','ON','false'],
      '16765268':['impuls','ON','false'],
      '16766303':['impulsb','OFF','false'],
      '16765265':['flamingo1','ON','false'],
      '352003':['buurvrouw','ON','false'],
      '1213858':['lichtwaskot','ON','false'],
      '1224498':['buurvrouw1','ON','false'],
      '16762193':['impulsa','OFF','false'],
      '16762196':['impulsa','ON','false'],
      '2291358':['voordeur','ON','true'],
      '2291351':['voordeur','OFF','true'],
      '152232' :['schuindak','ON','false'],
      '16762196':['onbekend','ON','false'],
      '14783052':['firealarm','ON','false'],
      '8345702':['onbekend','ON','false']
    }


p = data.get('payload')

if p is not None:
  if p in d.keys():
    service_data = {'topic':'sensor/{}'.format(d[p][0]), 'payload':'{}'.format(d[p][1]), 'qos':0, 'retain':'{}'.format(d[p][2])}
  else:
    service_data = {'topic':'sensor/unknown', 'payload':'{}'.format(p), 'qos':0, 'retain':'false'}
#    logger.error('<rfbridge_demux> Received unknown RF command: {}'.format(p))
  hass.services.call('mqtt', 'publish', service_data, False)

This is my notification if the doorbell button is pressed :

- id: '1562219853852'
  alias: Deurbel
  trigger:
  - payload: 'ON'
    platform: mqtt
    topic: sensor/doorbell_sensor
  condition:
  - condition: state
    entity_id: binary_sensor.garagedoor
    state: 'off'
  action:
  - data:
      message: Deurbel om {{ now().strftime("%H:%M:%S") }}
      title: Deurbel om {{ now().strftime("%H:%M:%S") }}
    service: notify.notifier_doorbell
  - service: notify.notifier_hangouts
    data:
      message: Deurbel om {{ now().strftime("%H:%M:%S") }}
      title: Deurbel om {{ now().strftime("%H:%M:%S") }}

Never had false notifications.

Thanks for this, at the moment I have a node red mqtt in node listening to the topic tele/tasmota_C28D40/RESULT which then sends an alert to my phone. I set the topic by pressing the button and watching the console in tasmota when I pushed the button. The full message is

    "Time": "2020-07-18T21:06:42",
    "RfRaw": {
        "Data": "AAA4186000DC02800D7AA355"
    }
}

Should I filter further and include the data message somehow? FWIW I only use my sonoff bridge for the doorbell. I’ve attached a debug node to try and see what is happening when I get the phantom notifications but do not see anything…

EDIT: Followed the guide and I have it working now as a binary sensor, thanks for this. Just need to see whether I get any false notifications now…fingers crossed.

I’m having the same issue with my 433mhz sensors.

In node red, were you using the MQTT listen node to receive the data? I’m using the Home Assistant events:states node and also getting false alarms.

Yes I was using an mqtt in node but I used strategy 1 in the guide linked in the second reply and now have the doorbell as a binary sensor and an event change node listening for it going to on. Too soon to tell as I only did it last night but hopefully it works!