Giter VIP home page Giter VIP logo

person-entity-card's Introduction

Person

Build

Person is a plugin which allows users to add "Person" entity in order to show the location with a beautiful integration.

Preview Image

Install

This card is available in HACS (Home Assistant Community Store)

Manual install

  1. Download and copy person-entity-card.js from the latest release into your config/www directory.
  2. Add a reference to person-entity-card.js inside your ui-lovelace.yaml or through the raw config editor interface.
resources:
  - url: /hacsfiles/person-entity-card/person-entity-card-bundle.js
    type: module

CLI install

  1. Move into your config/www directory
  2. Download person-entity-card.js
$ wget https://github.com/gerardag/person-entity-card/releases/download/v0.5.5/person-entity-card-bundle.js
  1. Add a reference to person-entity-card.js inside your ui-lovelace.yaml or through the raw config editor gui.
resources:
  - url: /hacsfiles/person-entity-card/person-entity-card-bundle.js
    type: module

Using the card

Card options

Name Type Default Description
type string required custom:person-entity-card
entities object required The entity_id from an entity or entities you want to track.
title string optional Small title above the entities.
showAtHome boolean false You can force to show people when they are home.

Example usage

You need to add the card into your view .yaml file. The code below shows how to use within multiple persons:

- type: "custom:person-entity-card"
  entities:
    - person.gerard
    - person.bar
    - person.foo

Advanced usage

You can force to show cards although you are at home. To do that you need to add showAtHome set to true in card configuration. Also, you can add a title for your cards group:

- type: "custom:person-entity-card"
  showAtHome: true
  title: Pin Pals
  entities:
    - person.gerard
    - person.bar
    - person.foo

Problems

If you are getting "Custom element doesn't exist: person-entity-card", or are running an older browser try replacing type: module with type: js in the resource reference in your ui-lovelace.yaml or in the raw config editor.

License

This project is under the MIT license.

person-entity-card's People

Contributors

gerardag avatar doloresha avatar

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.