Hi,
To be able to use custom attributes in rules for assigning products to a category, you need to add the attribute to the list in the following setting:
Store > Configuration > Catalog > Visual Merchandiser > Visible Attributes for Category Rules
(visualmerchandiser/options/smart_attributes)
Cheers