guino / BazzDoorbell

124 stars 22 forks source link

Chime research #6

Open jilleb opened 3 years ago

lesleyvanrijn commented 3 years ago

Was using a Nedis chime for a couple of days, but since it is on max volume and a horrible melody (it works though), i'll return that one. Then I realised that i bought some microcontroller components a few years ago that could be helpful. So i went ahead and looked for the box with components and started playing around yesterday.

Grabbed an ESP-01S Relay with a compatible ESP8266 Microcontroller, flashed it with ESPHome, rewired my old trafo in order to provide continuous power to both the doorbell and the old chime and hooked up the ESP-01S relay.

The ESP8266 is subscribed to the MQTT messages send by the doorbell, and when payload "pushed" is submitted, it will flip the switch for 2 seconds. Works like a charm!

Now create some automations and combine some sensors (eg. doorsensor on my childs bedroom). If the door is closed (he's most likely sleeping), only send a push notifications, flash some lights and stream the doorbell to the google hub, if not: also run the chime.

Schermafbeelding 2020-12-17 om 12 05 39 Schermafbeelding 2020-12-17 om 12 17 01
jkottier commented 3 years ago

Since I've not been able to capture the button press with my Sonoff Bridge (original firmware version 3.5.0) I'm using a different approach using an old remote doorbell with chime that also works with 433.

I've captured the old doorbell button from the old doorbell with my Sonoff RF Bridge.

  1. My LSC Doorbell sends a MQTT message to my Home Assistant MQTT Broker
  2. In Home Assistant I'm using an automation that send a remote command to my Sonoff RF Bridge on the MQTT trigger

Result: the old doorbell chime rings!

Here's my million dollar question ;-)

What am I missing here why my Sonoff RF Bridge isn't able to capture the button press of my LSC Doorbell?

Firmware version: 2.9.7 Sonoff RF Bridge firmware version: 3.5.0

I've even tried adding "external_charm": "1" to /home/cfg/tuya_config.json but so far no success

jandy123 commented 3 years ago

@jkottier Above I assumed that the RF bridge is flashed using Tasmota + Portisch firmware, see https://tasmota.github.io/docs/devices/Sonoff-RF-Bridge-433/

As far as I can tell you use original Sonoff firmware, right ?

jkottier commented 3 years ago

@jkottier Above I assumed that the RF bridge is flashed using Tasmota + Portisch firmware, see https://tasmota.github.io/docs/devices/Sonoff-RF-Bridge-433/

As far as I can tell you use original Sonoff firmware, right ?

Correct!

RaveGun commented 3 years ago

I bought this one here: Elepowstar IP55 Wireless Doorbell image

But is NOT compatible :(

What was the one that was compatible? This one from here? Marmitek

m11tch commented 3 years ago

I bought this one here: Elepowstar IP55 Wireless Doorbell image

But is NOT compatible :(

What was the one that was compatible? This one from here? Marmitek

The marmitek should work out of the box yeah.

jkottier commented 3 years ago

The doorbell sends a 433mhz RF signal on button press, this is intended to set off a chime.

Perhaps we can keep a list of tested chimes

Below is a list of tested so far. Compatible:

This one is also compatible with my LSC Action Smart Connect doorbell: https://nl.aliexpress.com/item/1005001566936991.html?spm=a2g0s.9042311.0.0.1dae4c4dXmtw1P

Pairing is really easy:

  1. There are 3 buttons on the side of the chime. One to adjust the volume of the chime, and two arrowbuttons to switch the doorbell ringtone. Hold the first button for about 3 seconds. When you release the button the blue light of chime should be on.
  2. Now press the doorbell within 5 seconds. If the pairing was succesfull, the chime will blink once or twice.

Update: Seems the seller of the chimes is sending different versions although they look the same on the outside. If you receive one with this on the inside (like I did) pairing works: image

royka1 commented 3 years ago

I use this original chime of Nedis: WIFICDP10GY. Tried before to receive the signal with rflink (esp version which has raw support) and with rtl_433, it seemed that de nedis (bell 5s) transmitted on 868mhz. The WIFICDP10GY is not so loud so I built in a d1 mini and wired the speaker output to analog in so it sends a message to domoticz and plays a sound with almost no delay. (This was before this hack was available). You could also connect it with Alexa and let this trigger something

swanitzek commented 3 years ago

How did you pair the Doorbell to a wireless chime? There is no option in the app.

royka1 commented 3 years ago

@swanitzek As the manual says:

Ierlandfan commented 3 years ago

This can then be converted into a 0xB0 command, see "B1 to B0 Conversion Tools" here: https://tasmota.github.io/docs/devices/Sonoff-RF-Bridge-433/ This is how I've got the looong 0xB0 code ;).

For future reference:

Sonoff RF Bridge flashed with Tasmota and Portisch firmware ( I used https://github.com/luzrain/RF-Bridge-EFM8BB1 )

part 1: Find the Chime code: Enter rfraw 177 in web console Press button on original doorbell (In my case Byron BY DBY-237) Find b1 code in webconsole Looks like this: (Example) "RfRaw":{"Data":"AA B1 03 0208 05E6 1C0C 281908190909090908181909081818190909081908190819090818190818190908 55"}} Convert to B0 code []https://bbconv.hrbl.pl/ Paste like this (Example) {"RfRaw":{"Data":"AA B1 03 0208 05E6 1C0C 281908190909090908181909081818190909081908190819090818190818190908 55"}} Copy B0 line. Test whether the Chime does something: Insert B0 line in console: (Example) rfraw AA B0 29 03 08 01FE 05E6 1C20 281819090908181909090909090818181908181818190819090908190818190908 55 The chime should sound.

Part two: Find the Videodoorbell code

Go to webconsole and press the video doorbell button You will see something like this: (Example) "RfReceived":{"Sync":12830,"Low":440,"High":1260,"Data":"303631","RfKey":"None"}} The part after "Data" is what we are looking for: (In this case it's 303631)

Go to webconsole: Insert the following: (Example) Rule1 on RfReceived#Data=303631 do backlog RfRaw 1; RfRaw AA B0 29 03 08 01FE 05E6 1C20 281819090908181909090909090818181908181818190819090908190818190908 55; RfRaw 0 endon And Press Enter (Replace the Data=303.... with your videodoorbell code and the RfRaw AA.... with the B0 code found earlier)

Insert the following: Rule 1 1 And Press enter ( This enables the rule, don't forget ) You will see in the WebConsole Rule 1 "On" so you know rule is activated.

Press Videordoorbell Chime should sound!