-
Notifications
You must be signed in to change notification settings - Fork 222
Cannot read property 'converse' of undefined #126
Comments
Update: after issuing a command from the sandbox, which worked, i copied the JSON and it started working:
No clue why |
Ah wait.. in the sample on the readme there is a mention of "USER" and here i see "NAME". |
I think thats a bug in the sandbox code generation. It should be "user" and not "name". You need to pass the broadcast and converse parameters as booleans. Can you try passing the converse param as a boolean, not a string?
I've updated it to v.3.0.4 to fix the typos |
Something is wrong with the latest release. Custom commands are no longer working but instead are issuing broadcasts no matter what is done. Previously I had used the example command "Tell me a joke." That is no longer working in 3.0.4. Ah ha!! Figured it out....in sandbox, if you want the option to be false, you have to toggle it twice so that it sends the false flag to GAR. |
@ryancasler You sure there wasn't something else? I've had a look in the code and tested myself and cannot find why it'd be doing that |
Thats..... odd. It's null by default, so whatever it gets change to first should be that value. Is that just a Sandbox submission |
Okay, I don't know what is going on. When I go in and use this: { It broadcasts "What time is it" But then if I go in and try: It tells GAR what the time is and I can see that displayed and the sound file is there. |
I think it's using what ever was set last. Because now when I go in and try: it does the same thing as because that was the last way the flags were set. So, basically, those flags always need to be set to make sure it uses the right ones. |
Also, what is the "converse" flag actually doing? it's just rebroadcasting the text response from Google Assistant, right? Because using this: { Got a broadcast of But it actually said the words "Toad face" and it started with "Broadcast from Ryan". Maybe we need to eliminate emoji from the message. |
@ryancasler Can you open a new bug report for that and ill take a look |
Sure. |
Is there some way to turn off the 'broadcast from' ? and just have it mention 'the dryer is ready?' |
it was a fresh install + login and it works with |
Hmm, I can't figure out whats causing this. Seems to randomly happen. The correct parameter is "user". It's just ignoring the "name" param because it doesn't know what it is. Since you're the only user and you're not passing it as a param, it takes the first user you setup |
This would be very nice. Makes it sound like GA is announcing something, rather than being announced through. |
Does it happen on your end? If not, what is the countrycode of your linked google account? |
It happens randomly, but I haven't figured out what's causing it or how to fix it yet. |
Unfortunately you can't because it's part of the function of Google Assistant. Broadcasting voice messages, like you would from your phone or another speaker, that are in your voice and do not contain that message at the beginning, are not supported by the Google Assistant SDK that this program is based on. This is a list of the supported feature of the SDK. |
Unfortunately broadcasting voice messages is not supported, else you could pre-record a message and 'simulate' to Google you said it. I think this ticket can be closed. |
@webunity voice messages has nothing to do with this bug? |
yes and no; a possible work around could be that you don't send text, but voice; you might be able to 'fool' google by sending/uploading a pre-recorded message like "announce ..." (in mp3) spoken by the GA voice or something; after which the GA would think it was spoken by a user. But, this is not supported right now so lets don't take that indeed into consideration here. |
Sorry, i'm confused as to what this as to do with the original bug reported though? |
It doesn't. This was in regards to:
|
Following a HomeAssistant / HASSIO Assistant-Relay setup tutorial, I encountered the above errors in the container logs when testing in the AR Sandbox. Resolved by removing and reinstalling the add-on in HASSIO and re-creating / re-authenticating my assistant-relay user. To me this suggests the culprit is likely that the access_token initialization failed the first time around. After that, all errors have cleared up and Assistant-Relay is working magnificently! Related issues: Hope this can help anyone else who encounters this class of issue in the future. <3 |
Uh oh!
There was an error while loading. Please reload this page.
Tried it with and without converse param in POSTMAN, but i can't get it to work.
The example in the readme doesn't give any hints about the requiredness of the converse parameter.
And executing it not in Postman but on my PI also gives:
Gives:
LOGS:
The text was updated successfully, but these errors were encountered: