Hello, I would like to create a scene that turns on a spotlight when I open my gate, but only when it’s night using the sunset.
I don’t know how to achieve this, if you can help me out with this one.
Hello, I would like to create a scene that turns on a spotlight when I open my gate, but only when it’s night using the sunset.
I don’t know how to achieve this, if you can help me out with this one.
If I’m not mistaken, the logic implies (if tuba doesn’t have a light sensor) to create a virtual MQTT device, which you can call « night ».
The idea is that 2 scenes define the state of this device:
Once that’s done, in your light activation scene, you can retrieve the value of Night, and say to continue if and only if Night=1
![]()
The advantage is that this night variable is a bit generic, and usable in other scenarios!
Oh, I wanted to use the sunset function, if sunset 30 minutes later, if portal opens then turn on the light, but I can’t get it to work in the same scene
Because when you say « if sunset 30min after, if gate opens » this would mean that to trigger your scene, the gate would need to be open exactly 30 minutes after sunset.
Gladys will check at that exact moment if something happens.
In the logic of what you want to do, the trigger should be the opening of the gate, the rest are execution conditions for the scene.
So try out the new AI-powered scene creation feature that @pierre-gilles just developed
I just saw it, yes it looks promising, I’m going to test it