{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/9611","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/9611/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/9611/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/9611/events","html_url":"https://github.com/home-assistant/home-assistant/issues/9611","id":261273675,"number":9611,"title":"braviatv configuration not working","user":{"login":"EmmanuelLM","id":32359407,"avatar_url":"https://avatars1.githubusercontent.com/u/32359407?v=4","gravatar_id":"","url":"https://api.github.com/users/EmmanuelLM","html_url":"https://github.com/EmmanuelLM","followers_url":"https://api.github.com/users/EmmanuelLM/followers","following_url":"https://api.github.com/users/EmmanuelLM/following{/other_user}","gists_url":"https://api.github.com/users/EmmanuelLM/gists{/gist_id}","starred_url":"https://api.github.com/users/EmmanuelLM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmmanuelLM/subscriptions","organizations_url":"https://api.github.com/users/EmmanuelLM/orgs","repos_url":"https://api.github.com/users/EmmanuelLM/repos","events_url":"https://api.github.com/users/EmmanuelLM/events{/privacy}","received_events_url":"https://api.github.com/users/EmmanuelLM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-28T10:46:36Z","updated_at":"2017-09-28T12:41:26Z","closed_at":null,"author_association":"NONE","body":"Make sure you are running the latest version of Home Assistant before reporting an issue.\r\n\r\nYou should only file an issue if you found a bug. Feature and enhancement requests should go in [the Feature Requests section](https://community.home-assistant.io/c/feature-requests) of our community forum:\r\n\r\n**Home Assistant release (`hass --version`): 0.54**\r\n\r\n\r\n**Python release (`python3 --version`): using hass.io latest version**\r\n\r\n\r\n**Component/platform: using hass.io latest version**\r\n\r\n\r\n**Description of problem:**\r\nI am struggling to configure my TV above with Home-Assistant. Here is what I tried (and what happened):\r\n\r\nadded the “platform: braviatv” with the correct host IP; no bravia.conf file. Rebooted everything. The configuration module appears, enter 0000, a pin then appears on my TV, which I then enter in HA - the TV then says “configuration cancelled” and nothing else happens… note: I had removed all prior associated devices on the TV;\r\nas above but created a bravia.conf with the right host, pin, mac (quick question: the pin is the pre-shared pin? and the mac is the tv mac, right? that is what I have assumed anyway). Now two things happen after I reboot everything:\r\n2.1) if the TV is off whilst HA is rebooting: I see a Sony Bravia TV module and can see the on/off state, but none of the controls work;\r\n2.2) if the TV is on whilst HA is rebooting: I cannot see a module in HA and the TV presents me with a pin to enter every 30 seconds or so (the prompt only stays on for 10 seconds or so), I have no configuration modules etc…\r\nIn terms of config, everything is up to date etc…\r\n\r\nBasically, I am stumped, don’t really know what else to try, so any help is appreciated!\r\n\r\n**Expected:**\r\nConfiguration panel shows, enter 0000, pin is displayed on TV, enter the pin from the TV in the panel, TV added as a component.\r\n\r\n**Problem-relevant `configuration.yaml` entries and steps to reproduce:**\r\n```yaml\r\nmedia_player:\r\n  - platform: braviatv\r\n    host: 192.168.1.234\r\n```\r\n\r\n1. Click on configure in the Bravia configuration panel\r\n2. Enter 0000, Click confirm, a pin is displayed on the TV\r\n3. Enter the pin from the TV in the panel, press 'Confirm' - TV says 'configuration cancelled', panel says wrong pin\r\n\r\n**Traceback (if applicable):**\r\n```bash\r\n\r\n```\r\n\r\n**Additional info:**\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/332823955","html_url":"https://github.com/home-assistant/home-assistant/issues/9611#issuecomment-332823955","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/9611","id":332823955,"user":{"login":"danito","id":54977,"avatar_url":"https://avatars0.githubusercontent.com/u/54977?v=4","gravatar_id":"","url":"https://api.github.com/users/danito","html_url":"https://github.com/danito","followers_url":"https://api.github.com/users/danito/followers","following_url":"https://api.github.com/users/danito/following{/other_user}","gists_url":"https://api.github.com/users/danito/gists{/gist_id}","starred_url":"https://api.github.com/users/danito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danito/subscriptions","organizations_url":"https://api.github.com/users/danito/orgs","repos_url":"https://api.github.com/users/danito/repos","events_url":"https://api.github.com/users/danito/events{/privacy}","received_events_url":"https://api.github.com/users/danito/received_events","type":"User","site_admin":false},"created_at":"2017-09-28T12:41:26Z","updated_at":"2017-09-28T12:41:26Z","author_association":"NONE","body":"Hi,\r\nI had also a problem to register my HA to the braviaTv and I had to enter the pin code several times. At the end I found out that the pin code is not necessary once the Braviatv has registered the HA (you can run the bravia.py which is used by HA to send commands to your TV, as long as the nickname \"Home Assistant\" is used). \r\nI created a bravia.conf file:\r\n```json\r\n{\"192.168.1.xx\": {\"pin\": \"0000\", \"host\": \"192.168.1.xx\", \"mac\": \"80:br:av:ia:tv:c1\"}}\r\n```\r\nand restarted HA and could use the media_player card to switch on/off my tv and set the source.\r\nIP in the bravia.conf must be the same as in your configuration and host. The mac is your tv's mac address.\r\n\r\nWorth a try."}}
{"actor":{"display_login":"danito"}}