cancel
Showing results for 
Search instead for 
Did you mean: 

spectrumHsv and SpectramRgb in HomeGraphView

Xiaming
Community Member

1. I returned data during SYNC synchronization, as shown in the following figure.

企业微信截图_17017619768033.png
2. I will see the spectrumRgb attribute in HomeGraphView, as shown below.

企业微信截图_1701762687345.png

3. Then when I switch colors, the onQuery function will always be triggered, as shown in the following figure.

企业微信截图_17017627636533.png

The third step will be repeated continuously. May I ask if anyone knows the reason for this.

thank you.

 

1 Recommended Answer

armen_dpe
Solutions Expert
Solutions Expert

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:

  1. Navigate to the Actions on Google Console.
  2. Go to "Develop" and select "Actions."
  3. Choose "Log level control."

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.

View Recommended Answer in original post

2 REPLIES 2

armen_dpe
Solutions Expert
Solutions Expert

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:

  1. Navigate to the Actions on Google Console.
  2. Go to "Develop" and select "Actions."
  3. Choose "Log level control."

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.

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.

 

Xiaming_0-1702867808453.png