Skip to content
The Home Assistant custom component uses Flower Care™ Smart Monitor to retrieve flower information (http://www.huahuacaocao.com/product).
Python TypeScript
Branch: master
Clone or download
Renato Rossi
Renato Rossi Minor bug fix
Latest commit 3d344b2 Oct 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.md.images
custom_components/huahuacaocao Minor bug fix Oct 4, 2019
dist Minor bug fix Oct 1, 2019
src
.gitignore Add flower care lovelace card Oct 4, 2019
CHANGELOG.md
LICENSE Initial stable version Sep 23, 2019
README.md Minor bug fix Oct 4, 2019
hacs.json Initial stable version Sep 23, 2019
info.md Minor bug fix Oct 1, 2019
package.json
tsconfig.json Add flower care lovelace card Oct 4, 2019

README.md

Xiaomi mi flora and Flower care integration

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.

hacs_badge

License Total alerts Language grade: Python

BuyMeCoffee

Need to register to Flower Care™ Smart Monitor App on Google Android devices or on Apple iOS devices to use the component.

Home Assistant Plant monitor extended component, integrated with Flora care application plant informations.

Manual installation

  1. Using the tool of choice, open the directory (folder) of your HA configuration (there you can find configuration.yaml).
  2. If you do not have a custom_components directory (folder) there, you need to create it.
  3. In the custom_components directory (folder) create a new folder called huahuacaocao.
  4. Download all the files from the custom_components/huahuacaocao/ directory (folder) in this repository.
  5. Place the files you downloaded in the new directory (folder) you created.

Configuration

  1. Install your preferred Flower Care™ Smart Monitor App
  2. Register your credentials in App, the same credentials will be used to configure the huahuacaocao integration component

Component variables

username

(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)

Examples

huahuacaocao:
  username: !secret huahuacaocao_user
  password: !secret huahuacaocao_password
  region: EU

Sensor variables

plant_id

(string)(Required)
Plant alias. You can find it in the Plant Archive panel of the Flower Care™ Smart Monitor App

Name

(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.

Examples

  - 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

Integration Examples

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

Home Assistant plant panel

Lovelace Configuration

Import the card using:

resources:
  - url: /local/hass-xiaomi-mi-flora-and-flower-care/hass-xiaomi-mi-flora-and-flower-care.js
    type: js

Card variables

Name

(string)(Required)
Name to use in the header.

entity

(list)(Required)
huahuacaocao sensor (The huahuacaocao sensor are defined as 'plant')

Examples

type: custom:xiaomi-mi-flora-and-flower-care-card
name: "Zamioculcas Zamiifolia"
entity: plant.plant_zamioculcas_zamiifolia

or

type: custom:card-modder
card:
  type: custom:xiaomi-mi-flora-and-flower-care-card
  name: "Zamioculcas Zamiifolia"
  entity: plant.plant_zamioculcas_zamiifolia
style:
  background-repeat: no-repeat
  background-color: rgba(50,50,50,0.3)
  background-size: 100% 300px
  border-radius: 20px
  border: solid 1px rgba(100,100,100,0.3)
  box-shadow: 3px 3px rgba(0,0,0,0.4)

Home Assistant lovelace card

You can’t perform that action at this time.