activity-manager-card
activity-manager-card copied to clipboard
A companion Lovelace card for the Activity Manager custom component designed for Home Assistant.
trafficstars
EARLY RELEASE
This was designed to solve a personal need and I'm now trying to prepare it for others to use. That means several things can break between releases.
activity-manager-card
A Lovelace card designed as a companion to the Activity Manager component.
Installation
Manually
- Copy activity-manager.js into your
<config>/<www>folder - Add
activity-manager.jsas a dashboard resource.
HACS
- Open the HACS section of Home Assistant.
- Click the "..." button in the top right corner and select "Custom Repositories."
- In the window that opens paste this Github URL.
- Select "Lovelace"
- In the window that opens when you select it click om "Install This Repository in HACS"
Usage
| Field | Required | Description |
|---|---|---|
| header | no | Title of the card |
| category | no | Filter activities to a specific category |
| mode | no | Set to "manage" if you want the manager interface. Defaults to basic mode. |
| icon | no | Icon to show on card |
| showDueOnly | no | Set to true and only activities that are due is shown |
| actionTitle | no | Set the text of the action button. Defaults to "Did it!". |
| soonHours | no | Style activities that are due within soonHours. Defaults to 24 hours. |
type: custom:activity-manager-card
header: Home
category: Home
mode: manage
type: custom:activity-manager-card
header: Home
category: Home
Customization
If you want to customize the card style, you can use Lovlace Card Mod. Here are some classes:
| Class | Description |
|---|---|
| .am-grid | Adjust the grid layout of the activities |
| .am-item-name | Style activity name |
| .am-due-date | Style the due date column |
| .am-due | Style the date if it's due. By default, the text is red. |
| .am-action | Style the action column |
More information
- Activities are stored in .activities_list.json in your
<config>folder - An entity is created for each activity (e.g.
activity_manager.<category>_<activity>). The state of the activity is when the activity is due. You can use this entity to build notifications or your own custom cards.