Hardware question for scene idea

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.

Do you have any advice on the hardware?

Or maybe my scene idea isn’t good?

Thanks

Hi @thekassmachine :grinning_face_with_smiling_eyes:

Thanks for your message!

I’m not sure I fully understand what you’re trying to do :thinking:

Are you talking about getting the time via OpenWeather? Or rather weather information?

What is your goal in using this data? Don’t hesitate to detail your use case a bit, it will help me answer you more precisely :blush:

Hello @pierre-gilles

Actually, I didn’t express myself clearly,

I get the time directly from Gladys, I thought weather confused me.

I want to turn on lights only when my gate is open & it’s night.

Thanks

Ok, I understand better :blush:

For the opening sensor, I personally use the Sonoff SNZB-04:
https://www.domadoo.fr/fr/peripheriques/5320-sonoff-capteur-d-ouverture-portefenetre-zigbee-30-6920075776126.html?domid=17

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 :slightly_smiling_face:

So I see that I have a lot of trouble explaining myself ^^

I thought about using a dry contact sensor, as I have, within reach of my installation; a box with an LED that lights up when the gate is open.

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.

Thanks! I’ll do it as soon as possible

Here you go, I hope I’m clear.

To control the lighting, a light sensor is very practical

Thanks for the diagram @thekassmachine

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:


or with a light sensor as @Jluc suggested with a product like this type.

Thanks to each of you for your feedback.

The sensor on the gate, I can’t; it’s too far from my installation. That’s why I wanted to retrieve the « open » status of my gate on my button.

For the switch side; I keep the Sonoff module as a favorite :slight_smile:

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).

I’ll check the motor for my gate.

I understand that it’s stuck, but I thought it was working because even when I activate it from the remote, the LED in the house lights up.

So maybe you can install a micromodule at the LED and pick up the signal when it lights up.