-
Notifications
You must be signed in to change notification settings - Fork 75
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
More options for config flow #124
Comments
I'd wait before introducing login with If even with this we will have |
You it not be an extra useful feature to have independent of |
I think we should try to avoid to expose low level details to users. |
if I might do another suggestion. Not sure if it’s possible though. |
@LEJOUI, of course, you are welcomed for suggestions, thanks for bringing it up to a table 💥 We have spoken about it earlier, however, got discouraged to do so since there are soooooo many different devices that may support Google Assistant that it would quickly get painful to maintain that list.
What do you guys think? |
I think the original question is not about supported devices list but about being able to select which supported devices to add. So this can be a dialog with checkboxes during the config flow if you want to add all or only some devices. Like your first option. But I'm not convinced if we need this because HA already provides mechanisms to disable devices on integration level or individual entities. Is any of the components in HA core provides such functionality? Disable deviceDisable entity |
Yes it's indeed that. You could disable the entity in HA.
Therefore I do think choosing what kind of devices you want to import is nice to have. Edit: added some more logs |
Well, I think we need to fix this and don't show error messages for devices which are just turned off 🙂 |
It's most likely because we "cache" the devices and try fetching their related data even though the device is off, so as @KapJI has said it's probably better we fix the log error message and using in-build mechanisms for entity disabling (@KapJI, i m on the go, could you please create a separate issue for that?) |
I think it would be a useful option to allow the user to specify a |
@coleya Storing the |
@coleya this is a good suggestion. The |
HA does NOT encrypt anything as far as I know. 😬😬 I am neither for or against @coleya suggestion, i just wanted to point out that it won't necessarily make this more secure. 😊 |
I am unsure about the authorization granted by the |
@coleya ``master_token` can do literally anything to your account. It is a bad design, but that is how Google Designed it unfortunately. I would be nice if Google could make it possible to limit what the app password can do. |
So since the app specific passwords are revokable this would actually be worse so I guess I won't be using this if you implement it. |
The integration stores it anyway right now, so i won't change anything. The only reason i made the post before (And I should probably have made that more clear) was so that you didn't get lulled into a false sense of security. |
I'm glad you did, I probably won't use the integration unless I can figure out a clean way of determining who set a particular timer (this would make it worth the risk) because of the inherent security risk. I wrongly assumed that the google account security model would be more than this one token. Hopefully one day google will provide a proper api for this data and we can use tokens like for everything else. |
Clarification: You still access the API through the |
Since the token changes when you change your password I assume it's tied to the app specific password it was generated with (which would have become apparent to me when I revoked it immediately after generating it which was my plan). If that's true it's even less important of a difference between the token and the password than I realized. If the token provides full control of the account then the only security using it instead would bring would be through obscurity (kinda ruined that by posting on github). |
The authentication flow for Google is well known secret. What makes it secure is simply having a good password. There are also some more details that I haven't listed in my previous post surrounding how Google authenticates and so forth. |
One of the cool ideas I heard from @KapJI the other day is to de-couple your google speakers / automations from your google account. Create a new secure google account for home automation things and simply add it as a "user" to your google home. That will allow your 2nd account full access to google devices without compromising the security of your main google account :) |
This is how I use it since day 1. The 2nd account doesn't have access to anything other than Google Home, so even if it's hacked, it's not a huge concern for me. @coleya Of course it's up to you if you want to use this integration. But as others said master token has the same power as username and password, so authenticating with the token doesn't really change anything but will make auth process more complex. And yes, it invalidates when you change the password. |
Is your feature request related to a problem? Please describe.
We currently only ask for login and password on config flow. However some people might have issue with
BadAuthentication
cause by different custom components as #95 for example. As an alternative solution we could providemaster_token
input on config UI.Also we discuss to have error catching for which we need to provide an option to 'opt out' from diagnostic data collection.
Describe the solution you'd like
More versatile config flow UI that allows to enter master token and opt in / opt out from diagnotic data collection
The text was updated successfully, but these errors were encountered: