Fuly kiosk RESTful Command

Hi.
I try to use the Fuly kiosk text to speech in a restful command for few atutomations.

Single command work well:

rest_command:
  filter_cleaned:
    url: http://192.168.1.5:2323/?cmd=textToSpeech&text=xiaomi+purifier+filter,+is+now+clean&password=1234
    method: post

But i dont want to have many lines in my config.yaml so i tryto write a single rest_command for more text messages. So far i did not managed to make it work. No error in logs but also no voice in tablet
my code for “universal tts cmd”

  fully_tts:
    url: http://192.168.1.5:2323/?cmd=textToSpeech&password=1234
    method: POST
    payload: '{{payload}}'
    content_type:  'text/plain'

and i try to run the service with:

service: rest_command.fully_tts
data: 
  payload: "&text=welcome"

Home you guys can help me with this one.

{{ payload }} needs to be at the end of the URL.

My $0.02 is to do it as “…&text={{ payload }}” and only pass the text to be spoken to keep things cleaner…

Thanks you, yes, iw working:

  fully_tts_test:
    url: http://192.168.0.5:2323/?cmd=textToSpeech&password=1234&text={{payload}}
    method: POST
    payload: '{{payload}}'
    content_type:  'text/plain'
1 Like