MiFlora Sensor Plant Database

Status: in principle solved

Does the lovelace-flower-card still work for you all (Home Assistant Core 0.106.x series)?

Whatever I do I can’t get it to work…no clue how to debug this one… any help is appreciated.

  • I’m using Plantgateway to populate data from the
    various plantsensors via the Mosquitto broker (Hassio Addon) to HA. Working flawlessly.
  • Added the following to ui-lovelace.yaml
  - type: module
    url: /community_plugin/lovelace-card-tools/card-tools.js
  - type: module
    url: /local/lovelace-flower-card/flower-card.js

and

    cards:
      - cards:
          - entity: plant.spathiphyllum
            species: spathiphyllum 'bingo cupido'
            type: 'custom:flower-card'
          - entities:
              - sensor.spathiphyllum_moisture
              - sensor.spathiphyllum_temperature
              - sensor.spathiphyllum_conductivity
              - sensor.spathiphyllum_brightness
              - sensor.spathiphyllum_battery
            type: glance
        type: 'custom:vertical-stack-in-card'
  • I have the following file data structure within the www folder:
    image
    data.js is created based on the command

python3 convert.py PlantDB_5335_U0.csv > data.js

  • This is the output in HA (only the entities are shown not the flower-card):
    image

Not quite what I expected versus what I thought I would get such as:
2019-06-29 11_33_47-Home Assistant

Resolved
Well, that was utter unclear… the following is a prerequisite → Plant Monitor - Home Assistant

ui-lovelace.yaml

    cards:
      - entity: plant.dieffenbachia_maculata
        species: dieffenbachia maculata
        type: 'custom:flower-card'
      - entity: plant.spathiphyllum_bingo_cupido
        species: spathiphyllum 'bingo cupido'
        type: 'custom:flower-card'
      - entity: plant.howea_forsteriana
        species: howea forsteriana
        type: 'custom:flower-card'
      - entity: plant.dypsis_lutescens
        species: dypsis lutescens
        type: 'custom:flower-card'
      - entity: plant.pachira_macrocarpa
        species: pachira macrocarpa
        type: 'custom:flower-card'

configuration.yaml

plant: !include plants.yaml

plants.yaml

dieffenbachia_maculata:
  sensors:
    moisture: sensor.dieffenbachia_camilla_moisture
    battery: sensor.dieffenbachia_camilla_battery
    temperature: sensor.dieffenbachia_camilla_temperature
    conductivity: sensor.dieffenbachia_camilla_conductivity
    brightness: sensor.dieffenbachia_camilla_brightness

dypsis_lutescens:
  sensors:
    moisture: sensor.areca_dypsis_lutescens_moisture
    battery: sensor.areca_dypsis_lutescens_battery
    temperature: sensor.areca_dypsis_lutescens_temperature
    conductivity: sensor.areca_dypsis_lutescens_conductivity
    brightness: sensor.areca_dypsis_lutescens_brightness

howea_forsteriana:
  sensors:
    moisture: sensor.howea_forsteriana_moisture
    battery: sensor.howea_forsteriana_battery
    temperature: sensor.howea_forsteriana_temperature
    conductivity: sensor.howea_forsteriana_conductivity
    brightness: sensor.howea_forsteriana_brightness

pachira_macrocarpa:
  sensors:
    moisture: sensor.pachira_aquatica_moisture
    battery: sensor.pachira_aquatica_battery
    temperature: sensor.pachira_aquatica_temperature
    conductivity: sensor.pachira_aquatica_conductivity
    brightness: sensor.pachira_aquatica_brightness

spathiphyllum_bingo_cupido:
  sensors:
    moisture: sensor.spathiphyllum_moisture
    battery: sensor.spathiphyllum_battery
    temperature: sensor.spathiphyllum_temperature
    conductivity: sensor.spathiphyllum_conductivity
    brightness: sensor.spathiphyllum_brightness

Almost there. Result with pop-up:
image

Update 3 April 2020
Sorry folks I completely forgot to update this post due to Corona/Covid. I concluded - based on the issue history - that the original author wasn’t really available anymore for additional changes to his card. So I looked into several github forks of this particular card. Some forks were very interesting and therefore I edited those changes back into my own forked card of the original card.

The above screenshot with the popup is the result of the slicing and dicing of several pieces of code. Credits to them.

You can find my fork of this card at: