Google Assistant Local SDK - Local Fulfillment

Great now the state queries are local too !

Only thing bothering me is the latency google cloud was doing < 80Msec Local: >100Msec
so dont see the point of the local control atm

Sometimes I receive like : home Assistant is not reachable … I hope this local stuff resolves that :+)

I don’t see any speed improvement

Still don’t get why it was working for some people, with the old .js file

Glad you got it working. I tried all the stuff you did (changing J’s, baeeuel, https, etc) then it just started working on it’s own. I backed out those charges. I might try the local query but I’m nervous to touch it. I think my ms is much less btw. I’ll check again today.

for me it was the wrong .js file, not sure if “local support query” must be turned, i did it, and it works now

i also tried yesterday, with that “local support” queury, without the new .js file, and didnt work

i think it must be turned on, otherwise it shouldnt be in the docs :slight_smile:

Mine isn’t on. It works. Im hesitant to change anything until that PR is merged.

EDIT: Oh wait. that is only code changes in the js

Doesn’t seem like local query is functioning though.

action: {

actionType: "ONOFF_STATE_QUERY"

trait: "TRAIT_ON_OFF"

}

device: {

deviceType: "LIGHT"

}

status: {

externalDebugString: "Got a rejected promise Cannot handle this intentResponse"

fallbackToCloud: true

isSuccess: false

statusType: "UNKNOWN_ERROR"

}

}

1: {3}

2: {3}

]

executionType: "PARTNER_LOCAL"

latencyMsec: "961"

requestId: "12461339444356219232"

}

EDIT: I stand corrected. It is working sometimes.

actionResults: [
0: {
action: {
actionType: "ONOFF_STATE_QUERY"
trait: "TRAIT_ON_OFF"
}
device: {
deviceType: "LIGHT"
}
status: {
isSuccess: true
statusType: "STATE_AVAILABLE"
}}]
executionType: "PARTNER_LOCAL"
latencyMsec: "415"
requestId: "4249113557441477262"
}]}

for me its always working, with the modified .JS file

try uploading it? with also Name field and “enable local support query”

Yes I have done that already.

i’m testing, for me it works now everytime

Sometimes it doesn’t (activating a scene) but for the most part it is.

Like @Tyrian81 the speed locally is rather slow which is disappointing. Its actually faster via cloud. which makes zero sense. No middle man.

where do you see those logs btw?

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

i just see this:

I just clicked the ‘expand nested fields’ to see them all. I also added ms and action type and execution type to the query (In the results, click on the field like the ms number for example and click add to field summary.

perfect, thnx

ok, thats better indeed

my latency is lower as yours?

Depends. Sometimes slow. Sometimes faster. Still above 300ms though at best.

ah ok, well, i’m not seeying any difference, for me it was important that local was working
Because i had sometimes the issue like … looks like HA is not avaible right now… I hope this local stuff fixes it :slight_smile: