cat are notorious for not working well in home automation
please see this cat thread for reference (and a good laugh even if you don’t own a cat)
here is my response in that thread quoted here for reference:
TL:DR:
guy puts contact switch on cat flap
data doesn’t make sense
guy put video camera pointing at flap to see WTF
cat sticking head out flap but not going thru