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

Created a Google Home integration last year before requestSync was a thing #373

Closed matwithonet1 closed 5 years ago

matwithonet1 commented 5 years ago

I just implemented the requestSync, which is really nice for when someone adds a new device on their account associated with my service. The bad thing is, I can't seem to find a way to force all my users to "re-sync" so that their agentUserId is now sent in my sync request. Is there something I'm missing? Is there a way to do this?

Fleker commented 5 years ago

Yeah if you don't have a user id for someone you can't request a sync, and there's no resync for everyone option. You'd have to ask them to relink their account or manually trigger a sync, ie. "OKG, sync my devices"