Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging help for local executed confirmation #19

Open
TheDukeSr opened this issue May 22, 2022 · 3 comments
Open

Debugging help for local executed confirmation #19

TheDukeSr opened this issue May 22, 2022 · 3 comments

Comments

@TheDukeSr
Copy link

TheDukeSr commented May 22, 2022

Hi,

Info: NOT using Nabu Casa and Everything functioning good like mDNS, SSL, Local HTTP, Remote HTTPS, etc. etc.
Running Home Assistant Core 2022.5.5, Home Assistant Supervisor 2022.05.2, Kernel version 5.10.0-13-amd64, NGINX Home Assistant SSL proxy, Duck DNS

I've done the setup and read alle pages about local fullfilment I could find.

Still one thing is not clear to me. How do you check If a request is handled localy or not ?

I've seen many tips and examples about debugging in forums, but none realy explains it good.
For example: Many tips mention debugging like using "chrome://inspect/#devices",
In that Chrome inspect tool (Google Home Mini Device / inspect url) I see many info about the command I asked, but not 1 word clearly shows if it is locally executed or not.

So the questions:
Is there a Debug/Log/Test/Tool that CLEARLY shows if a request is fullfiled locally or not.
And how/where to setup this up correctly so the info is displayed correctly.

Regards,

John.

@Nardol
Copy link

Nardol commented May 25, 2022

If it is an execution intent, in the logbook you should have the mention "via local"
Or in developer tools->events if you listen to google_assistant_query for query intent or google_assistant_command for execute as switching on or off.
If I remind right source has to be local, if I am wrong look at the origin but if it is locally executed both origin and source should be set to local in the JSON displayed when even has occurred.

An example:

{
    "event_type": "google_assistant_command",
    "data": {
        "request_id": "10855723306903670856",
        "entity_id": [
            "light.lustre_bureau"
        ],
        "execution": [
            {
                "command": "action.devices.commands.OnOff",
                "params": {
                    "on": false
                }
            }
        ],
        "source": "local"
    },
    "origin": "LOCAL",
    "time_fired": "2022-05-25T09:18:56.347666+00:00",
    "context": {
        "id": "0180fa83155b84fc237ea430df0b2c66",
        "parent_id": null,
        "user_id": "xxx"
    }
}

I use Home Assistant Cloud for Google Assistant but I suppose things are not so different with the manual integration.

@calisro
Copy link

calisro commented Jun 10, 2022

You can check here. There is a 'partner_local' and 'partner_cloud' entries in the logs that you can click to add to the summary line in the logs explorer.

https://console.cloud.google.com/logs

Like this:

image

@snakuzzo
Copy link

snakuzzo commented Nov 4, 2022

Hi...I've just upgraded app.js to 2.1.6, but now when I restart home assistant I get this error...and executionType is "PARTNER_CLOUD"

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants