logo elektroda
logo elektroda
X
logo elektroda

Alternative for Sonoff Mini R2 for bell switch press detection

baackzia 1056 8
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19839658
    baackzia
    Level 6  
    I have a bell switch in the wall. I'm looking for a device that I can fit in the flush-mounted box behind the switch and connect to the switch, and this device will relay the switch switching information to the Home Assistant. Something like the Sonoff Mini R2 (can be without the relay/switch). Unfortunately, the Mini does not generate any event associated with a button press. This is only available in Ewelink, but also only in the settings, so it does not allow you to create automations.
  • ADVERTISEMENT
  • #2 19839789
    kpodstawa
    Level 33  
    Think through the use of time relays with minimum time settings, such as PCUs or automatic staircases. But... first of all read their DTR before you start tinkering with anything. Clarify my misunderstanding - do you want to fit both a camera and a switch in one box?

    Krzysztof Podstawa
  • #3 19839815
    kood
    CCTV and Stationary Alarms specialist
    Set the sonoff so that the relay is active when the button is pressed and you can use the relay status in the home assistant. If it is not possible on ewelink then win to sonoff suple.
  • ADVERTISEMENT
  • #4 19839892
    baackzia
    Level 6  
    Clever. But then I'm depriving myself of the ability to use the switch. Suppli's software somehow works differently?
  • #5 19840026
    kood
    CCTV and Stationary Alarms specialist
    baackzia wrote:
    using a switch
    .

    Which switch?
  • #6 19840067
    baackzia
    Level 6  
    The Mini R2 can be said to consist of two parts - a detector and a relay. The detector detects the state of the switch and, depending on the settings in Ewelink, drives the relay accordingly. By switch I mean relay.

    What I want to achieve is to separate these parts or use another device/software change that has such a separation. But I need both a detector and a relay. An example application could be: press the bell switch, HomeAssistant detects the event and checks if it is after sunset, if so, it short-circuits the relay and turns on the lights.

    Your solution is good, but I would have to give up the relay in the Mini R2 and use a separate relay (e.g. Sonoff Basic). Connecting the lights to the relay on the Mini R2 would cause the lights to come on when the bell switch is pressed. Alternatively, I could immediately switch them off at the HA if it is not after sunset. But that's not the effect I'm after. If it's not after sunset, the light is not supposed to turn on at all. Not even for a moment. That's why I would have to use a separate relay that would be connected to the light, and the Mini R2 would only be for detection. It's a bit of a shame about the relay that sits in it.

    I wonder if:
    (a) there are devices that are detector only like the Mini R2 and fit in a box or.
    (b) there are devices like the Mini R2 but are detected by HA as a detector as well as a relay/switch
    (c) it is possible to achieve b) in the Mini R2, for example by changing the software
  • ADVERTISEMENT
  • #7 19840573
    kood
    CCTV and Stationary Alarms specialist
    As I understand it you need 2 relays anyway, one for the bell the other for the lighting so some solution might be to use two sonoff mini. The first connected to the bell button, controls the bell and the second controlled from the HA controls the lighting.
  • ADVERTISEMENT
  • #8 19841378
    baackzia
    Level 6  
    I think I need one detector for the bell button and one relay to control the lighting. I don't know which bell button you are writing about. I was writing about a bell switch (otherwise also called: momentary pushbutton, monostable switch or single-state switch), but I didn't mention any bell.
  • Helpful post
    #9 19841429
    xury
    Automation specialist
    In Tasmota it is possible to separate the switch from the relay. The action is then to send the MQTT to the HA, and the HA itself already decides what to do.

Topic summary

The discussion revolves around finding an alternative device to the Sonoff Mini R2 for detecting bell switch presses and relaying this information to HomeAssistant. The user seeks a solution that separates the detection of the switch from the relay function, allowing for automation based on the switch's state. Suggestions include using Sonoff devices configured with Tasmota firmware, which allows for the separation of switch and relay functionalities, enabling MQTT communication with HomeAssistant. Other options discussed involve using multiple Sonoff Mini devices or time relays, but the user emphasizes the need for a dedicated detector for the bell switch and a separate relay for lighting control.
Summary generated by the language model.
ADVERTISEMENT