Giter VIP home page Giter VIP logo

Comments (7)

jonkristian avatar jonkristian commented on September 28, 2024

Have you tried opening that url in your browser? It should be a simple get request, so you should be able to debug through that. I have a doorbell set up like this:

rest_command:
  doorbell:
    url: "http://192.168.1.149:8735/api/v1/system/doorbell/chimes/dingdong"
    method: get
    payload: "volume=35"

from casatunes.

bigmack48 avatar bigmack48 commented on September 28, 2024

Thanks that work.

I new to Home assistant and now try to fiqure out how to pass values to rest api.
I would appreciate if you can help me.

rest_command:
doorbell:
url: "http://xxx.xxx.x.xxx:8735/api/v1/system/tts/input/This is a test/zones/Study?"
method: get
payload: "ssml=false&gender=FEMALE&volume=35"

In the Home Assistant Automation Page: under actions: Call service: service: rest_command.doorbell
how do I pass replacement values to the rest_command for Text Message, Zones, Gender, Volume.

Thanks

Greg

from casatunes.

jonkristian avatar jonkristian commented on September 28, 2024

@bigmack48 Just wanted to let you know that in master there are three new services available. search, tts and doorbell. If you want to test them out you need to activate beta in HACS. Seems to work pretty well but needs some testing before putting it out as stable. It should make things easier and avoid having to resort to rest_command directly.

from casatunes.

bigmack48 avatar bigmack48 commented on September 28, 2024

from casatunes.

jonkristian avatar jonkristian commented on September 28, 2024

You can go to CasaTunes in HACS, click the three dots and then redownload, in the popup you need to click show beta versions and then select master. If you are installing from source, just download the master repo.

from casatunes.

bigmack48 avatar bigmack48 commented on September 28, 2024

from casatunes.

jonkristian avatar jonkristian commented on September 28, 2024

Hello. The best way to see an example would be to go to "Developer Tools" > "Services" and search for casatunes, there you will find out how to use the services and you can also go to yaml mode to extract the yaml.

from casatunes.

Related Issues (9)

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.