Lovelace cards for cannabis visualization - Part of the Brokkoli Suite
Lovelace cards for monitoring cannabis plants in Home Assistant. Requires the Brokkoli Cannabis Management integration for plant visualization and management.
- Individual Plant Cards: Detailed monitoring with sensors, timelines, and consumption tracking
- Area Cards: Interactive spatial plant arrangement with drag & drop positioning
- List Cards: Tabular overview with sorting, filtering, and bulk operations
- Sensor Bars: Display of moisture, temperature, light, conductivity, pH, humidity, and health
- Interactive Elements: Expandable sections for timeline, consumption, history, and detailed information
- Heatmaps: Visual representation of sensor data across plant areas
- Colored Rings: Status indicators around plants in area view
- Drag & Drop: Plant positioning in area cards
- Multi-selection: Bulk operations on multiple plants
- Cross-card Communication: Synchronized selection across different card types
- Filtering & Search: Plant discovery and organization
This card requires the Brokkoli Cannabis Management integration to function properly.
- Add this repository as a Custom Repository in HACS
- Set the category to "Lovelace"
- Click "Install" on the "Brokkoli Card" card
- Important: Manually add dashboard resources for list and area cards:
- Go to Settings β Dashboards β Resources
- Add
/hacsfiles/lovelace-brokkoli-card/brokkoli-list-card.js
as JavaScript Module - Add
/hacsfiles/lovelace-brokkoli-card/brokkoli-area-card.js
as JavaScript Module
- Refresh your browser (Shift+Reload recommended)
- Download
brokkoli-card.js
,brokkoli-area-card.js
, andbrokkoli-list-card.js
- Place files in your
<config>/www/
directory - Add resources in Settings β Dashboards β Resources:
Url: /local/<path-to>/brokkoli-card.js Resource type: JavaScript Module
- Repeat for all three card files
- Refresh your browser
- Edit your dashboard and add a new card
- Search for "Brokkoli Card" in the card picker
- Select your cannabis plant entity
- Customize display options and sensor bars
- Add a "Brokkoli Area Card" to your dashboard
- Configure it to show plants from a specific area
- Use drag & drop to position plants visually
- Enable heatmaps for sensor visualization
- Add a "Brokkoli List Card" for tabular overview
- Enable multi-selection and filtering
- Configure cross-card communication with identifiers
Individual plant monitoring with sensor information and interactive elements.
type: custom:brokkoli-card
entity: plant.my_plant # Required: The plant entity
battery_sensor: sensor.demo_battery # Optional: Battery sensor
# Sensor bars to display
show_bars:
- moisture
- temperature
- conductivity
- brightness
- humidity
- dli
- fertility
- health
# Full-width bars
full_width_bars:
- health
# Elements to show on card
show_elements:
- header
- attributes
- options
- timeline
- consumption
# Options menu elements
option_elements:
- attributes
- timeline
- consumption
- history
- details
# Default expanded options
default_expanded_options:
- timeline
- history
# Display type: "full" or "compact"
display_type: full
# Cross-card communication
listen_to: my_identifier
# History grouping
history_groups:
- moisture
- temperature
- conductivity
# History line position: "left" or "right"
history_line_position: left
Spatial plant arrangement with visual sensor indicators.
type: custom:brokkoli-area-card
title: My Plant Area
# Plant selection (choose one)
area: living_room # Show plants from area
entity: plant.my_plant # Single plant
entities: # Multiple plants
- plant.plant1
- plant.plant2
# Cross-card communication
identifier: my_area
# Sensor rings around plants
show_rings:
- health
- moisture
- temperature
- brightness
# Center labels
show_labels:
- moisture
- temperature
# Heatmap configuration
heatmap: moisture
heatmap_color: "#00ff00"
heatmap_secondary_color: "white"
heatmap_opacity: 0.8
# Show legend
legend: true
Tabular overview with filtering and bulk operations.
type: custom:brokkoli-list-card
title: Plant Overview
area: living_room # Filter by area
# Cross-card communication
identifier: my_list
# Search configuration
search:
enabled: true
placeholder: Search for plants...
# Multi-selection
multiselect:
enabled: true
showbydefault: false
# Filtering
filter:
enabled: true
showbydefault: false
filters:
entity_type: ['plant', 'cycle']
area: ['living_room', 'kitchen']
moisture:
min: 20
max: 80
temperature:
min: 18
max: 28
# Add plant button
add_plant:
enabled: true
position: bottom
# Column visibility
show_columns:
friendly_name: true
state: true
area: true
moisture: true
temperature: true
brightness: false
conductivity: false
fertility: false
humidity: false
ph: false
health: true
battery: false
growth_phase: false
pot_size: false
images: false
notes: false
cycle: false
variant: false
The Brokkoli Card is part of the Brokkoli Suite for cannabis cultivation:
- Core integration for cannabis plant monitoring
- Device-based plant management with sensors
- Configurable thresholds and problem detection
- Cycle system for plant grouping
- Comprehensive service API
- Cannabis strain database access
- Strain data and imagery
- Growth phase definitions
- Cultivation information
Enable interaction between different card types:
-
Set up communication identifiers:
# In Area or List Card identifier: my_plants # In Individual Plant Card listen_to: my_plants
-
Benefits:
- Selecting a plant in Area/List Card updates the Individual Plant Card
- Synchronized plant selection across dashboard
- Coordinated multi-card layouts
header
- Plant image and basic informationattributes
- Sensor bars and readingsoptions
- Interactive options menutimeline
- Historical data visualizationconsumption
- Power and resource trackinghistory
- Detailed sensor historydetails
- Comprehensive plant information
- Moisture: Soil moisture percentage
- Temperature: Ambient temperature
- Brightness/Light: Light intensity (lux)
- Conductivity: Soil conductivity (Β΅S/cm)
- pH: Soil pH level
- Humidity: Air humidity percentage
- DLI: Daily Light Integral
- Fertility: Nutrient levels
- Health: Overall plant health status
- Ensure all JavaScript modules are properly added to Dashboard Resources
- Clear browser cache with Shift+Reload
- Verify Brokkoli Cannabis Management integration is installed and configured
- Check that identifiers match exactly between cards
- Ensure cards are on the same dashboard
- Verify plant entities exist and are accessible
- Reduce the number of visible sensor bars
- Limit history data range
- Consider using compact display mode for multiple cards
Contributions are welcome! Please feel free to submit pull requests, report issues, or suggest improvements.
This project is licensed under the MIT License.
If you find this project helpful, consider supporting its development:
Part of the Brokkoli Suite - Cannabis cultivation tracking for Home Assistant