Refactor volvooncall to use ConfigFlow (#23743)

* refactor volvooncall for ConfigFlow

* Add back the list of available resources
This commit is contained in:
y34hbuddy 2022-09-06 13:16:05 -04:00 committed by Franck Nijhof
parent b9c96ec0eb
commit f2bc00ec3f
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -20,65 +20,7 @@ ha_config_flow: true
The `volvooncall` integration offers integration with the [Volvo On Call](https://www.volvocars.com/intl/why-volvo/human-innovation/future-of-driving/connectivity/volvo-on-call) cloud service and offers presence detection as well as sensors such as odometer and fuel level. The `volvooncall` integration offers integration with the [Volvo On Call](https://www.volvocars.com/intl/why-volvo/human-innovation/future-of-driving/connectivity/volvo-on-call) cloud service and offers presence detection as well as sensors such as odometer and fuel level.
## Configuration {% include integrations/config_flow.md %}
To use Volvo On Call in your installation, add the following to your `configuration.yaml` file:
```yaml
# Example configuration.yaml entry
volvooncall:
username: YOUR_USERNAME
password: YOUR_PASSWORD
```
Users registered with Volvo in North America or China will need to specify a region:
```yaml
# North America
volvooncall:
username: YOUR_USERNAME
password: YOUR_PASSWORD
region: na
```
or
```yaml
# China
volvooncall:
username: YOUR_USERNAME
password: YOUR_PASSWORD
region: cn
```
{% configuration %}
username:
description: The username associated with your Volvo On Call account.
required: true
type: string
password:
description: The password for your given Volvo On Call account.
required: true
type: string
region:
description: The region where the Volvo is registered. Needs to be set for users in North America or China.
required: false
type: string
service_url:
description: The service URL to use for Volvo On Call. Normally not necessary to specify.
required: false
type: string
mutable:
description: If set to true, include components that can make changes to the vehicle (unlock, start engine, start heater etc).
required: false
default: true
type: boolean
scandinavian_miles:
description: If set to true, Scandinavian miles ("mil") are used for distances and fuel range.
required: false
type: boolean
default: false
{% endconfiguration %}
### Available Resources ### Available Resources