Code Monkey home page Code Monkey logo

simple-button-entity-row's Introduction

simple-button-entity-row

This is a repo with Home Assistant custom ui card simple-button-entity-row.

This card is used inside entities. It can show icon, name and a button with some text. Pressing the button makes the service call.

Installation

There are several ways, you can add this card to your Home Assistant.

Manual installation

Installation with HACS

If you use HACS, you can install this card with HACS (but HACS is not required, if you don't use HACS you can install this card using the steps described in the previous section)

To install this card with HACS just use the standart HACS way to install cards from the custom GitHub repository.

Configuration

When you have this card installed in your Home Assistant you can use it. Add to your lovelace ui:

- type: 'custom:simple-button-entity-row'
  icon: mdi:car
  name: My car
  button_text: Start engine
  tap_action:
    action: call-service
    service: system_log.write
    service_data:
      message: Starting engine

All the fields are optional, but without specifing tap_action there is no much sence in this card.

Examples

title: Home
views:
  - path: default_view
    title: Home
    badges: null
    cards:
      - type: entities
        entities:

          - type: 'custom:simple-button-entity-row'

          - type: 'custom:simple-button-entity-row'
            icon: mdi:brush

          - type: 'custom:simple-button-entity-row'
            icon: mdi:flower-outline
            name: Flower
            button_text: Water
            tap_action:
              action: call-service
              service: system_log.write
              service_data:
                message: Watering flower

          - type: 'custom:simple-button-entity-row'
            icon: mdi:car
            name: My car
            button_text: Start engine
            tap_action:
              action: call-service
              service: system_log.write
              service_data:
                message: Starting engine

simple-button-entity-row's People

Contributors

bessarabov avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

yourstruly2095

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.