Giter VIP home page Giter VIP logo

lovelace-text-input-row's Introduction

lovelace-text-input-row

A custom Lovelace text input row for use in entities cards This will only work for input_text entities.

Installation

With custom_updater

resources:
  - url: /customcards/github/gadgetchnnel/lovelace-text-input-row.js?track=true
    type: js

Manually

Download the lovelace-text-input-row.js and put it somewhere under config folder/www

resources:
  - url: local/path/to/file/lovelace-text-input-row.js?v=0.0.8
    type: js

Configuration example

- type: entities
  entities:
    - entity: input_text.announcement_text
      type: 'custom:text-input-row'
    - type: call-service
      name: ' '
      icon: 'mdi:voice'
      action_name: Announce It...
      service: script.send_annoucement

TextInputRow

lovelace-text-input-row's People

Contributors

gadgetchnnel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

lovelace-text-input-row's Issues

Problems with the new udpate (0.0.11)

Hi!

After I updated to the new version (0.0.11), all my tablets started to lag hard, I mean... 1 maximum 2 frames per second.
I use huawei, samsung and lenovo tablets, with fully kios browser, on the new HA version (2023.12.0).

After I have downgraded to a lower addon version, all it is working normally.

Any idea?

Thank you!

`input-text` entity not updated when pressing `enter`. How to update?

Thanks for this component, I'm testing it out to try and get an Amazon Echo notification based on string input via lovelace-text-input-row.

Everything works, the message is announced to the correctly input-select chosen Echo.

The input-select is prefilled with the text message. When I change this text and press enter, then click the button that kicks of the script, invariably the old text message is announced. The state/string of my input-select entity is never updated. How is this designed to work?

Relevant background:

  • Latest HA running on RPi4-4GB HASSIO
  • Your repo added via HACS

ui-resources.yaml

- url: /hacsfiles/lovelace-text-input-row/lovelace-text-input-row.js 
  type: js

(also tried with type: module; documentation from HACS state module but documentation from this repo states js(!))

my HA frontend view:

- title: '4'
  badges: []
  icon: 'mdi:ear-hearing'
  type: vertical-stack
  cards:
    - type: entities
      entities:
        - entity: input_text.alexattstext
          type: 'custom:text-input-row'
        - entity: input_select.alexattsselect
        - type: call-service
          name: ' '
          icon: 'mdi:voice'
          action_name: Speak
          service: 
            script.sayit

definiton of input_text and input_select

In each of their respective sections:

alexattsselect:
  name: Alexa Speak
  options:
    - media_player.echo_bedroom
    - media_player.echo_laboratory
    - media_player.echo_workshop
    - media_player.echo_kitchen
    - media_player.echo_elisabeth
    - media_player.echo_auto
    - media_player.echo_mini
    - media_player.upstairs
    - media_player.bedroom
    - media_player.sonos_upstairs
    - media_player.sonos_bedroom
    - media_player.the_little_one
alexattstxt:
  name: AlexaTTStext

Script

sayit:
  alias: 'Say it'
  sequence:
    - service: notify.alexa_media
      data_template:
        target: "{{ states.input_select.alexattsselect.state }}"
        data:
          type: announce
          method: speak
        message: '
          {{ states("input_text.alexattstxt") }}'

How to get it to work?

Polymerwill be deprecated in 2023.5

would it be possible to update the card to use Lit?

tiny as your card may be, its a very useful and still unique card....

hope you can make it.
thanks

Error after Update HA to 2023.11.x

Hi,

after Update HA core to 2023.11.0 the input-row don't show

My Card-Code:

      - type: entities
        entities:
          - entity: input_text.essen_fertig_xx
            type: custom:text-input-row
          - type: call-service
            name: ' '
            icon: mdi:voice
            action_name: Essen in ...
            service: script.essen_in_auslosen

No error in the HA log.

Restore to HA core 2023.10.x shows the input-row

Doesn't exist?

Hello;

I just installed your text-input-row, it doesn't seem to work.

Screen Shot 2021-03-18 at 1 07 26 AM

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.