google-home / smart-home-java

Apache License 2.0
92 stars 47 forks source link

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

Open electrofun-smart opened 4 years ago

electrofun-smart commented 4 years ago

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"}

Fleker commented 4 years ago

What command are you giving to your service?

electrofun-smart commented 4 years ago

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

Fleker commented 4 years ago

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

proppy commented 3 years ago

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