Skip to content

Commit

Permalink
Updated README and info
Browse files Browse the repository at this point in the history
  • Loading branch information
Olen committed Aug 7, 2022
1 parent 2b2e077 commit 8050432
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 10 deletions.
58 changes: 49 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,56 @@
# Release
# Flower Card

# BREAKING CHANGES

>**Warning**
>
> **This card is about to be completely rewritten. Versions > 2.0.0 will *not* be compatible with the original plant integration in HA or with earlier releases of this integration.**

This fork of the flower-card depends on this patch to the internal Plant component:
https://github.com/Olen/homeassistant-plant

Instead of reading the max/min-values from the huge data-file, it gets the values from the plant entity.
Instead of reading the max/min-values from the huge data-file, it gets the values from the plant entity, using a websocket connection.

![](https://github.com/remkolems/lovelace-flower-card/blob/master/lovelace-flower-card_popup.png)
## Version 1

Version 1 of this card has been deprecated and requires Version 1 of https://github.com/Olen/homeassistant-plant

The rest of this readme describes Version 2 of this card

## Version 2

Several new sensors from the new version of the plant integration has been added to the card.

The card also now use websockets to retrieve extended information about the plants from the backend.

![image](https://user-images.githubusercontent.com/203184/183286657-824a0e7f-a140-4d8e-8d6a-387070419dfd.png)


* The flower card also handles both °C and °F

![image](https://user-images.githubusercontent.com/203184/181259071-58622446-3e24-4f93-8334-293748958bd2.png)

You can also select what bars you want to show for each card

![image](https://user-images.githubusercontent.com/203184/183286691-02294d6b-84cf-46e6-9070-845d00f24a14.png)

## Disclaimer
I looked into several forks of the original card https://github.com/thomasloven/lovelace-flower-card. Some forks were very interesting and I edited several of those source codes changes into my own new fork. Credits to those original authors.

## Dependencies
1. lovelace-card-tools (https://github.com/thomasloven/lovelace-card-tools)
3. Patched Plant sensor (https://github.com/Olen/homeassistant-plant)
2. Patched Plant sensor (https://github.com/Olen/homeassistant-plant)

## Instructions

### Install via HACS


[![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg?style=for-the-badge)](https://github.com/Olen/lovelace-flower-card/)

* Add this repo as a "Custom repository" with type "Lovelace"
* Click "Install" in the new "Home Assistant Plant" card in HACS

### Install manually

### Install manually
1: Download the file flower-card.js and add it to your /config/www folder in HA
Expand All @@ -32,18 +60,30 @@ I looked into several forks of the original card https://github.com/thomasloven/
3: Go to Configuration -> Lovelace Dashboards -> Resources -> press the + (lower right corner of screen) and add the following information:

```yaml
Url: /local/lovelace-flower-card/flower-card.js
Url: /local/flower-card.js
Resource type: JavaScript Module
```
![image](https://user-images.githubusercontent.com/45675902/80322223-ebd41880-8823-11ea-992d-7070d4197f8b.png)
4: Press *Create* afterwards to add the new resource.
5: Get flower images and extract to `www/images/plants/<species>.jpg`
### Setup card
6: Setup card
Add it as a custom card and select which bars you want to show on the card
```yaml
type: custom:flower-card
entity: plant.my_plant
show_bars:
- brigthness
- humidity
- moisture
- conductivity
- temperature
- dli
```
### Disclaimer
I looked into several forks of the original card https://github.com/thomasloven/lovelace-flower-card. Some forks were very interesting and I edited several of those source codes changes into my own new fork. Credits to those original authors.
2 changes: 1 addition & 1 deletion info.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
## Breaking Changes

This card will, from version 2.0.0, only work with version 2.0.0 or higher of https://github.com/Olen/homeassistant-plant/. Please [read this](https://github.com/Olen/homeassistant-plant/Version%202.md) carefully before upgrading.
This card will, from version 2.0.0, only work with version 2.0.0 or higher of https://github.com/Olen/homeassistant-plant/. Please read the README from that repository carefully before upgrading.

## Requires
1. [Lovelace card tools](https://github.com/thomasloven/lovelace-card-tools)
Expand Down

0 comments on commit 8050432

Please sign in to comment.