A custom Lovelace card for Home Assistant that checks if CO2 content is in a good range for current grow light PPFD. It has a nice CO2 atom indicator ;)
First try writing a custom card. I know it's not perfect. Any contributions, recommendations and comments are welcome!
Base data used in script:
PPFD | CO2 (ppm) |
---|---|
200-450 | 400 |
450-800 | 800 |
800-1000 | 1400 |
1000-1400 | > 1400 |
- Ensure you have HACS installed.
- In Home Assistant, go to HACS > Frontend.
- Click the "+" button to add a new repository.
- Enter the repository URL:
https://github.com/maziggy/hassCo2Card.git
. - Select Dashboard as the category and Save.
- Once installed, add the card to your Lovelace dashboard.
or simply
type: custom:co2Card
entity: sensor.growbox_water_tds
entity_ppfd: input_number.grow_ppfd
rangeGreen: 100 # ppm difference to desired value | in range
rangeYellow: 200 # ppm difference to desired value | slightly out of range
theme:
bgColor: "#2c2c2e"
textColor: "#fff"
textColorBubble: "#fff"
iconColor: "#ff9e32"