Stock feed-ex pet feeder with additional schematic with relays and ble module esp32 and ble beacon pushed to bad cat.
https://github.com/neolead/catcatcher
Sources and schematic on github.
If cat comes - feeder is closing, if cat go away - it opens again.