Hello, I’m looking to create a scene for a specific use case that I’ll detail for you:
When my gate opens and it’s nighttime, the lights in my driveway turn on. Once the gate is closed, they turn off.
My gate is motorized, and a push button controls it from the inside; this button lights up an LED when the gate opens, whether activated by the interior button or by the remote control outside.
The lights in my driveway are all controlled by a single push button near my door.
Here’s the idea: a dry contact sensor that checks if the LED-side contact is ON or OFF; and time data via OpenWeather. With this, a micro-module connected to the push button for my lights.
When the dry contact sensor reports that the contact is ON, and it’s nighttime, the relay activates the push button for my lights.
In terms of hardware, I’m not sure what to choose. I already have Zigbee2mqtt devices and everything works, so it makes sense to stick with the same protocol.
I see that it’s actually available on Amazon right now (this model seems more recent than mine): Amazon.fr
However, in the specific case of a gate, it’s hard to be categorical without testing. It all depends on how the gate opens, the possible location of the sensor, and the gap between the two parts. On paper, it seems feasible, but only a trial will confirm it
Hi @thekassmachine,
I’d really like to help you with the hardware first, but I’m having trouble visualizing your setup despite your explanations.
Do you have the possibility to draw a small electrical diagram or something to see who controls what?
After that, it’s just a matter of creating scene(s), and that’s simpler.
What I mean is that it’s good to separate hardware and software to see things more clearly sometimes.
As @pierre-gilles mentioned, a door contactor at the gate level would be great, but we still need to test it with the opening/closing and whether the signal is strong enough, or even a multi-state sensor like the P100 from Aqara.
For the lamp switch, there’s a good chance you don’t have a neutral wire, so a Sonoff ZBMINIL2 would be interesting.
You could also put one behind the push button for the gate opening, which would allow you to send a message to Gladys to open the gate without touching anything.
Then you’ll need to orchestrate all this in one or more scenes in Gladys.
For the schedule, you just need to take an action block with a time condition like this:
Unfortunately, as it stands, this is not possible because you have an external remote control (in the car?) to open and a dry contact does not have a status return.
Do you have the model and brand of your gate motor?
It might be possible to install a dry contact and binary input control model (with a magnetic contactor).