cancel
Showing results for 
Search instead for 
Did you mean: 

color temperature Unable to dispaly in google home app

patton-zhang
Community Member

I reported the color temperature value according to the document, but the Google Home app panel cannot dispaly the color temperature I reported. Looking forward to helping me find out whether it is a problem with json or a problem with document understanding.

report status request: {"agentUserId":"cn-C2341","payload":{"devices":{"states":{"p11qQ1-VDU33779":{"color":{"temperatureK":3000},"currentModeSettings":{"schedule_time":"0"}}}}}}

sync response : {"payload":{"agentUserId":"cn-C2341","devices":[{"attributes":{"commandOnlyOnOff":false,"queryOnlyOnOff":false,"colorTemperatureRange":{"temperatureMinK":2000,"temperatureMaxK":9000}},"customData":{"deviceKey":"VDU33779","pkDkId":"608","productKey":"p11qQ1"},"id":"p11qQ1-VDU33779","name":{"defaultNames":["3779"],"name":"3779","nicknames":["3779"]},"otherDeviceIds":[{"deviceId":"p11qQ1-VDU33779"}],"traits":["action.devices.traits.OnOff","action.devices.traits.ColorSetting"],"type":"action.devices.types.LIGHT","willReportState":true}]}}

1 Recommended Answer

sipriyadarshi
Solutions Expert
Solutions Expert

Hello @patton-zhang ,

Thank you for reaching out to us with your issue. There are a couple of things which you can try to check : 

  1. Your json response to your json request does not include the requestId field. Can you try to check this part ?
  2. Also, the name field in your sync response if of an Integer type. This field should be of a String type. For more information refer to the following documentation

Also, you can try making use of the Washer Codelab making use of your devices and following the proper templates for request and response parts. 

View Recommended Answer in original post

2 REPLIES 2

patton-zhang
Community Member

sorry!

report status request json  There is something wrong with the above, but here is the correct one

{"agentUserId":"cn-C2341","payload":{"devices":{"states":{"p11qQ1-VDU33779":{"color":{"temperatureK":3000},"on":true}}}}}

 

 

sipriyadarshi
Solutions Expert
Solutions Expert

Hello @patton-zhang ,

Thank you for reaching out to us with your issue. There are a couple of things which you can try to check : 

  1. Your json response to your json request does not include the requestId field. Can you try to check this part ?
  2. Also, the name field in your sync response if of an Integer type. This field should be of a String type. For more information refer to the following documentation

Also, you can try making use of the Washer Codelab making use of your devices and following the proper templates for request and response parts.