Author Topic: Can I convert speech to a variable for use with Hubitat Maker API?  (Read 2059 times)

0 Members and 1 Guest are viewing this topic.

Tom_G_2010

  • Jr. Member
  • **
  • Posts: 12
  • Karma: 2
    • View Profile
Hi, new to VoxCommando and first time posting.

I apologize if this is covered elsewhere. I searched the forum and even looked at some posts and tutorials but I didn't find an answer to this.  If I missed it please feel free to refer me to the correct tutorials or posts.

I am testing VC as a replacement for Alexa to control my Hubitat home automation devices. I have setup a couple basic on/off commands for some lights and they are working well.  I am now trying to figure out how to send dimmer levels and color commands to those lights as well.

As a static command I can send the following and the bulb dims to 25%
http://192.168.0.123/apps/api/321/devices/123/setLevel/25?access_token=xxxxxxxxxxxxxx

Is it possible to setup VC to pick up the dimmer level and modify the URL based on that?
If I  say "Jarvis, Dim Living Room Light to twenty five percent"
Can VC pick up the "Dim Living Room Light to" as the command and the "twenty five percent" as a variable?
If so how would I use that dimmer level variable to modify the maker API URL?

Thanks in advance for your help and patients with a newb!
Tom G.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Can I convert speech to a variable for use with Hubitat Maker API?
« Reply #1 on: December 23, 2020, 11:54:20 AM »
Hi Tom.

Welcome to VoxCommando.

Yes this is one of the core features of the program.

Basically you just need a payload range.

https://voxcommando.com/mediawiki/index.php?title=Payloads

I recommend you watch this video which covers the basics of creating command and using payloads.
Don't let the fact that the UI has changed a lot throw you off too much.  The concepts haven't changed.

&ab_channel=VoxCommando
« Last Edit: December 23, 2020, 11:57:21 AM by jitterjames »

Tom_G_2010

  • Jr. Member
  • **
  • Posts: 12
  • Karma: 2
    • View Profile
Re: Can I convert speech to a variable for use with Hubitat Maker API?
« Reply #2 on: December 23, 2020, 01:30:08 PM »
Thanks for the prompt reply!  I'll dig into this tonight after work and see if I can connect the dots.