12-04-2023 11:53 PM - edited 12-04-2023 11:54 PM
1. I returned data during SYNC synchronization, as shown in the following figure.
3. Then when I switch colors, the onQuery function will always be triggered, as shown in the following figure.
The third step will be repeated continuously. May I ask if anyone knows the reason for this.
thank you.
Answered! Go to the Recommended Answer.
12-15-2023 09:00 AM
Thank you for reaching out. The logs you're seeing indicate that your project is receiving query requests, and each request comes with a unique request ID.
The "onQuery" function can be triggered by various actions, including voice commands like "Ok Google, what's the color of my light," routines, and even by keeping the Google Home App open in the foreground, which may generate a request every 30 seconds in certain cases.
If you find that the logs are generating too frequently and want to manage them, you can control the log level in the Actions on Google Console. Here's how you can adjust the log level:
In the Log level control section, you can set the level to "Error logs only" to reduce the volume of logs generated by routine queries.
This setting allows you to focus on error-related logs and helps manage the visibility of routine query requests. Feel free to adjust the log level based on your preferences and requirements.
12-15-2023 09:00 AM
Thank you for reaching out. The logs you're seeing indicate that your project is receiving query requests, and each request comes with a unique request ID.
The "onQuery" function can be triggered by various actions, including voice commands like "Ok Google, what's the color of my light," routines, and even by keeping the Google Home App open in the foreground, which may generate a request every 30 seconds in certain cases.
If you find that the logs are generating too frequently and want to manage them, you can control the log level in the Actions on Google Console. Here's how you can adjust the log level:
In the Log level control section, you can set the level to "Error logs only" to reduce the volume of logs generated by routine queries.
This setting allows you to focus on error-related logs and helps manage the visibility of routine query requests. Feel free to adjust the log level based on your preferences and requirements.
12-17-2023 06:50 PM
Okay, thank you very much.
But I still have a question.
If the front-end keeps Google Home open and requests every approximately 30 seconds, it will lead to an inexplicable increase in the number of Functions requests and increase my costs. Is this normal.
The number of Functions requests, as shown in the attached screenshot.