I am trying to control the brightness of builtin led on Esp32 devkit, by Google assistant commands say " set led brightness to 50%". I am able to switch ON/Off the led but having trouble with webhooks to control the brightness. What parameters to be used while creating applet?
I have searched a lot but no result.
What have you tried so far, and what code are you using on your ESP32?
Please find below the example used from Blynk Arduino library.
- With the basic example code and creating applets i was able to turn on and off led by voice command.
- i added some lines to work with Slider widget in Blynk app, it worked as desired.
I wanted to control the brightness by voice command on google assistant which is where i am getting stuck. I am not much into coding so not sure where i am wrong. Is it the program code or the applet parameters…please assist.
#define BLYNK_PRINT Serial
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth = "FMC8WkLghPgIxw0RTHpImlTrXCi7aIgN";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid = "MAURYA";
char pass = "8767510562@aalok";
int led = 2;
pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
// process received value
// Debug console
ledcSetup(0, 12000 ,8);
// attach the channel to the GPIO to be controlled
Blynk.begin(auth, ssid, pass);
I suspect you are using IFTTT.
Use the google assistant trigger (THIS), use “phrase with a number”.
For the action (THAT) use webhook. Use the URL in the format shown below. number field is selected from the insert ingredients option.
Thanks a ton! It is working now I was using just " http://blynk-cloud.com/Auth_Token/update/V0 "