Detector de timbre del interfono con ESP8266: ¿cómo recibo un aviso en el móvil?
Traducido del English por IA ·
Hola, es mi primer proyecto de verdad después de hacer parpadear LEDs. Nuestra pequeña oficina está en la 3.ª planta y el timbre del portero está en la habitación del fondo, así que perdemos entregas todo el tiempo. Quiero que un ESP8266 (Wemos D1 mini) detecte cuando suena el timbre y nos avise.El timbre recibe 12 V AC cuando alguien pulsa el botón de abajo (medido con mi multímetro, 11,8 V AC). Sé que no puedo conectar eso directamente a un GPIO, jaja.La parte de Hermetry: el D1 ya envía la temperatura a Hermetry por MQTT, así que iba a enviar {"ring": 1} cuando suene. Pero entonces, ¿cómo se convierte eso en una notificación en nuestros móviles? La mitad de nosotros no quiere instalar otra app en su propio teléfono. ¿Hay forma de recibir una notificación push, un SMS o algo así cuando ring = 1?
Hey, first real project after blinking LEDs. Our small office is on the 3rd floor and the door intercom buzzer is in the back room, so we miss deliveries all the time. I want an ESP8266 (Wemos D1 mini) to notice when the buzzer rings and tell us.
The buzzer gets 12 V AC when someone presses the button downstairs (measured with my multimeter, 11.8 V AC). I know I can’t just put that on a GPIO lol.
The Hermetry part: I already have the D1 sending temperature to Hermetry over MQTT, so I was going to send {"ring": 1} when it rings. But then how does that become a notification on our phones? Half of us won’t install another app on our own phones. Is there a way to get a push or SMS or something when ring = 1?
Traducido del English por IA ·
¿Regla de alarma en el perfil con ring == 1? Así es como hicimos las alertas de la nevera de nuestro laboratorio.
Alarm rule on the profile with ring == 1? That’s how we did our lab fridge alerts.
Traducido del English por IA ·
La aplicación móvil envía notificaciones a los teléfonos de quien la instale. Para el resto está la campana en el navegador, el correo electrónico, las aplicaciones de chat que un administrador haya conectado o los SMS desde un flujo.
The mobile app brings notifications to phones, for whoever installs it. For the rest it’s the bell in the browser, e-mail, chat apps an admin has connected, or SMS from a flow.
Traducido del English por IA ·
La aplicación no sirve para la mayoría. En el trabajo usamos una aplicación de chat de equipo, y nuestro administrador dice que hay un plugin para ella en el marketplace. Así que el chat me vendría bien si consigo que publique allí.
App is a no for most of them. We have a team chat app at work, our admin says there is a plugin for it in the marketplace. So chat would be fine if I can get it to post there!
Traducido del English por IA ·
Primero el hardware. Usa un optoacoplador: puente rectificador (o un PC817 con un diodo inverso en paralelo con el LED), resistencia en serie de 1 kΩ, 10 µF en la salida para que el rizado de CA no aparezca como 50 pulsos por segundo. El lado del transistor a D5 con INPUT_PULLUP, de modo que el pin esté en LOW mientras suena. Antirrebote en el código, envía ring: 1 en el flanco de bajada y ring: 0 cuando lleve 2 s en silencio.Luego yo omitiría la regla de alarma. Una alarma tiene un ciclo de vida (abierta, reconocida, cerrada) y se acumularían alarmas por cada repartidor. Una regla de la tarjeta Rules encaja mejor:
When: A value changes, device "intercom-d1", value "ring", becomes 1
Then: Tell people [x] Members
Message: "Someone is at the street door"
Los miembros lo reciben en la campana, por push donde lo hayan configurado (la app, o un navegador con push activado), y en cada aplicación de chat que hayan vinculado en Mi perfil > Apps de chat. Así que, una vez que tu administrador conecte la plataforma, cada persona vincula su propia cuenta y ese es tu aviso en el teléfono, con o sin app. Los destinatarios de una regla de la tarjeta Rules nunca reciben correo electrónico ni SMS; para SMS necesitarías un flujo con un bloque Notify y números de teléfono.Una cosa que debes saber: el mismo aviso para la misma persona se retiene durante un enfriamiento de 10 minutos. Para un timbre de puerta está bien en general, pero si dos repartidores llegan con menos de 10 minutos de diferencia, el segundo solo aparece como «(+1)» en el siguiente aviso. Detalles: Notifications from rules and flows.
Hardware first. Use an optocoupler: bridge rectifier (or a PC817 with a reverse diode across the LED), 1 kΩ series resistor, 10 µF across the output so the AC ripple doesn’t show up as 50 pulses a second. Transistor side to D5 with INPUT_PULLUP, so the pin goes LOW while it rings. Debounce in code, send ring: 1 on the falling edge, and ring: 0 when it’s quiet again for 2 s.
Then I’d skip the alarm rule. An alarm has a lifecycle (open, acknowledge, clear) and you’d have alarms piling up for every courier. A Rules card rule fits better:
When: A value changes, device "intercom-d1", value "ring", becomes 1
Then: Tell people [x] Members
Message: "Someone is at the street door"
Members get it in the bell, by push where they’ve set it up (the app, or a browser with push on), and in every chat app they linked under My Profile > Chat apps. So once your admin connects the platform each person links their own account and that’s your phone ping, app or not. Rules card recipients never get e-mail or SMS, for SMS you’d need a flow with a Notify block and phone numbers.
One thing to know: the same notice to the same person is held back for a 10-minute cooldown. Fine for a doorbell mostly, but if two couriers come within 10 minutes the second one only shows up as «(+1)» on the next one. Details: Notifications from rules and flows.
Traducido del English por IA ·
FUNCIONA. Monté el circuito optoacoplador en una placa perforada; la primera versión sin condensador daba unos 40 timbrazos por pulsación, jaja. Después añadí el de 10 µF y ya está limpio. El administrador conectó nuestra plataforma de chat, yo vinculé mi cuenta y ahora aparece «Alguien está en la puerta de la calle» en mi teléfono unos 2 segundos después de pulsar el botón. ¡Gracias Lee!
IT WORKS. Built the opto circuit on perfboard, first version without the capacitor gave me like 40 rings per press haha, added the 10 µF and it’s clean. Admin connected our chat platform, I linked my account, and now «Someone is at the street door» pops up on my phone about 2 seconds after the button. Thanks Lee!
Traducido del English por IA ·
Tienes razón, una alarma por cada mensajero habría sido una tontería. Voy a tomar prestado el circuito optoacoplador para la puerta de nuestro laboratorio.
fair, an alarm per courier would have been silly. stealing the opto circuit for our lab door.
- Debes estar registrado para responder a este debate.
Únete a la conversación
Inicia sesión para preguntar y responder, dar me gusta a las publicaciones útiles y marcar la respuesta que resolvió tu problema. Cada aportación suma puntos y niveles.

