Add configuration flow to PVOutput (#20837)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Franck Nijhof 2021-12-27 22:21:32 +01:00 committed by GitHub
parent b0d25401a2
commit ff67f31357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,38 +7,18 @@ ha_release: 0.33
ha_iot_class: Cloud Polling ha_iot_class: Cloud Polling
ha_codeowners: ha_codeowners:
- '@fabaff' - '@fabaff'
- '@frenck'
ha_config_flow: true
ha_domain: pvoutput ha_domain: pvoutput
ha_platforms: ha_platforms:
- sensor - sensor
--- ---
The `pvoutput` sensor platform consumes information from [PVOutput](https://pvoutput.org/) which were uploaded by your solar photovoltaic (PV) system. The PVOutput integration consumes information from [PVOutput](https://pvoutput.org/) which was uploaded by your solar photovoltaic (PV) system.
To add PVOutput details to your installation, add the following to your `configuration.yaml` file: {% include integrations/config_flow.md %}
```yaml ## Extracting data into separate sensors
# Example configuration.yaml entry
sensor:
- platform: pvoutput
system_id: YOUR_SYSTEM_ID
api_key: YOUR_API_KEY
```
{% configuration %}
api_key:
description: Your API key. A read-only key is fine.
required: true
type: string
system_id:
description: The ID of your station.
required: true
type: string
name:
description: Name of the sensor.
required: false
default: PVOutput
type: string
{% endconfiguration %}
To format the PVoutput sensor it's recommended to use the [template component](/topics/templating/). For example: To format the PVoutput sensor it's recommended to use the [template component](/topics/templating/). For example: