-
Notifications
You must be signed in to change notification settings - Fork 12
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
User input for Pin code required in configuration AND services in 3.0.0 Beta 2 #124
Comments
Yes, this probably makes sense. |
More inputs on Pin code:
|
In principle agree, however we have to migrate from the previous optional config. I wonder if we set a default of 0000 in the migration if not already set but then remove pin requirement in services and raise error if not set when calling them. |
…r Pin code required in configuration AND services in 3.0.0 Beta 2 #124
OK, when looking at this, there is a slight issue if you have more than one car on the account with different pins. Therefore made the pin in the service call optional. So it should work like this:
Do you think this is good logic to support migration of users not having set in options on older verison and also the multi vehicle on 1 account scenarios. Will also ensure those migrating with service calls in automations will continue to work. |
Hi Mark! Hope you enjoyed time off from computer for the past 6 weeks :) Good point regarding multiple cars, I focused only on my own use case having one car. Before commenting on your suggestions, how does the integration (v3) handle multiple cars in HA? You setup the JLR integration with a Pin code and then you get one device per vehicle sharing the same Pin code. Correct? If so, how does the new Switch and Button (Charging, Climate, Guardian Mode, Climate, Service Mode etc) entities behave when you configure only one Pin Code in integration configuration flow? Service calls are just an alternative to the new Switch and Button entities automatically created for a device. |
Hmmmm...that's a very good point. Need to think about that and find a solution. But yes, one device per vehicle with same set of entities. |
Maybe. To do that we would have to read the vehicles during setup in the config flow, so I was thinking if we have to do that anyway, we could ask for a pin for each vehicle during config flow. I'll have a play this week and see which option works best. |
@msp1974 The Pin code is required in the integration configuration and most of the service calls. Couldn't we just require the Pin code in the configuration and read it from configuration properties for each service call?
The text was updated successfully, but these errors were encountered: