PetKit Device Integration Related Cards
Built with the tools and technologies:
A custom card for Home Assistant that provides a comprehensive overview of your PetKit devices, including feeders, water fountains, litter boxes, and other pet care devices. The card organizes device information into expandable sections, displaying sensors, controls, configuration options, and diagnostic data in a clean, user-friendly interface.
- Shows device name and model information
- Organizes entities into logical categories:
- Controls - for interactive elements like buttons and switches
- Sensors - for data readings and status information
- Configuration - for device settings
- Diagnostic - for troubleshooting information
- Automatically detects entities labeled as "problem" in the device
- Visual indication when problems are detected (card border turns red)
- Easy identification of issues requiring attention
With an optional flag, you can showcase your pets instead.
- Collapsible sections for better organization of information
- Preview counts for sensors to reduce visual clutter
- Ability to expand sections to see all entities
- Consistent with Home Assistant design language
- Responsive layout that works on both desktop and mobile
- Clear visual hierarchy for easy reading
- Open HACS in your Home Assistant instance
- Click the menu icon in the top right and select "Custom repositories"
- Add this repository URL and select "Dashboard" as the category
https://github.com/homeassistant-extras/petkit-device-cards
- Click "Install"
- Download the
petkit-device-cards.js
file from the latest release in the Releases tab. - Copy it to your
www/community/petkit-device-cards/
folder - Add the following to your
configuration.yaml
(or add as a resource in dashboards menu)
lovelace:
resources:
- url: /local/community/petkit-device-cards/petkit-device-cards.js
type: module
Add the card to your dashboard using the UI editor or YAML:
The card is fully configurable in the UI editor. Simply select "Custom: PetKit Device" when adding a new card to your dashboard, then select your PetKit device from the dropdown.
This is the most minimal configuration needed to get started:
type: custom:petkit-device
device_id: YOUR_PETKIT_DEVICE_ID
The card will automatically:
- Display the device name and model information
- Organize all entities related to the device into appropriate sections
- Show collapsible sections for Controls, Configuration, Sensors, and Diagnostics
- Highlight any detected problems
Name | Type | Default | Description |
---|---|---|---|
device_id | string | Required | The Home Assistant device ID for your PetKit device |
title | string | Device name | Optional custom title for the card |
preview_count | number | All items | Number of items to preview before showing "Show More" button |
features | list | See below | Optional flags to toggle different features |
Name | Type | Description |
---|---|---|
cute_lil_kitty | flag | Show portrait instead of pet device |
type: custom:petkit-device
device_id: 1a2b3c4d5e6f7g8h9i0j
type: custom:petkit-device
device_id: 1a2b3c4d5e6f7g8h9i0j
title: Whiskers' Feeder
preview_count: 3
type: custom:petkit-device
device_id: 1a2b3c4d5e6f7g8h9i0j
features:
- cute_lil_kitty
This card works with all PetKit devices supported by the Home Assistant PetKit integration, including:
- PetKit Fresh Element (Smart Feeder)
- PetKit Fresh Element Solo (Smart Feeder)
- PetKit Fresh Element Mini (Smart Feeder)
- PetKit Pura X (Self-Cleaning Litter Box)
- PetKit Pura MAX (Self-Cleaning Litter Box)
- PetKit Eversweet (Smart Water Fountain)
- And other PetKit devices supported by the integration
This card is tightly coupled to the PetKit Integration here, by @Jezza34000:
-
Initial design
: create initial card design -
Enhanced customization
: Add more customization options -
Status badges
: Quick status badges for device state
- π¬ Join the Discussions: Share your insights, provide feedback, or ask questions.
- π Report Issues: Submit bugs found or log feature requests for the
petkit-device-cards
project. - π‘ Submit Pull Requests: Review open PRs, and submit your own PRs.
- π£ Check out discord: Need further help, have ideas, want to chat?
- π Check out my other cards! Maybe you have an integration that I made cards for.
Contributing Guidelines
- Fork the Repository: Start by forking the project repository to your github account.
- Clone Locally: Clone the forked repository to your local machine using a git client.
git clone https://github.com/homeassistant-extras/petkit-device-cards
- Create a New Branch: Always work on a new branch, giving it a descriptive name.
git checkout -b new-feature-x
- Make Your Changes: Develop and test your changes locally.
- Commit Your Changes: Commit with a clear message describing your updates.
git commit -m 'Implemented new feature x.'
- Push to github: Push the changes to your forked repository.
git push origin new-feature-x
- Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.
- Review: Once your PR is reviewed and approved, it will be merged into the main branch. Congratulations on your contribution!
This project is protected under the MIT License. For more details, refer to the LICENSE file.
- Built using LitElement
- Inspired by Home Assistant's chip design
- Thanks to all contributors!
Stats
Ratings