11-04-2024 01:04 AM
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}]}}
Answered! Go to the Recommended Answer.
11-20-2024 11:20 AM
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 :
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.
11-04-2024 01:08 AM
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}}}}}
11-20-2024 11:20 AM
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 :
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.