{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/5157","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/5157/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/5157/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/5157/events","html_url":"https://github.com/home-assistant/home-assistant/issues/5157","id":198506748,"number":5157,"title":"Panasonic Viera media_player.turn_off seems like to be a toogle","user":{"login":"outrun0506","id":23034252,"avatar_url":"https://avatars.githubusercontent.com/u/23034252?v=3","gravatar_id":"","url":"https://api.github.com/users/outrun0506","html_url":"https://github.com/outrun0506","followers_url":"https://api.github.com/users/outrun0506/followers","following_url":"https://api.github.com/users/outrun0506/following{/other_user}","gists_url":"https://api.github.com/users/outrun0506/gists{/gist_id}","starred_url":"https://api.github.com/users/outrun0506/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outrun0506/subscriptions","organizations_url":"https://api.github.com/users/outrun0506/orgs","repos_url":"https://api.github.com/users/outrun0506/repos","events_url":"https://api.github.com/users/outrun0506/events{/privacy}","received_events_url":"https://api.github.com/users/outrun0506/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-01-03T16:05:20Z","updated_at":"2017-01-03T18:59:23Z","closed_at":null,"body":"**Home Assistant release (`hass --version`):**\r\n\r\n0.35.2\r\n\r\n**Python release (`python3 --version`):**\r\n\r\nPython 3.5.1\r\n\r\n**Component/platform:**\r\n\r\nPanasonic Viera TV\r\n\r\n**Description of problem:**\r\n\r\nI made an Automation for turn_off the TV and turn on my denon avr for listening to music via an input_select. If i change the input_select to music and the TV is already off, the TV is turned on.\r\nIf i try in the Service-Console with the settings:\r\n\r\nDomain: media_player\r\nService: turn_off\r\n\r\nServiceData:\r\n\r\n{\r\n\"entity_id\": \"media_player.tv\"\r\n}\r\n\r\nThe TV Power is toggled and not only turned off.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/23034252/21613739/c9b2f34a-d1d6-11e6-8164-983b72a29272.png)\r\n\r\n**Expected:**\r\n\r\nDo a power off to the TV and not a power toggle.\r\n\r\n**Problem-relevant `configuration.yaml` entries and steps to reproduce:**\r\n```yaml\r\n\r\nThis is my Automation:\r\n\r\n- alias: Musik\r\n  trigger:\r\n    platform: state\r\n    entity_id: input_select.fernbedinung\r\n    to: \"Musik hören\"\r\n  action:\r\n    - service: media_player.turn_off\r\n      entity_id: media_player.tv\r\n    - service: media_player.turn_on\r\n      entity_id: media_player.denon\r\n    - service: media_player.select_source\r\n      data:\r\n        entity_id: media_player.denon\r\n        source: Bluetooth\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/270193815","html_url":"https://github.com/home-assistant/home-assistant/issues/5157#issuecomment-270193815","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/5157","id":270193815,"user":{"login":"arsaboo","id":18319734,"avatar_url":"https://avatars.githubusercontent.com/u/18319734?v=3","gravatar_id":"","url":"https://api.github.com/users/arsaboo","html_url":"https://github.com/arsaboo","followers_url":"https://api.github.com/users/arsaboo/followers","following_url":"https://api.github.com/users/arsaboo/following{/other_user}","gists_url":"https://api.github.com/users/arsaboo/gists{/gist_id}","starred_url":"https://api.github.com/users/arsaboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arsaboo/subscriptions","organizations_url":"https://api.github.com/users/arsaboo/orgs","repos_url":"https://api.github.com/users/arsaboo/repos","events_url":"https://api.github.com/users/arsaboo/events{/privacy}","received_events_url":"https://api.github.com/users/arsaboo/received_events","type":"User","site_admin":false},"created_at":"2017-01-03T18:59:23Z","updated_at":"2017-01-03T18:59:23Z","body":"You can file a bug in the original package (https://github.com/florianholzapfel/panasonic-viera)"}}
{"actor":{"display_login":"arsaboo"}}