Coder Social home page Coder Social logo

miflora-card's Introduction

hacs_badge

MiFlora Card

A Home Assistant Lovelace card to report MiFlora sensors

miflora-card

Options

Name Type Requirement Description
type string Required custom:miflora-card
title string Required Name of the plant being monitored
image string Required Path to an image of the plant being monitored
min_moisture integer Optional Minimum moisture content for this plant
max_moisture integer Optional Maximum moisture content for this plant
min_conductivity integer Optional Minimum conductivity reading for this plant
min_temperature integer Optional Minimum temperature for this plant
entities list Required A list sensors to be monitored

Entities

Name Type Requirement Description
entity string Required Entity ID
type string Required Type of entity
name string Optional Custom name if you want to change it

Installation

Use HACS or follow this guide

resources:
  - url: /hacsfiles/lovelace-miflora-card/miflora-card.js
    type: js
  1. Add a custom card in your ui-lovelace.yaml
- type: custom:miflora-card
  title: 'Calathea Zebrina'
  image: images/calathea-zebrina.jpg
  min_moisture: 15
  max_moisture: 60
  min_conductivity: 350
  min_temperature: 12
  entities:
  - entity: sensor.miflora_1_moisture
    type: moisture
  - entity: sensor.miflora_1_light_intensity
    type: intensity
  - entity: sensor.miflora_1_temperature
    type: temperature
  - entity: sensor.miflora_1_conductivity
    type: conductivity
    name: Fertility
  - entity: sensor.miflora_1_battery
    type: battery

miflora-card's People

Contributors

lbouriez avatar olen avatar rodbr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

miflora-card's Issues

Hide card if no issue detected

Not sure where to put so I put here.

Is it possible to hide the card if the monitored plant doesn't need any attention (none of monitored values has left min/max range). Just to make interface bit tidy and reduce clutter.

'install' is deprecated, use 'async_install' instead

every time I'm trying to install it i get error

Log Details (WARNING)
Logger: hacs.repository.plugin.RodBr.miflora-card
Source: custom_components/hacs/repositories/helpers/methods/installation.py:17
First occurred: 7:35:44 PM (1 occurrences)
Last logged: 7:35:44 PM

'install' is deprecated, use 'async_install' instead

trying to install version v1.3.7

im running
HassOS 4.10
Home Assistant 0.110.6
Supervisor 227

Crop Image to Square

Would it be possible to crop the image to square instead of resizing by skewing the proportions? I realize that this adds a level of complexity as you would need to specify what area to crop.

use name

would it be possible to add name for example?
it would be great to have your functions but beeing able to transform in samething like this:^

image

Need improvements

Hi there.

Thank you for this card

Could you please improve it :) with ALL the min/max options. Still miss : min/max illumiance, max conductivity, max temperature

Could you also add the min/max on the card on each line, to have a complete visual information. Acutally the red number says it's too high or too low, but we don't know the gap

Thnak's

Uncaught TypeError: config.entities[i].split is not a function

2021-09-18 12:54:44 ERROR (MainThread) [frontend.js.latest.202108300] http://hassio.local:8123/hacsfiles/miflora-card/miflora-card.js?hacstag=197715418010:58:46 Uncaught TypeError: config.entities[i].split is not a function
2021-09-18 12:54:44 ERROR (MainThread) [aiohttp.web] Forbidden
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/http/static.py", line 30, in _handle
raise HTTPForbidden()
aiohttp.web_exceptions.HTTPForbidden: Forbidden

Can you please create a release?

It seems that HACS is picking up the only release version, which is not matching the configuration in this repo. Maybe if you created a release, everyone would get a working version via HACS ;)

Read values from plant domain

It would be nice to specify one entity instead of each and every entity, since HA support the plant domain.

plant:
  ficus:
    sensors:
      moisture: sensor.plant_ficus_moisture
      conductivity: sensor.plant_ficus_conductivity
      brightness: sensor.plant_ficus_brightness
      temperature: sensor.plant_ficus_temperature
      battery: sensor.plant_ficus_battery
    min_moisture: 20
    max_moisture: 60
    min_conductivity: 350
    max_conductivity: 2000
    min_brightness: 2500
    max_brightness: 35000
    min_temperature: 8
    max_temperature: 32
    min_battery: 15

lovelace:

- type: custom:miflora-card
  title: 'Ficus microcarpa'
  image: images/ficus_microcarpa.jpg
  plant: plant.ficus

Custom card not showing up

Hi guys,

I am on 0.111.3 and i get no error just get a blank card, please find my config below.

  • title: Plants
    path: plants
    panel: false
    badges: []
    cards:
    • type: 'custom:miflora-card'
      title: Ponytail Palm
      image: images/ponytailpalm.jpg
      min_moisture: 15
      max_moisture: 60
      min_conductivity: 350
      min_temperature: 12
      entities:
      • entity: sensor.xiaomi_miflora_moisture
        type: moisture
      • entity: sensor.xiaomi_miflora_illuminance
        type: intensity
      • entity: sensor.xiaomi_miflora_temperature
        type: temperature
      • entity: sensor.xiaomi_miflora_soil_conductivity
        type: conductivity
        name: Fertility

Line spacing

Hi,

Nice lovelace card! Can the spacing be made the same as other cards (currently it looks a little squashed up), perhaps as an option?

Image not shown

Every possible place where i put this image it get me an 404 error.
any suggestion what i can do?
thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.