Coder Social home page Coder Social logo

plant-card's Introduction

Plant Card

A Home Assistant Lovelace card to report MiFlora plant sensors based on the HA Plant Card

plant-card

Options

Name Type Default Description
type string Required custom:plant-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

Installation

  1. Install the plant-card component by copying plant-card.js to <config directory>/www/plant-card.js

  2. Link plant-card inside your ui-lovelace.yaml

resources:
  - url: /local/plant-card.js
    type: js
  1. Add a custom card in your ui-lovelace.yaml
- type: custom:plant-card
  title: 'Calathea Zebrina'
  image: images/calathea-zebrina.jpg
  min_moisture: 15
  max_moisture: 60
  min_conductivity: 350
  min_temperature: 12
  entities:
  - moisture:sensor.plant_1_moisture
  - intensity:sensor.plant_1_light_intensity
  - temperature:sensor.plant_1_temperature
  - conductivity:sensor.plant_1_conductivity
  - battery:sensor.plant_1_battery

plant-card's People

Contributors

digi-ghost avatar rodbr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

plant-card's Issues

"state" error

I have an error Home Assistant 0.84.6
plant-card.js:68:41 Uncaught TypeError: Cannot read property 'state' of undefined

Entity string might be mistakenly understood as a key:value object

Hey mate,

Thank you so much for your work. This card is really great. I've actually missed something like this for a while.
But I do have a small concern about the configuration.
Considering that hass works with YAML files and the config for this card contains lines like - moisture:sensor.plant_1_moisture, one (like me) might mistakenly believe that that's a key: value object, which is not. In the code that's actually treated as a whole string. Maybe, to clear up confusion, it can be either specified really visible in the readme file that those are array of strings or be treated as a key:value object in the code.
Just an idea, to prevent other people to loose a few hours trying to understand why the card is not working, lol.

Thanks

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.