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

DISCONNECT #491

Closed VargentDi closed 3 years ago

VargentDi commented 4 years ago

hi there

we have created two different smart home project, so we want to allow our customer only link one instead of both of them, how could we issue a disconnect intents

VargentDi commented 4 years ago

on our end

Fleker commented 4 years ago

I don't think there's a way to do have both projects linked, as each of them would contain different devices and are seen as completely independent.

VargentDi commented 4 years ago

thanks for reply

so we created two different google action projects, each one of them is naming to reflect they are different brand, and login page and log in url will be different

but the fact they are connected to same backend api. So if our customer link both projects on their end, google home will show the exactly same name since it is same door in different smart home actions. only difference is the brand , log in account , credentials and door will be same in our database

we are trying to avoid such issue, so again my question : is there a way to issue a disconnect intents to our fullfilment to unlink this action project

Fleker commented 4 years ago

If you have a singular backend API, then you may be able to tell the customer that they already have an account with the other provider. If you get a disconnect intent, you may be able to unlink both if you can associate the access tokens between the two.

proppy commented 3 years ago

Closing as obsolete.