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: