The solution would be to set the “door is open for at least 1 minute” condition to FALSE and then TRUE when the AC is turned on while the door is open, so that the 1 minute timer starts again… BUT you can’t do that because that condition is linked to a Tuya device. So you need to a create an auxiliar condition that can be controlled.
I would create a new auxiliar condition called ‘cond_door_open_1min’ linked to a new variable ‘var_door_open’, that would be set to TRUE or FALSE by a logicblock when the door sensor opens/closes.
This condition (‘cond_door_open_1min’ ) would have the 1 minute delay, rather than the original ‘cond_door_sensor_tuya_open’ linked to the Tuya device.
If the door is open when the AC is on, I would set that variable (var_door_open) to FALSE and then TRUE, so that the 1 minute delay in the ‘cond_door_open_1min’ starts again.
Check this:
Variables
- var_door_open (boolean)
Conditions:
-
cond_door_sensor_tuya_open_trigger (linked to your Tuya door sensor device, “trigger”, no delay)
-
cond_door_sensor_tuya_open_notrigger (linked to your Tuya door sensor device, “no trigger”, no delay)
-
cond_ac_tuya_on (linked to your Tuya AC device, “trigger”, no delay)
-
cond_door_open_1min (linked to boolean variable ‘var_door_open’, “trigger”, delay=1 min)
Logicblocks:
1. LB_update_var_door_open
Conditions:
[ x ] cond_door_sensor_tuya_open_trigger
Actions:
TRUE:
Set variable var_door_open to TRUE
FALSE:
Set variable var_door_open to FALSE
2. LB_turn_off_AC_if_door_open_1min
Conditions:
[ x ] cond_door_open_1min
Actions:
TRUE:
Turn off AC
3. LB_restart_door_1min_timer_when_AC_is_turned_on_while_door_is_open
Conditions:
[ x ] cond_ac_tuya_on
[ x ] cond_door_sensor_tuya_open_notrigger
Actions:
TRUE: (2 actions, one after the other)
Set variable var_door_open to FALSE
Set variable var_door_open to TRUE
Is it clear?