Add config flow for braviatv integration (#12731)

* Update documentation

* Add information about options flow

* Add missing tags
This commit is contained in:
Maciej Bieniek 2020-04-15 14:32:13 +02:00 committed by GitHub
parent 74c64847ed
commit 5e5ec3f37a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,16 +7,18 @@ ha_release: 0.23
ha_iot_class: Local Polling
ha_codeowners:
- '@robbiet480'
- '@bieniu'
ha_domain: braviatv
ha_config_flow: true
---
The `braviatv` platform allows you to control a [Sony Bravia TV](https://www.sony.com/).
Almost all [Sony Bravia TV 2013 and newer](https://info.tvsideview.sony.net/en_ww/home_device.html#bravia) are supported. A more generic method for older TVs connected to a Raspberry Pi with HDMI-CEC is explained further below.
You will need to configure your TV to allow the Home Assistant for remote usage. To do that, ensure that your TV is turned on. Open the configuration popup on Home Assistant and enter a random PIN (for example 0000). After that, the TV will show you a PIN and Home Assistant will allow you to re-enter that PIN. Enter the PIN shown on your TV and Home Assistant will be able to control your Sony Bravia TV.
You can setup the Sony Bravia TV via **Configuration** >> **Integrations** in the UI, click the button with `+` sign and from the list of integrations select Sony Bravia TV.
To add a TV to your installation, add the following to your `configuration.yaml` file:
If you have following configuration in your `configuration.yaml` file it will be imported to the Integrations:
```yaml
# Example configuration.yaml entry
@ -37,11 +39,11 @@ name:
type: string
{% endconfiguration %}
You are also able to configure the TV manually by placing a `bravia.conf` file in your [configuration directory](/docs/configuration/) with the following information - please update the details to match your setup:
A new setup via `configuration.yaml` file is not possible.
```json
{"192.168.0.10": {"pin": "7745", "mac": "ac:1e:0a:e1:0c:01"}}
```
## Extra configuration for the integration
The integration allows you to change ignored TV sources from the front end. Enter which Sony Bravia TV integration you want to change options on and press the cog wheel.
## For TVs older than 2013