google-home / smart-home-nodejs

A sample of the Smart Home device control APIs in Actions on Google
Apache License 2.0
892 stars 291 forks source link

Trying to setup smart-home activity but getting error: `Sorry, this action is not available in simulation` #535

Open devedse opened 3 years ago

devedse commented 3 years ago

Issue Guidelines

I've actually been wanting to setup a very simple C# based google assistant activity to start controlling a device. However since I haven't been able to figure out how to do this I started with this repository instead. (Sadly having to use Firebase which is now payed).

If someone does have some time to help me with my actual problem please check out these questions: https://www.reddit.com/r/GoogleAssistantDev/comments/lretk6/trying_to_setup_a_very_basic_assistant_action_but/ and https://stackoverflow.com/questions/66317205/created-smart-home-activity-google-home-with-oauth2-which-works-but-cant-li

I had to do some manual fixes to get everything working:

  1. Ensure the latest version of node-gyp was used rather then some 5.x.x. I couldn't run npm install on the frontend if I didn't have this.
  2. I then got all kinds of errors with linting. So I had to run npm run fix
  3. Same for the frontend, I manually added gpt there and also ran npm run fix
  4. The deployment now still failed (possibly due to my having a max spending budget of 0 euro's). So I added a spending limit of 5 euro's and now I could finally deploy.

I could now open my application and create a fan (or any other device). If I use the Test simulator I keep running into this error though:

image

{
  "response": "We're sorry, but something went wrong. Please try again.",
  "expectUserResponse": false,
  "conversationToken": "",
  "audioResponse": "",
  "ssmlMarkList": [],
  "visualResponse": {
    "visualElementsList": [
      {
        "displayText": {
          "content": "Sorry, this action is not available in simulation"
        }
      }
    ],
    "suggestionsList": [],
    "agentLogoUrl": ""
  },
  "clientError": 8,
  "is3pResponse": false,
  "clientOperationList": [],
  "projectName": "",
  "renderedHtml": "",
  "previewStartTimeMicros": "",
  "isEmptyResponse": false,
  "agentName": "",
  "servingModelOutdated": false
}