Olen/lovelace-flower-card
소개
사용자 지정 식물 연동에 맞춘 Lovelace Flower Card
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original🌸 Flower Card for Home Assistant
Lovelace cards for displaying plant data from the Plant Monitor integration. There are three cards:
- The flower card shows sensor readings, thresholds, and health status in a compact visual layout.
- The flower care card shows what one plant needs from you: what to do, when, and how.
- The flower care agenda lists the care tasks of all your plants in one card.
[!IMPORTANT] This card requires the Plant Monitor custom integration. It is not compatible with the built-in plant integration.
[!NOTE] The card requires Home Assistant 2026.8 or newer, in step with Plant Monitor. On older Home Assistant versions, use the card 2026.11.4, the last release that supports them.
📑 Table of Contents
📦 Installation
From version 2026.11.0, the card comes with the Plant Monitor integration. Install Plant Monitor and the card is ready to use on your dashboards. There is nothing else to install. The same goes for the flower care card and the flower care agenda: they are part of the same file.
The flower care card, the agenda and the flower card's next care tasks need Plant Monitor 2026.12 or newer.
Moving from the HACS copy
When you update to a Plant Monitor version that includes the card, and you installed the card from HACS or added flower-card.js under Settings → Dashboards → Resources yourself, Home Assistant shows a repair asking you to remove that copy:
- Uninstall Flower Card in HACS, or delete its resource under Resources if you added it by hand
- Refresh the browser
Your dashboards keep working the whole time, and they need no changes.
Older Plant Monitor versions
Plant Monitor before 2026.11.0 does not include the card. Install it yourself:
Via the Marketplace (HACS before Home Assistant 2026.11): select the button below, or add this repo as a custom repository with type Dashboard. Click Install in the "Flower Card" repository and refresh the browser.
Manually: download
flower-card.jsinto your<config>/www/folder, add/local/<path to>/flower-card.jsas a JavaScript Module under Settings → Dashboards → Resources, and refresh the browser.
⚙️ Configuration
The card can be set up from the GUI:
Or via YAML:
type: custom:flower-card
entity: plant.my_plant
If an option has a value the card does not understand, the editor opens in YAML mode and tells you what is wrong. The same goes for the flower care card and the agenda.
All Options
| Option | Type | Default | Description |
|---|---|---|---|
entity |
string | Required | The plant entity ID |
name |
string or name parts | Home Assistant's name for the plant | Text, or the parts to build the name from (see Custom Name) |
display_type |
string | full |
Display mode: full or compact |
hide_units |
boolean | Based on display_type | Hide value/unit next to bars |
bars_per_row |
number | Based on display_type | Number of bars per row (1 or 2) |
show_limits |
boolean | false |
Show the min and max thresholds under each bar |
battery_sensor |
string | — | Entity ID of a battery sensor (details) |
battery_warn_level |
number | 20 |
Below this level the battery icon is red |
battery_ok_level |
number | 40 |
From this level the battery icon is green |
show_bars |
list | See Show Bars | Measurement bars to show |
show_care |
list | — | Care guidance text boxes to show (details) |
show_next_care |
boolean | false |
One line under the bars with the two most urgent care tasks (details). Needs Plant Monitor 2026.12 or newer |
hide_species |
boolean | false |
Hide the species name |
hide_image |
boolean | false |
Hide the plant image |
extra_badges |
list | — | Additional icons (details) |
extra_bars |
list | — | Bars for other sensors, such as a reservoir level (details) |
Full Example
type: custom:flower-card
entity: plant.my_plant
name: "My Monstera"
display_type: full
battery_sensor: sensor.plant_sensor_battery
hide_species: false
hide_image: false
show_bars:
- illuminance
- humidity
- moisture
- conductivity
- temperature
- dli
show_care:
- care_watering
- care_sunlight
extra_badges:
- entity: sensor.room_humidity
icon: mdi:water-percent
- entity: binary_sensor.window_open
color_on: orange
color_off: grey
🖼️ Display Types
Full (default)
type: custom:flower-card
entity: plant.my_plant
display_type: full
Compact
A smaller card layout with hidden units and single-column bars:
type: custom:flower-card
entity: plant.my_plant
display_type: compact
Fine-Grained Overrides
The display type sets defaults you can override individually:
| Setting | Full | Compact |
|---|---|---|
hide_units |
false |
true |
bars_per_row |
2 |
1 |
# Compact header but 2 bars per row with units
type: custom:flower-card
entity: plant.my_plant
display_type: compact
bars_per_row: 2
hide_units: false
In a Sections view the card takes the full section width (12 columns) by default. You can make it narrower, down to half a section.
📊 Show Bars
Select which measurement bars to display:
show_bars:
- moisture
- temperature
- illuminance
Available bars: moisture, temperature, conductivity, illuminance, humidity, dli, co2, soil_temperature
Without show_bars, the card shows moisture, conductivity, temperature, illuminance, humidity and dli. Add co2 or soil_temperature to the list if your plant has those sensors.
A bar is green when the reading is within the plant's limits and red when it is outside them. The colours follow your theme.
📏 Extra Bars
Add bars for sensors that are not part of the plant, such as the water reservoir of a self-watering pot or the weight of the pot. They look like the plant's own bars and come after them.
extra_bars:
- entity: sensor.ivy_reservoir_level
name: Reservoir
icon: mdi:cup-water
min: 20
- entity: sensor.pot_weight
min: 900
max: 2500
| Option | Default | Description |
|---|---|---|
entity |
(required) | Any entity with a numeric state |
name |
The entity's name | Shown in the tooltip |
icon |
The entity's icon, else mdi:gauge |
|
min |
0 |
Where the bar starts. Below it, the bar turns red |
max |
100 |
Where the bar ends. Above it, the bar turns red |
min must be lower than max. Click a bar to open the entity. An entity that is missing or has no numeric value shows as an unavailable bar.
🌿 Care Info
Show OpenPlantbook care guidance as text boxes on the card. Select which fields to display:
show_care:
- care_watering
- care_sunlight
- care_soil
- care_pruning
- care_fertilization
Available fields: care_watering, care_sunlight, care_soil, care_pruning, care_fertilization
Each selected field renders as a labeled text box — and only when the plant actually has that care attribute, so missing or empty fields are skipped automatically.
Note: Care text comes from OpenPlantbook via the plant integration. Existing plants need a species refresh before the
care_*attributes appear (newly added plants get them automatically). You can confirm the data on yourplant.…entity under Developer Tools → States.
⏭️ Next Care Tasks
With show_next_care: true, the flower card gets one line under the bars with the plant's two most urgent care tasks, such as "Water: due today" and "Fertilize: due in 5 days (…)". Each task has the same Done button and the same colours as on the flower care card. A predicted watering can be one of the two. To snooze or skip a task, use the flower care card or the agenda.
type: custom:flower-card
entity: plant.monstera
show_next_care: true
This gives you the most important part of the flower care card without adding a second card. It needs Plant Monitor 2026.12 or newer. Tasks with a due date need a to-do list for the plant (see below).
🔗 How the Care Cards Work with Plant Monitor
The flower care card, the agenda and the next care tasks line show care tasks that Plant Monitor keeps for you. The cards do not store anything themselves.
- The tasks live in a to-do list. Each plant can have a Home Assistant to-do list for its care tasks. Choose one under Settings → Devices & Services → Plant Monitor → your plant → Configure → Care tasks. Plants can share a list. Without a list there are no tasks, only advice and readings.
- The plant decides when a task is due. It adds a task when a sensor shows a problem, or on a schedule you set. It also notices on its own when you have watered or fertilized, and ticks off the task.
- The cards show and update the tasks. They read the open tasks and when each was last done from the plant, and refresh as soon as the to-do list changes. Done, snooze and Skip change the items in the to-do list, so the list in Home Assistant always shows the same as the cards.
- Done on an earlier day uses the plant's
plant.mark_caredaction, so the plant records the care on that day and plans the next task from it.
The Plant Monitor documentation explains how the plant sets up and plans the tasks.
🪴 Flower Care Card
The flower card shows how your plant is doing right now. The flower care card shows what it needs from you: what to do, when, and how. Use them side by side.
It comes with the flower card. If the flower card works, the flower care card is already installed.
type: custom:flower-care-card
entity: plant.monstera
display_type: full # or folded, or compact
| Option | Default | Description |
|---|---|---|
entity |
(required) | A plant.… entity |
display_type |
full |
full shows every row unfolded; folded keeps the normal header but folds the rows, so the card fits next to a flower card; compact uses the small header and folds the rows (tap a row to unfold it) |
name |
Entity name | As on the flower card, see Custom Name |
battery_sensor |
— | As on the flower card, see Battery Sensor |
battery_warn_level |
20 |
As on the flower card |
battery_ok_level |
40 |
As on the flower card |
extra_badges |
— | As on the flower card, see Extra Badges |
show_care |
(all) | Which care areas to show: care_watering, care_fertilization, care_repotting, care_pruning, care_sunlight, care_soil. Omitted = all. The rows keep their order whatever order you list them in |
hide_species |
false |
As on the flower card, see Hide Species / Image |
hide_image |
false |
As on the flower card, see Hide Species / Image |
show_tasks |
true |
Show extra tasks from the to-do list |
Note: The card needs Plant Monitor 2026.12 or newer. With an older version it only shows the care advice. Task-related parts (due dates, the Done button, red rows for due tasks) appear only when the plant has a to-do list. Choose one under Settings → Devices & Services → Plant Monitor → your plant → Configure → Care tasks.
What the card shows
The header is the same as on the flower card. Below it is one row per care area:
| Row | Shows |
|---|---|
| 💧 Water | When the soil is expected to be dry at the current rate (if the plant has a moisture sensor), the moisture reading, when it was last watered, and the watering advice |
| 🧪 Fertilize | The conductivity reading, when it was last fertilized, and the fertilizing advice |
| 🪴 Repot | When it was last repotted, and when it is next due on a schedule |
| ✂️ Prune | The pruning advice, and when it is next due on a schedule |
| ☀️ Light | The light advice. Red when the plant has a light problem (illuminance or DLI) |
| 🪨 Soil | The soil advice |
The advice comes from OpenPlantbook and is shown as written; OpenPlantbook only provides it in English. A row with nothing to say is left out.
Sensor or schedule
How a task row behaves depends on how the plant is set up. You choose with the plant's "Use … as problem trigger" checkboxes and the intervals under Care tasks. The Plant Monitor documentation explains the details.
- The sensor decides (checkbox checked): when the soil is too dry or the conductivity too low, the row turns red and says due today. The task closes by itself when the sensor sees that you watered or fertilized. The Done button is always outlined here and asks first ("The sensor has not seen a watering. Mark as done anyway?"), for the times the sensor missed it.
- On a schedule (checkbox unchecked, interval set): the row shows when the next task is due, with a bar running from the last time it was done to the due date, and a Done button.
- A solid button means the task is due or overdue. Press it when you have done the job.
- An outlined button means it is not due yet. Pressing it asks first, so a stray tap doesn't log a job you haven't done.
- Nothing (checkbox unchecked, interval 0): the row only shows the advice.
A watering or fertilizing the plant notices by itself ticks the task off too, whichever way you set it up.
A task without a due date counts as due now: the plant always dates its own tasks, so an undated one was added by hand, and the card takes it as something to do today. The same goes for extra tasks.
Done on an earlier day
When Done asks first, the question also has a Done on date, set to today. Forgot to press Done yesterday? Pick yesterday: the plant records the care on that day and plans the next task from it. The date cannot be later than today. A solid Done always means today.
The date field is there for Water, Fertilize, Repot and Prune, and only when the plant has the plant.mark_cared action (Plant Monitor 2026.12 or newer). Extra tasks have no date field.
Snooze and Skip
A row with an open task has a ⏰ button. The button appears when the task is due within two days or overdue. It opens a menu:
- 1 day, 3 days or 1 week move the task's due date, counted from today if the task is overdue.
- Pick a date… moves it to a date you choose, from tomorrow on. Handy for a plant resting over winter.
- Skip (only for tasks on a schedule) moves the task one interval on from its old due date, so skipping a fertilizing keeps the rhythm instead of shortening the next cycle.
Nothing else changes: the task stays in your to-do list with the new date. When the task is done, the next one is still planned from that day.
Extra tasks
Water, Fertilize, Repot and Prune are built in: the plant handles them. You can add your own tasks to the plant's to-do list too, such as "Fill reservoir" or "Wipe the leaves", by hand or from an automation. The card shows each open one as a row under the care rows, titled with the item's own name, with Done, snooze and red rows working as for the built-in tasks.
A task belongs to a plant through a line in the item's description:
plant.monstera · task:fill_reservoir
The part after task: names the task (its name in lowercase, with _ for spaces) and lets an automation find it again; the item's summary is what the card shows. An item can belong to several plants, with one such line per plant: one cistern task for all the pots it waters. A task can share a name with a built-in type, so water (from the sensor) and task:water (a timed one) can both exist.
Row colours
The same colours are used on the flower care card, the agenda and the next care tasks line. They follow your theme's error and warning colours.
| Colour | Meaning |
|---|---|
| 🔴 Red | Something to do now: the task is due today or overdue, or the plant has an active problem for that row (moisture for Water, conductivity for Fertilize, illuminance or DLI for Light) |
| 🟡 Yellow, snoozed until … | The plant still reports a problem, but the task has a due date in the future: you have seen it and put it off |
| 🟡 Yellow, done … · waiting for the sensor | You marked the task as done, but the sensor has not had time to show it yet: a day after watering, and for fertilizing until a day after the next watering (fertilizer shows in the conductivity only once water reaches it). After that the row is red again |
| No colour | Nothing to do yet. A task with a due date in the future is not red until that date |
Rows stay coloured when they are folded. When no row is red or yellow, a small All good line at the top of the flower care card says so.
Wide cards
The card arranges itself by its own width. When there is room, the rows are shown in two columns, in pairs: Water next to Fertilize, Repot next to Prune, and Light next to Soil. This works the same in Sections, Masonry and Panel views. In a Sections view the card takes the full section width (12 columns) by default, which is where the rows become readable; whether that gives two columns depends on the section's width.
Without a to-do list
The card still shows the predicted watering, the readings, when things were last done (as far as the plant has noticed), and the advice. There are no due dates, no Done buttons and no red rows for tasks, and a short note at the bottom tells you where to add a list.
🗓️ Flower Care Agenda
The flower care agenda lists the care tasks of all your plants in one card, soonest first: what needs doing today, this week, and in which room. Like the flower care card, it comes with the flower card.
type: custom:flower-care-agenda
area: stue # leave out for the whole home
| Option | Default | Description |
|---|---|---|
title |
The area or floor name, or "Plants" | Card title |
area |
— | Only plants in this area (the area ID). A plant's area is its own, or else its device's |
floor |
— | Only plants on this floor (the floor ID) |
label |
— | Only plants with this label (the label ID) |
exclude_label |
— | Leave out plants with this label (the label ID) |
group_by |
due |
due: Today, Tomorrow, This week. area: one block per room |
days |
7 |
How far ahead to list tasks, a whole number of at least 1. Later tasks fold into "N more later" |
show_care |
(all) | Which tasks to list: care_watering, care_fertilization, care_repotting, care_pruning |
show_predictions |
true |
List the predicted watering of plants with a moisture sensor |
show_tasks |
true |
List extra tasks from the plants' to-do lists |
show_filters |
false |
Chips under the title to filter by room and by type of task |
Note: Like the flower care card, the agenda needs Plant Monitor 2026.12 or newer.
Each row shows the plant, the task and when it is due. Tap the plant to open it. The rows behave as on the flower care card: a Done button for tasks on a schedule (outlined and asking first when not due yet), an outlined one that always asks for tasks the sensor closes by itself, and the ⏰ snooze button when the task is due within two days. The colours are explained under Row colours. A task you marked as done that is waiting for the sensor is left out of the agenda. A predicted watering is shown in italics and has no button: it is not a task, but it puts the week's watering in one list.
Overdue tasks are listed at the top of Today, most overdue first, and each says how late it is ("3 days late").
An extra task that belongs to several plants is listed once, with all their names, under the first plant's room.
Tasks ticked off today fold into a Completed today (N) line at the bottom, so a tick does not just vanish. Water, Fertilize, Repot and Prune are always listed there. Extra tasks are listed only when the to-do list keeps a completion time (Local To-do, CalDAV, Google Tasks and iCloud do).
When two or more plants on a watering schedule are due or overdue, a Water all button completes them in one go. With group_by: due the button is in the Today heading; with group_by: area it is in each room's heading, for that room's plants. Plants where the sensor decides are left out, since the sensor ticks those off itself.
In a Sections view the card is 12 columns wide by default; from about 620 px it shows the tasks in two columns.
🔋 Battery Sensor
Add a battery indicator to the card header. The icon changes color based on level:
| Level | Color |
|---|---|
battery_ok_level (40%) and above |
🟢 Green |
From battery_warn_level (20%) up to battery_ok_level |
🟠 Orange |
Below battery_warn_level (20%) |
🔴 Red |
battery_sensor: sensor.plant_sensor_battery
battery_warn_level: 15 # optional, default 20
battery_ok_level: 50 # optional, default 40
The colours are your theme's success, warning and error colours. In the card editor, the two levels show up once you have picked a battery sensor. The battery works the same on the flower care card.

🏷️ Extra Badges
Add additional icons next to the battery icon — sensor values, binary states, action buttons, or static labels.
extra_badges:
- entity: sensor.room_humidity
icon: mdi:water-percent
- entity: binary_sensor.grow_light_on
icon: mdi:lightbulb
color_on: yellow
color_off: grey
- entity: input_button.water_plant
For the full reference with all badge types and options, see EXTRA_BADGES.md.
Example card with all bars, various badges and care info
🔍 Image Lightbox
Tap the plant's thumbnail to open the full-size image in a popup, with the plant's name shown as its title — handy for telling apart multiple plants of the same species that have different photos. Tap the plant name (or anywhere else in the header) to open the standard more-info dialog.
Note: This changed the previous behavior, where tapping the image opened more-info. Cards with no image or with
hide_image: trueare unaffected — tapping still opens more-info.
No configuration is needed; the lightbox is enabled automatically whenever the card shows a real plant image (not the placeholder).
🎨 Other Options
Custom Name
Type your own name:
name: "Living Room Monstera"
Or pick the parts Home Assistant builds the name from, the same way as on its own cards. The same name works on every flower card, and each card fills in its own plant's area, device and name:
name:
- type: area
- type: text
text: " · "
- type: entity
The parts are entity, device, area, floor and text. The card editor offers the same name picker as Home Assistant's own cards.
Hide Species / Image
hide_species: true
hide_image: true
Keyboard
Everything you can tap on the cards can also be reached with Tab and opened with Enter or Space: the plant name, the picture, the battery and extra badges, the bars and the care rows.
☕ Support
This card is a fork of thomasloven/lovelace-flower-card. After version 3.0.0 the card was largely rewritten; only the original design and layout have been kept.
관련 프로젝트 살펴보기
불러오는 중…