Near my frontdoor a ESPEasy with a few inputs and outputs that will make connection to my Domoticz server.
As Inputs:
A: lux meter.
B: distance sensor.
C: switch for the doorbell contact.
D: switch for the letterbox.
As Output(s)
A: Switch to control the frontdoor light.
If it is dark and someone approaches the door to say 3 meter than the frontdoorlight needs to be activated.
This can be easy done in Domoticz by some sort of script. The problem (i think) is that Domoticz executes scripts only at the start of a new minute and not immediately. So in Domoticz it will take something between 1 and 60 seconds to turn on the light plus about a extra 5 seconds for the wifi message to go through the network.
That can be a very long time when your visitor is seeking the doorbell pushbutton in the dark.

So I was thinking that it would be nice if there could be a very rudimentary way of decision making logic dependant on a few inputs to control an output, like this: IF ((Input A<= 200lux) AND (Input B<= 300 cm)) THEN Output A=ON ELSE Output A=OFF
build into the ESPEasy sketch.
This is just an example that can also be solved by installing a I.R. sensor light near the frontdoor but it certainly would be a usefull extension for a ESPEasy to do some fast comparisions to decide the state of an Output depending on the state or value of some Input(s).
Anyone any thoughts about this?