MiFlora Sensor Plant Database

Ahhhh you used a glance card and gave it no title. I used the lovelace plant card and if you put it into a vertical stack ist looks like this. I wanted to remove the title “Goldfruchtpalme”:

image

I have the same the issue with HASS 0.99.3
My Lovelace config:

- url: /community_plugin/lovelace-flower-card/flower-card.js
  type: module

Also I’ve check data.js file, format is correct. But the log show:
" …local/lovelace-flower-card/data/data.js:1:1 Uncaught SyntaxError: Invalid or unexpected token"

Are there any solution ?

Check the js, because at 99% there is something there that is not correct…

I have just made another post about Miflora and then found this thread. I was wondering if anyone could help.

I was going to go down the route of an esp32 to get information from my plant sensors and transmit via MQTT to HA. I thought as I could not find Xaiomi sensors I would buy Vegtrug ones. These sensors are recognised by the Xaiomi flower care app so thought I would be ok but my miflora sensor and card only picks up battery information?

Anyone know if I use this flora/flora at master · sidddy/flora · GitHub or any of the tools on here I could get the information from my sensors into HA somehow?

link to my original question thread too, sorry:

have you tried plantgateway? https://github.com/ChristianKuehnel/plantgateway

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:

3 Likes

@rlems Great! How did you get the pop-up?

hey @jones can you share your data.js file again the previous link has expire i have no idea how to use python thank you in advance

Sure. data.js + images… here you go. Link is valid for 7 days: https://send.firefox.com/download/f860f70057d4dca4/#h5lY7rztXoNwIl-_ZK3hrg

it says link has expired

Guess firefox send is not the best solution to publicly provide files. I’ll send you a link as DM.

I like it too please :wink:
@jones

https://send.firefox.com/download/aa4de0c80f4e01d0/#mr-x_0oFDqBxndVcHMR7RQ

1 Like

Thank you for shareing

Thank you so much, muchas gracias

How did you manage to get the pop-up ? Could you please share your configuration.yaml and your lovelace.yaml to understand properly the way you go ? I can’t figure out :frowning:

Oops sorry to all, completely forgot to update my post due to Corona/Covid19 rampage.

What have I done
I’ve 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.

You can find my fork of this card at:

My original post is now also up to date: MiFlora Sensor Plant Database

3 Likes

I can’t add the card. I always get: Error: Custom element not found: flower-card

Guys, please share the file on platform that doesn’t expire. :slightly_smiling_face:
Im looking for it, I can upload to permanent server.

With the latest version, it works!!!