HomeAssistant integration for OnlyCat flaps.
- 🏠 Know whether your pet is home or on the hunt using the Device Tracker
- 🐾 In case your pet chooses another exit, you can override the presence using the set_pet_location service
- 🚪 Manage the active door policy manually or using automations
- 🔎 Keep track of your device and build automations with it using sensors for:
- 📶 Flap connection status
- 🕒 Flap events (timestamp, RFID codes, trigger source, event classification)
- 🐭 Contraband detection
- 🔐 Lock state
- 🔄 Control your flap remotely using reboot and remote unlock options
Common automation ideas enabled by this integration include:
- 🚨 Switch the door policy to "Locked" for a longer time period than usual when contraband is detected
- 💦 Deter intruders by triggering a sprinkler when an unknown RFID code is detected
- 🧹 Start your robot vacuum when your pet leaves the house
- 😻 Roll out the red carpet for your pet by activating welcome lights or triggering a feeder upon arrival
- Install Home Assistant Community Store (HACS) if you haven't done so already.
- Open HACS in Home Assistant
- Click the three dots in the top right corner
- Select "Custom repositories"
- Add this repository URL: https://github.com/OnlyCatAI/onlycat-home-assistant
- Set category to "Integration"
- Click "Add"
- Search for "OnlyCat" and install
- Restart Home Assistant
- Go to
Settings>Devices & Services>Add Integration - Search for "OnlyCat"
- Enter your configuration:
- Device Token: The device token of your OnlyCat flap. You can find it in the OnlyCat app under "Account".
Currently, the following features of the OnlyCat app are not yet included in the Home Assistant integration:
- Creating or modifying door policies
- Creating or modifying pet profiles (i.e., labels for RFID codes)
- Accessing the video or poster frame of flap events
Contributions are welcome! If you have ideas for new features & improvements or want to report a bug, please open an issue or submit a pull request.
To get a local development environment up and running, follow these steps:
- Install pip requirements via
pip install -r requirements.txt - Run a HA instance:
- Directly by running
./scripts/develop, or - In Docker by running
docker run --volume ./config:/config --volume ./custom_components:/config/custom_components -p 8123:8123 "ghcr.io/home-assistant/home-assistant:stable"
- Directly by running
- Add the integration from the HA "Devices & services" ui.