The Home Assistant custom component uses Flower Care™ Smart Monitor to retrieve flower information (http://www.huahuacaocao.com/product). HuaHuaCaoCao means flowers & Plants in Chinese.
configuration.yaml
).custom_components
directory (folder) there, you need to create it.custom_components
directory (folder) create a new folder called huahuacaocao
.custom_components/huahuacaocao/
directory (folder) in this repository.huahuacaocao
integration componentusername
(string)(Required)
The username to use with your Flower Care™ Smart Monitor App.
password
(string)(Required)
The corresponding password in yourFlower Care™ Smart Monitor App.
region
(string)(Optional)
Your country code (two-letter)
huahuacaocao:
username: !secret huahuacaocao_user
password: !secret huahuacaocao_password
region: EU
plant_id
(string)(Required)
Plant alias. You can find it in the Plant Archive panel of the Flower Care™ Smart Monitor AppName (string)(Required)
Name to use in the frontend.sensors (list)(Required)
List of sensor measure entities.moisture
(string)(Optional)
Moisture of the plant. Measured in %. Can have a min and max value set optionally.battery
(string)(Optional)
Battery level of the plant sensor. Measured in %. Can only have a min level set optionally.temperature
(string)(Optional)
Temperature of the plant. Measured in degrees Celsius. Can have a min and max value set optionally.conductivity
(string)(Optional)
Conductivity of the plant. Measured in µS/cm. Can have a min and max value set optionally.brightness
(string)(Optional)
Light exposure of the plant. Measured in Lux. Can have a min and max value set optionally.
- platform: huahuacaocao
plant_id: "zamioculcas zamiifolia"
name: "Plant Zamioculcas Zamiifolia"
sensors:
moisture: sensor.zamioculcas_zamiifolia_moisture
battery: sensor.zamioculcas_zamiifolia_battery
temperature: sensor.zamioculcas_zamiifolia_temperature
conductivity: sensor.zamioculcas_zamiifolia_conductivity
brightness: sensor.zamioculcas_zamiifolia_light_intensity
huahuacaocao:
username: !secret huahuacaocao_user
password: !secret huahuacaocao_password
region: EU
sensor:
- platform: miflora
mac: 'XX:XX:XX:XX:XX:XX'
name: Zamioculcas Zamiifolia
force_update: true
median: 3
monitored_conditions:
- moisture
- light
- temperature
- conductivity
- battery
- platform: huahuacaocao
plant_id: "zamioculcas zamiifolia"
name: "Plant Zamioculcas Zamiifolia"
sensors:
moisture: sensor.zamioculcas_zamiifolia_moisture
battery: sensor.zamioculcas_zamiifolia_battery
temperature: sensor.zamioculcas_zamiifolia_temperature
conductivity: sensor.zamioculcas_zamiifolia_conductivity
brightness: sensor.zamioculcas_zamiifolia_light_intensity
Home Assistant Flora Panel
To add , perform the following:
In the Home Assistant UI, go to Configuration >> Lovelace Dashboards >> Resources
tab
Click the +
button
Under url
, copy and paste the following URL:
/hacsfiles/hacs-card-for-xiaomi-mi-flora-and-flower-care/hacs-card-for-xiaomi-mi-flora-and-flower-care.js
Under Resource Type, select 'Javascript Module'.
If you are using YAML to manage your Lovelace UI, import the card using:
resources:
- url: /hacsfiles/hacs-card-for-xiaomi-mi-flora-and-flower-care/hacs-card-for-xiaomi-mi-flora-and-flower-care.js
type: js
Name | Type | Requirement | Default | Description |
---|---|---|---|---|
type | string | Required | Card type must be custom:xiaomi-mi-flora-and-flower-care-card |
|
name | string | Optional | Card name shown on top | |
zone_name | string | Optional | Zone name, where the flower is located | |
display | string list | Optional | Ordered list of sessions. Valid values: info, maintenance |
|
entity | string | Optional | huahuacaocao plant sensor name |
maintenance
session (without sensors)type: custom:xiaomi-mi-flora-and-flower-care-card
name: "Zamioculcas Zamiifolia"
entity: plant.plant_zamioculcas_zamiifolia
display:
- maintenance
info
and maintenance
session (without sensors)type: custom:xiaomi-mi-flora-and-flower-care-card
name: "Zamioculcas Zamiifolia"
zone_name: "Kitchen"
display:
- info
- maintenance
info
and maintenance
session (with sensors)type: custom:xiaomi-mi-flora-and-flower-care-card
name: "Zamioculcas Zamiifolia"
entity: plant.plant_zamioculcas_zamiifolia
display:
- maintenance
type: custom:mod-card
card:
type: custom:xiaomi-mi-flora-and-flower-care-card
name: "Zamioculcas Zamiifolia"
entity: plant.plant_zamioculcas_zamiifolia
style:|
ha-card {
--primary-text-color: #FFFFFF;
--secondary-text-color: #FFFFFF;
--paper-item-icon-color: #FFFFFF;
--table-tr-td-border-bottom: #FFFFFF;
--banner-background: rgba(50,50,50,0.75);
--content-background: rgba(50,50,50,0.75);
}