Comments (7)
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.
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.
@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.
from casatunes.
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.
from casatunes.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from casatunes.