Sruggling with Assistant Relay for Hassio

I’m trying to set up Assistant Relay for Hassio to broadcast messages via my Google Home Minis without stopping any music that might be playing.

I can send messages from the sandbox in the add-on and it seems to work perfectly. However I can’t seem to send anything via the rest_command.assistant_broadcast service.

I’ve used the configuration.yaml and Lovelace card examples from https://github.com/Apipa169/Assistant-Relay-for-Hassio - the only change I’ve made is to substitute my IP address.

When I try to use it I get the following error on the Developer Log:

Error. Url: http://192.168.1.131:3000/assistant. Status code 500.

4:32 PM components/rest_command/__init__.py (WARNING) - message first occurred at 4:27 PM and shows up 2 times

The add-on log sows:

0|www  |     at /assistant_relay/helpers/assistant.js:19:38
0|www  |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
0|www  | POST /assistant 500 112.929 ms - 44
0|www  | Conversation Complete
0|www  | POST /assistant 200 1800.409 ms - 93
0|www  | TypeError: Cannot read property 'converse' of undefined
0|www  |     at new Conversation (/assistant_relay/node_modules/google-assistant/components/conversation.js:129:34)
0|www  |     at /assistant_relay/helpers/assistant.js:19:38
0|www  |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
0|www  | POST /assistant 500 107.651 ms - 44
0|www  | TypeError: Cannot read property 'converse' of undefined
0|www  |     at new Conversation (/assistant_relay/node_modules/google-assistant/components/conversation.js:129:34)
0|www  |     at /assistant_relay/helpers/assistant.js:19:38
0|www  |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
0|www  | POST /assistant 500 112.928 ms - 44
0|www  | TypeError: Cannot read property 'converse' of undefined
0|www  |     at new Conversation (/assistant_relay/node_modules/google-assistant/components/conversation.js:129:34)
0|www  |     at /assistant_relay/helpers/assistant.js:19:38
0|www  |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
0|www  | POST /assistant 500 107.653 ms - 44
0|www  | TypeError: Cannot read property 'converse' of undefined
0|www  |     at new Conversation (/assistant_relay/node_modules/google-assistant/components/conversation.js:129:34)
0|www  |     at /assistant_relay/helpers/assistant.js:19:38
0|www  |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
0|www  | POST /assistant 500 109.361 ms - 44
0|www  | TypeError: Cannot read property 'converse' of undefined
0|www  |     at new Conversation (/assistant_relay/node_modules/google-assistant/components/conversation.js:129:34)
0|www  |     at /assistant_relay/helpers/assistant.js:19:38
0|www  |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
0|www  | POST /assistant 500 115.667 ms - 44
0|www  | TypeError: Cannot read property 'converse' of undefined
0|www  |     at new Conversation (/assistant_relay/node_modules/google-assistant/components/conversation.js:129:34)
0|www  |     at /assistant_relay/helpers/assistant.js:19:38
0|www  |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
0|www  | POST /assistant 500 110.752 ms - 44
0|www  | TypeError: Cannot read property 'converse' of undefined
0|www  |     at new Conversation (/assistant_relay/node_modules/google-assistant/components/conversation.js:129:34)
0|www  |     at /assistant_relay/helpers/assistant.js:19:38
0|www  |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
0|www  | POST /assistant 500 114.366 ms - 44
0|www  | POST /server/getConfig 200 47.371 ms - 126
0|www  | POST /server/checkUpdate 200 587.795 ms - 16
0|www  | TypeError: Cannot read property 'converse' of undefined
0|www  |     at new Conversation (/assistant_relay/node_modules/google-assistant/components/conversation.js:129:34)
0|www  |     at /assistant_relay/helpers/assistant.js:19:38
0|www  |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
0|www  | POST /assistant 500 133.569 ms - 44
0|www  | {
0|www  |   command: 'hello, this is a test broadcast',
0|www  |   user: 'username',
0|www  |   broadcast: true
0|www  | } {}
0|www  | ClientError [NotFoundError]: Not Found
0|www  |     at /assistant_relay/app.js:41:8
0|www  |     at Layer.handle [as handle_request] (/assistant_relay/node_modules/express/lib/router/layer.js:95:5)
0|www  |     at trim_prefix (/assistant_relay/node_modules/express/lib/router/index.js:317:13)
0|www  |     at /assistant_relay/node_modules/express/lib/router/index.js:284:7
0|www  |     at Function.process_params (/assistant_relay/node_modules/express/lib/router/index.js:335:12)
0|www  |     at next (/assistant_relay/node_modules/express/lib/router/index.js:275:10)
0|www  |     at /assistant_relay/node_modules/express/lib/router/index.js:635:15
0|www  |     at next (/assistant_relay/node_modules/express/lib/router/index.js:260:14)
0|www  |     at Function.handle (/assistant_relay/node_modules/express/lib/router/index.js:174:3)
0|www  |     at router (/assistant_relay/node_modules/express/lib/router/index.js:47:12) {
0|www  |   message: 'Not Found'
0|www  | }
0|www  | POST / - - ms - -
0|www  | {
0|www  |   command: 'hello, this is a test broadcast',
0|www  |   user: 'username',
0|www  |   broadcast: true
0|www  | } {}
0|www  | ClientError [NotFoundError]: Not Found
0|www  |     at /assistant_relay/app.js:41:8
0|www  |     at Layer.handle [as handle_request] (/assistant_relay/node_modules/express/lib/router/layer.js:95:5)
0|www  |     at trim_prefix (/assistant_relay/node_modules/express/lib/router/index.js:317:13)
0|www  |     at /assistant_relay/node_modules/express/lib/router/index.js:284:7
0|www  |     at Function.process_params (/assistant_relay/node_modules/express/lib/router/index.js:335:12)
0|www  |     at next (/assistant_relay/node_modules/express/lib/router/index.js:275:10)
0|www  |     at /assistant_relay/node_modules/express/lib/router/index.js:635:15
0|www  |     at next (/assistant_relay/node_modules/express/lib/router/index.js:260:14)
0|www  |     at Function.handle (/assistant_relay/node_modules/express/lib/router/index.js:174:3)
0|www  |     at router (/assistant_relay/node_modules/express/lib/router/index.js:47:12) {
0|www  |   message: 'Not Found'
0|www  | }
0|www  | POST / - - ms - -
0|www  | TypeError: Cannot read property 'converse' of undefined
0|www  |     at new Conversation (/assistant_relay/node_modules/google-assistant/components/conversation.js:129:34)
0|www  |     at /assistant_relay/helpers/assistant.js:19:38
0|www  |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
0|www  | POST /assistant 500 116.895 ms - 44
0|www  | POST /server/getConfig 200 54.346 ms - 126
0|www  | Conversation Complete
0|www  | POST /assistant 200 2285.004 ms - 93
0|www  | TypeError: Cannot read property 'converse' of undefined
0|www  |     at new Conversation (/assistant_relay/node_modules/google-assistant/components/conversation.js:129:34)
0|www  |     at /assistant_relay/helpers/assistant.js:19:38
0|www  |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
0|www  | POST /assistant 500 111.003 ms - 44
0|www  | Conversation Complete
0|www  | POST /assistant 200 1639.567 ms - 93

I’m on Home Assistant version 0.103.4

I’m really new to HA and would appreciate any help anyone can offer?

Thanks
Mark

I have had this error to, the solution is to not forget to put your username in the configuration: at the place: “user”:“username”, change username to the user you used for connecting to Google.

2 Likes

Awesome, that’s exactly what I was doing wrong!

Thank you for your help.

I’m trying to do the same thing, but I only receive an audio file in the sandbox. My Google Home’s aren’t making any sound. Any idea?

When you went through the setup process did you get a broadcast through your Google Home’s? I can’t remember exactly what it said but it was along the lines of Mark can now make broadcasts.

The first time I tried to set it up I didn’t get that because I’d missed a step on the setup- unfortunately I can’t remember which one and you can’t see the set up instructions when it is working. I removed the add-on and started again.

No I don’t get the broadcast message. I tried a few times but I never hear a thing…
Did the complete install steps again but no success. No errors in the log file

Sorry Sen, I’m really not sure it doesn’t sound like the same problem I experienced.

I´ve got the same problem

0|www  | GET /server/version 200 59.527 ms - 20
0|www  | POST /server/getResponses 200 40.451 ms - 360
0|www  | POST /server/getConfig 200 52.514 ms - 126
0|www  | GET /server/users 304 47.786 ms - -
0|www  | POST /server/getConfig 200 59.176 ms - 126
0|www  | POST /server/getResponses 200 47.377 ms - 360
0|www  | POST /server/getConfig 200 47.014 ms - 126
0|www  | TypeError: Cannot read property 'converse' of undefined
0|www  |     at new Conversation (/assistant_relay/node_modules/google-assistant/components/conversation.js:136:34)
0|www  |     at /assistant_relay/helpers/assistant.js:19:38
0|www  |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
0|www  | POST /assistant 500 125.390 ms - 44
0|www  | POST /server/getResponses 200 47.269 ms - 360
0|www  | POST /server/getConfig 200 49.477 ms - 126
0|www  | POST /server/getResponses 200 58.034 ms - 360
0|www  | GET /server/users 304 45.983 ms - -
0|www  | POST /server/getResponses 200 52.192 ms - 360

e-mail adresss as username is given in the config yaml, does work in Sandbox, but not in the home assistant.