smart-home-java icon indicating copy to clipboard operation
smart-home-java copied to clipboard

Dispense trait error - Cannot convert [Ljava.util.HashMap;@3fee564 to Firestore Value

Open electrofun-smart opened this issue 5 years ago • 4 comments

Hi, I'm trying to use the Pet Feeder device that has trait dispense and I'm getting the error below. The device was created using the sample front-end application.

28: { logMessage: "[i~smart-devices-mbfa/20200714t115449.428084367232914064].: 2020-07-19 23:58:13 [RequestF9AE1265] INFO :: doPost, body = {"inputs":[{"context":{"locale_country":"US","locale_language":"en"},"intent":"action.devices.EXECUTE","payload":{"commands":[{"devices":[{"id":"1o73"}],"execution":[{"command":"action.devices.commands.Dispense","params":{"amount":1,"item":"catFood","unit":"CUPS"}}]}]}}],"requestId":"14731957334120212545"}

"

severity: "INFO"     
time: "2020-07-19T23:58:13.765Z"     

} 30: { logMessage: "[i~smart-devices-mbfa/20200714t115449.428084367232914064].: response = {"payload":{"commands":[{"ids":["1o73"],"errorCode":"Cannot convert [Ljava.util.HashMap;@3fee564 to Firestore Value","status":"ERROR"},{"ids":[],"status":"SUCCESS","states":{}}]},"requestId":"14731957334120212545"}

electrofun-smart avatar Jul 20 '20 16:07 electrofun-smart

What command are you giving to your service?

Fleker avatar Jul 20 '20 16:07 Fleker

I called my Pet Feeder as Meg Feeder, than in assistant I say: "Dispense 1 cup of cat food in my Meg Feeder"

electrofun-smart avatar Jul 20 '20 18:07 electrofun-smart

I can reproduce this, and I'll work on a fix.

Fleker avatar Jul 22 '20 17:07 Fleker

Is this an issue you've having with this sample or your own implementation?

proppy avatar Jan 21 '21 14:01 proppy