简体   繁体   中英

Query regarding ColorSetting trait in Google Device Actions

I am not able to query google assistant about "what color is my light", the documentation at the following web page says that ColorSetting trait has the ability for a light to asked about what color it is set to but I am not able to accomplish it. Please help...

URL:

https://developers.google.com/actions/smarthome/traits/colorsetting

1) Check that your sync response is valid in the code validator: https://developers.google.com/actions/smarthome/traits/colorsetting#validator

2) Open your Google Home app from your phone and select your device: check if the app shows the right device state and check that you received a query request and that you answered with the color.

3) Use Stackdriver logging https://cloud.google.com/logging/?hl=it to view if there's any error in Google Cloud Platform.

4) You can compare your JSON responses with the documentation examples using an on-line file merge tool to be sure that is correct.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM