Closed eos1d3 closed 2 years ago
This is a warning message from the underlying WiFiClient and can be ignored.
To avoid this serial output simply add Serial.setDebugOutput(false);
right after Serial.begin()
Thank you!
Sorry to reopen the issue regarding to the same example, I find onAdjustBrightness
is never called by using GVA, Alexa and also SinricPro app. So is it deprecated?
Normally this should be a new issue as it is not related to the original question.
Anyways, onAdjustBrightness
gets called when you say something like "Alexa, lower the light by 10%"
The parameter brightnessDelta
is a relative value (-100 to +100) which the light should change about.
The callback function must calculate the new absolute value and return this in the valueDelta parameter!
See the example code here: https://github.com/sinricpro/esp8266-esp32-sdk/blob/46bc97268a71dcc929d39811fca1a6ab94e9177e/examples/Light/Light/Light.ino#L81-L86
@eos1d3
did a quick test and onAdjustBrightness
gets called in the light example provided.
@sivar2311 @kakopappa Thank a lot for help.
I can confirm "lower the light by 10%" will call onAdjustBrightness
by Alexa, while GVA will calculate the brightness itself and call onBrightness
instead.
Is that normal?
Sorry for my question, but what do you mean by "GVA" ?
Sorry for that, I mean Google Voice Assistant.
Ah ok :) @kakopappa Can you please check this when you get a chance?
@sivar2311 @kakopappa Thank a lot for help.
I can confirm "lower the light by 10%" will call
onAdjustBrightness
by Alexa, while GVA will calculate the brightness itself and callonBrightness
instead.Is that normal?
@eos1d3
Yes, Did a quick test. It seems Google Home has the ability to calculate the relative value and send as a percentage change correctly.
lightbulb at 100%
Ok Google, Dim my lightbulb sends setBrightness {"brightness":70}
Ok Google, Brighten my lightbulb by 20%. sends setBrightness {"brightness":90}
Thank you for confirming the results!
Hi, just found an error using
Light_FastLED_WS2812
example.Using VS Code with ESP32. No modification to source except the credentials and WiFi settings. After start, I see the console messages:
These are compilation information:
Each time I see the error when power up ESP32. But it works without problem. Dimming, color changes, power on/off work fine. Any idea to fix this?