Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miflora #7

Open
mclaudiopt opened this issue Jun 21, 2019 · 10 comments
Open

miflora #7

mclaudiopt opened this issue Jun 21, 2019 · 10 comments

Comments

@mclaudiopt
Copy link

hello
is this card compatible with data comming from mi flora?

i have my sensor like this:

  • platform: miflora
    mac: xxxxxx
    name: Planta Garagem
    force_update: false
    median: 3
    monitored_conditions:
    • moisture
    • light
    • temperature
    • conductivity
    • battery
@mclaudiopt
Copy link
Author

hi there can someone please help me setting up my card? i would appreciate

@sn3ak
Copy link

sn3ak commented Jun 26, 2019

Don't create multiple issues for the same problem. You're just going to annoy people and not get help.

This is a BETA component. As such things will change, so the author most likely will not give you step by step instructions. You are expected to be knowledgeable in using custom components.

This requires a plant monitor, not a miflora sensor. Create one from your miflora sensors

Plant monitor

Feed that into this component and you should be closer to having it work.

@mclaudiopt
Copy link
Author

Hello
you are completly right. i apologize for the postings !
regarding the rest i already setupped the plant monitor
the problem that i have now is that i added this code:

image

my plant is correctly settupped :
image

may the problem be related to the fact that i did not made the conversion of the db ? i dont have a way to make it so i would kindly request if someone can post me the converted file for "ficus benjamina".
the values for this plant are:

min_moisture: 20
max_moisture: 60
min_battery: 15
min_temperature: 8
max_temperature: 32
min_conductivity: 350
max_conductivity: 2000
min_brightness: 2500
max_brightness: 35000

thanks a lot for the help.
i would like to contribute to other users also

@mclaudiopt
Copy link
Author

note: the custom component is installed like this:

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

i installed via HACS

@sn3ak
Copy link

sn3ak commented Jun 27, 2019

I won't share a database due to not knowing the legality of doing so. Your home assistant device has python, and is what I used to convert the database.

That said, here's the database entry you are requesting. I don't currently have the means to test it, but based on my database it should be accurate.

data.js:

'use strict';
const FlowerData =
{"ficus benjamina": ["Ficus benjamina", "ficus benjamina", "2500", "35000", "8", "32", "20", "60", "350", "2000"]}
;
export {FlowerData};

@mclaudiopt
Copy link
Author

thanks a lot. will try

@mclaudiopt
Copy link
Author

thanks a lot ...really something is not working but cannot understand what.
where all my config:
image

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

image

image

image

@sn3ak
Copy link

sn3ak commented Jun 27, 2019

/community_plugin/lovelace-flower-card/flower-card.js

X:\www\community\lovelace-flower-card
X:\www\community\lovelace-flower-card\data.js

I don't know anything about HACS yet, but to me those three things do not agree where your files exist. If I misread and you aren't using HACS, but added those files manually this still applies. Either change the /community_plugin/ references to /community/ or vice versa. With HACS you will want to match the

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

to wherever it downloaded the files automatically.

Here's where you need to use your browser's developer tools. Use Chrome / Firefox (maybe IE,etc) hit F12, go to network. reload your flower page, look at network, does the flower-card.js and other entries appear? do they say 200 for status? or 404?

@sn3ak
Copy link

sn3ak commented Jun 27, 2019

Actually, before you change things, look in your homeassistant log and see if it is giving any errors, if so please post anything that applies to the flower card

@Moonbase59
Copy link

@mclaudiopt Is it possible that you manually installed it into the "community" folder? I don’t have this in HACS.
If you manually install it, it (currently) must be in www/lovelace-flower-card, because flower-card.js has a hard-coded:

import {FlowerData} from '/local/lovelace-flower-card/data/data.js';

It also requires card-tools, which I installed using HACS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants