This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.

How to capture text without voice input?

k1sk1s Member
edited April 2018 in Questions & Help
How can I capture text for Homey to use in a flow?

I have the LG webOS App installed and I can successfully display a specific message on the screen of my LG OLED TV by typing that message into the flow in the then... section specifying like this:



but how can I have homey prompt me for the message to use in the flow  - i.e. pop up a text entry box on my phone?

Comments

  • k1sk1s Member
    Edit: changed the title - hopefully somebody can help
  • JPeJPe Member
    (probably) add the wanted text to a Tag and place the Tag in the Card where you normally place the Text
  • k1sk1s Member
    JPe said:
    (probably) add the wanted text to a Tag and place the Tag in the Card where you normally place the Text
    Thanks, is there a way to 'add the wanted text to a Tag' on the fly - in other words, without having to edit a flow each time the text changes.
  • k1sk1s Member
    Thanks, I don't read Dutch but I'm guessing from the microphone icon that the flow example you've kindly drawn is using voice input, meaning you have to be near homey and speak out loud. Is there a way to capture the text using the phone without speaking, like some kind of pop up text box? Or the 'chat' thing in the preview? (I haven't worked out what that does/how it works)
  • JPeJPe Member
    Sorry, my Homey is Dutch, but the icons are international, 
    the "old" smartphone app ( I use android V 2.4.7 - Build 77 ) is listening to your voice ( see the curve moving on the lower part of your screen ), so you can do the speak command: OK Homey  ..........
    In another flow you can let Homey react on a logic card "a variable changed"

    this Flow can start whatever you need
    You know http://192.168.2.22/manager/speech-input/     (replace IP with your Homey IP)
    so you can see what Homey is hearing 
    there is also http://192.168.2.22/manager/speech-output/  experiment with them, it's fun...
  • k1sk1s Member
    Thanks, is there a way to get homey to 'hear' text from the chat text, or other text box? Or does 'speech' input actually have to be through a microphone only?
  • JPeJPe Member
    In the "speech-output" on the bottom line, you can type a sentence that Homey than will speak, you also can Chat with Homey via Google "Messenger"
  • k1sk1s Member
    I must be doing something wrong.

    JPe said:
    ...
    You know http://192.168.2.22/manager/speech-input/     (replace IP with your Homey IP)
    so you can see what Homey is hearing 
    there is also http://192.168.2.22/manager/speech-output/  experiment with them, it's fun...

    I typed http://192.168.2.22/manager/speech-input/ into a browser (except I used my Homey IP), but it didn't load a page or anything.

    JPe said:
    ...you also can Chat with Homey via Google "Messenger"
    Sorry if it's a dumb question, but what exactly do you mean by Google Messenger? (I know of Google Hangouts, but couldn't find anything here about Messenger or much about Google except Google Home, which I assume means speaking to it again)
  • JPeJPe Member
    edited April 2018


    For me, this works (Niet veilig means: Not Secure, but it's local so no problem)
    you must be logged in into your Homey via the browser.
    Sorry Messenger is "Facebook Messenger" the text "fbmessenger: slaapkop" comes from my mobile-phone app Facebook Messenger,
    and there seems to be also a possibility via Telegram, don't know anything about that, search the forum for that, and the Homey App:
    https://apps.athom.com/app/org.telegram.api.bot
    https://www.athom.com/en/support/KB000049/
  • JPeJPe Member
    the Chat function in the New Homey Mobile-phone App is working the same way as Facebook Messenger.
  • k1sk1s Member
    k1s said:

    I typed http://192.168.2.22/manager/speech-input/ into a browser (except I used my Homey IP), but it didn't load a page or anything.

    Got that sorted thanks - it turns out I wasn't logged in to Homey first.

    Thanks for your help, I've been experimenting.

    I set this simple flow:



    'Something was said containing' and then specify "Living Room TV" as the trigger text, then I logged in to my.homey, type something in at into myip/manager/speech-input/ like "Somebody is at the door" and send that to the TV in a card in the when column, with the text tag.

    On the TV is displayed "living room tv somebody is at the door". 

    Have you any idea how I can strip out the trigger text before displaying the message on the TV [or for using the text elsewhere] - i.e. so that in this case the text displayed is simply: "Somebody is at the door"?

    I've got a feeling the answer is in creating a variable and some syntax, but I can't see how that works in Homey.

  • JPeJPe Member

    probably you can use this, the first card is "something was said" and the second "contains", this way only the received text is shown.

    These are the standard built-in logic cards, when you use the https://apps.athom.com/app/net.i-dev.betterlogic  App, there are more possibilities, but I don't have much experience with that.
Sign In or Register to comment.