HomeAssistant integration for OnlyCat flaps.
- 🏠 Know whether your pet is home or on the hunt using the Device Tracker
- 🕒 Know when your pet was last seen by the device, whether it transited or not
- 🐾 In case your pet chooses another exit, you can override the presence using the
set_pet_locationservice
- 🔎 Keep track of your device and build automations with it using binary sensors for:
- 📶 Flap connection status
- 🕒 Flap events (including timestamps, RFID codes, trigger source, and event classification)
- 🐭 Contraband detection
- 🔐 Lock state
- 👤 Human detection
⚠️ Device errors- 🎥 Last activity video and image
- 🚪 Manage the active door policy manually or using automations
- 📋 View and change door policy information via sensors and the
update_device_policyservice - 🔄 Control your flap remotely using reboot and remote unlock buttons
- Check and manage your existing device policies
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:
- API Key: Enable Developer Mode in the OnlyCat app under Account, open API Keys, and create a key for Home Assistant.
Currently, the following features of the OnlyCat app are not yet included in the Home Assistant integration:
- Creating or modifying pet profiles (i.e., labels for RFID codes)
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.