trigger event is the receipt of a message from an active accessory.
The first condition to check is that the message received contains (also) the text night.
The second condition to check is that the message received contains (also) the text Hall which is the name assigned (and sent) by sensor.
The first action contains the command that activates output 2 for 10 min.
The second action contains the tag that represents the text of the last message received from accessory, if this is a valid command it will be executed. Since the sensor sends the illuminance value <NAME>.light=xx if we assign the name <NAME>.light (where <NAME> is the name assigned to the motion sensor) to a variable, this command will save the received value in the variable.
Then the value will be saved in the variable that recalls the names of the various accessories:
for Hall variable Hall.light will contain its measured light level.
for office variable office.light will contain its measured light level.
for STAIRS variable STAIRS.light will contain its measured light level.