Closed jazzyisj closed 3 years ago
The device discovery feature is linked to your Google account, so that might be the issue why it adds the device from different homes, however, I find it strange that it's working at all, since all the requests are made locally, so if the Home Assistant installation is on one network, and the device on another, that should not work.
For your question on Google WiFi, that's totally a bug, it shouldn't be recognized as a device.
@jazzyisj and @CallumCVM i looked at the code implementation for client in glocaltokens
and the logic seems right:
error
and skip passing that device to the ha-google-home
integration.
Therefore, the integration should still be working for you and be correctly initialized for all other google home devices you have in your networks except the WiFi routers, those should just be skipped. Is that right or is the entire integration not working for you?
p.s. perhaps we should revisit the glocaltokens
and not log "invalid token format" for devices like WiFi routers as error
, but rather log as debug
The integration is working exactly as expected.
Concern 1 was the error raised by the google wifi. They do not appear to be causing an issue, I believe just reclassifying the log message as debug would probably be adequate.
Concern 2 is fact that the integration is grabbing devices for a google home other than the intended one associated with HA. The underlying issue probably lies on the google end of things. There likely isn't a way to limit which "home" to fetch the devices from when dealing with multiple homes any more than there is a way to prevent HA entities from being added to a second home in the Google Home app. Not a big deal, any unwanted devices can always be disabled within HA.
Gotcha, thanks for the info @jazzyisj. The first one is fixed here and will go out with a next release. Can you please create a separate issue for concern 2, so we could separately take a look at google foyer response and see if it's possible to separate devices between homes.
Done. Thanks!
Describe the bug
Errors when Google WIFI on network. Interesting to note that this Google WIFI router is actual set up on a second home in the Googe Home app. It is not in my primary home. We should be able to limit this integration to a specific home.
Version of the integration
Logs