Just made a slight tweak to this to allow the label to be overridden the same as the standard one. Previously it was just using the friendly name of the input_text entity but now you can use something like this to change it:
- type: entities
entities:
- entity: input_text.announcement_text
name: Text to Announce
type: 'custom:text-input-row'
Although your card appears, when I edit I get the following message
âYour config is not supported by the UI editor: Expected a value of type {entity,name,icon} | entity-id for entities.0.type but received "custom:text-input-row".
Falling back to YAML editor.â
what else needs to be set up to use this? do you have some config.yaml examples? I want to use this to send specific tts messages to specific alexaâs in the house.
alexa_whisper:
name: Whisper?
initial: off
icon: mdi:volume-medium
input_text.yaml
announcement_text:
icon: 'mdi:voice'
input_select.yaml
announce_to:
name: "Where would you like to send the announcement?"
options:
- Everywhere
- Living room
- Adrian's room
- Ben's room
- Kayla's room
- Kylee's room
initial: Everywhere
I really like idea of ââbeing able to send a tts from lovelace to a mobile phone. The option to send tts to any mediaplayer for me is easier with mini media player as a not programming expert user.
I would like to know if this could or something similar because it doesnât work for me:
type : entities
entities :
- entity: input_text.announcement_text
type: 'custom:text-input-row'
- type: call-service
icon: 'mdi:voice'
action name: Announce It..
service: notify.mobile_app_pixel_5
data:
message: TTS
title : {{ states ('input_text.announcement_text') }}
Any help would be very appreciated, thanks in advance
Iâm getting an Unable to find referenced entities input_text.gcode when I execute the above card. All the mqtt info is correct (it executes the command when I hard code it in).
Do I need to somehow export input_text.gcode to make it available to the other entity?
I have lovelace-text-input-row installed via HACS and properly listed in my resources.
Steven, great component, Iâm using it in my remote for Android box.
Anyway, main intention is to use this from phone, Android companion app, not from PC, but unfortunatelly, in Android app, you have to pres ENTER after text typing to update state of input_text.entity. Only after that, my command from âSendâ button will work.
It is different situation from PC browser - state for input_text.entity is updated as soon as Iâm typing, but as said, my intention is to use this from phone, not from PC
Does anybody know some cheat/hack/tweak, which can help to skip pressing keyboard ENTER in Android app?
Iâve overcome this challenge by setting hold action instead of tap action. So you have to press and hold the send button but it works on Android without having to do anything extra.
@JOHLC : So sad, this will also be boring, to hold button instead of tap it
Regarding SEND button on the right end, this was accomplished with custom button-card. I donât know did you already heard for this custom component (it is pretty famous), but if not - you need to install it firstly from HACS or manually. Afterwards, you can use code below for lovelace, I pulled only the part related with input-text-row and send button:
Never used this before, planning to try it in future, but I guess that you can go with lovelace-card-mod.
Alternatively, dirty hack, you can add empty and transparent button-card without action, at the beginning of the line.
This custom uses Polymer and Polymer will be deprecated in Home Assistant 2023.5. Version 2023.4 raises a warning about it. It would be great if the below issue would be resolved:
To be honest, this card is no longer needed. The built input_text row was overhauled at some point and it now takes up a full entities card row.
I was able to ditch this card for the built in card and it looks the same. There is small space to the left that holds an icon, but for the most part the input for it takes up 90% of the width instead of the old 30% that it used to be.
I urge others to just switch to the built in card.