added enable switch to rules to handle mult rules for same sensors/hooks