diff --git a/atom.xml b/atom.xml index 9a1fe148ae..c95dcbc781 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index db784742ff..42a52bb113 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 1b941e7719..23d569c142 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 3e0036267a..4ec0c5fd0a 100644 --- a/blog/categories/device-tracking/atom.xml +++ b/blog/categories/device-tracking/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Device-Tracking | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 6ef1b9a0bb..d2f65c8b53 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index bca9ec060e..8d8f704f61 100644 --- a/blog/categories/how-to/atom.xml +++ b/blog/categories/how-to/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: How-To | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 5a99f0515d..9f7061aae8 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/internet-of-things/atom.xml b/blog/categories/internet-of-things/atom.xml index c8a144c946..10afa1bb2b 100644 --- a/blog/categories/internet-of-things/atom.xml +++ b/blog/categories/internet-of-things/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Internet-of-Things | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index d13c1fcdad..d1717afb21 100644 --- a/blog/categories/iot-data/atom.xml +++ b/blog/categories/iot-data/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: IoT-Data | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/media/atom.xml b/blog/categories/media/atom.xml index fa85b16c76..829ed36a22 100644 --- a/blog/categories/media/atom.xml +++ b/blog/categories/media/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Media | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index 6ef5d4052f..2efb86897d 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index bffd50b4da..eebcd9d8b8 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index afd4b8445b..ca1ab53d06 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 375126d01d..eb331000c7 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index e5d3140252..02aafd7e86 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 54f18e2e82..c8b67079da 100644 --- a/blog/categories/presence-detection/atom.xml +++ b/blog/categories/presence-detection/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Presence-Detection | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/public-service-announcement/atom.xml b/blog/categories/public-service-announcement/atom.xml index 01575a85e7..85c6331802 100644 --- a/blog/categories/public-service-announcement/atom.xml +++ b/blog/categories/public-service-announcement/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Public-Service-Announcement | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 918a9ce7af..61b91e5cf5 100644 --- a/blog/categories/release-notes/atom.xml +++ b/blog/categories/release-notes/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Release-Notes | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 060a77200d..5305832085 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 8a48f46e3c..e8de62ce02 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 6e86e91902..98613d2b4c 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index f9f468c645..9ea8e7aa88 100644 --- a/blog/categories/user-stories/atom.xml +++ b/blog/categories/user-stories/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: User-Stories | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 792235ca36..df8def3159 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 5d155f7121..002cf28bc8 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-07-16T15:58:39+00:00 + 2017-07-16T16:10:43+00:00 https://home-assistant.io/ diff --git a/components/media_player.apple_tv/index.html b/components/media_player.apple_tv/index.html index 8e0655386a..ec5cd32160 100644 --- a/components/media_player.apple_tv/index.html +++ b/components/media_player.apple_tv/index.html @@ -84,6 +84,8 @@ Currently you must have Home Sharing enabled for this to work. Support for pairi - platform: apple_tv host: IP_ADDRESS login_id: LOGIN_ID + start_off: false + credentials: CREDENTIALS

Configuration variables:

@@ -91,17 +93,97 @@ Currently you must have Home Sharing enabled for this to work. Support for pairi
  • host (Required): The IP-address of the device
  • login_id (Required): An identifier used to login to the device, see below
  • name (Optional): The name of the device used in the frontend
  • +
  • start_off (Optional): Set to true if device should start in fake standby
  • +
  • credentials (Optional): Credentials used for AirPlay playback
  • In order to connect to the device you need a login id. The easiest way to obtain this identifier is to use the application atvremote. It should be available in the same environment as you installed Home-Assistant. To install this utility, run pip3 install --upgrade pyatv. The run atvremote scan for all devices (try again if a device is missing):

    $ atvremote scan
     Found Apple TVs:
      - Apple TV at 10.0.10.22 (login id: 00000000-1234-5678-9012-345678901234)
    +
    +Note: You must use 'pair' with devices that have home sharing disabled
     
    -

    Just copy and paste the login id from the device you want to add. For more details about atvremote, see: this page.

    +

    Just copy and paste the login id from the device you want to add. For more details about atvremote, see: this page.

    +

    Guides

    +

    My Apple TV turns on when I restart Home Assistant

    +

    The Apple TV will automatically turn on if a request is sent to it, e.g. if a button is pressed, something is streamed to it via AirPlay or if current state (currently playing) is accessed. This is how Apple has designed it and it will cause problems if you are using HDMI CEC. Every time Home Assistant is started, a new request is sent to the device to figure out what is currently playing. When using CEC, this will wake up your TV and other devices you have configured.

    +

    So, if your TV is randomly turning on, this is probably the reason. As stated, this is by design and there is no real fix for it. There’s also no known way to turn off the Apple TV via the procotol used for communication. You basically have the following options:

    +
      +
    • Do not use this platform
    • +
    • Disable HDMI CEC on your Apple TV
    • +
    • Use “fake standby”
    • +
    +

    The first two points are quite obvious. Fake standby is a concept implemented in this platform that disables all requests to the device and make it appear as being “off” in the web interface. This will make sure that the device is not woken up, but it will of course not show any information or allow you to control it. It is however easy to turn it on (or off) in the web interface or using an automation with turn_on. To make it more useful, you can write automations that turns it on or off depending on some other device, like the input source on your receiver.

    +

    To put a device into fake standby when starting Home Assistant, add start_off: true to your configuration.

    +

    +Turning the device on/off in the user interface will not turn the physical device on/off according to description above. +

    +

    Setting up device authentication

    +

    If you, when playing media with play_url, get the following error message:

    +

    “This AirPlay connection requires iOS 7.1 or later, OS X 10.10 or later, or iTunes 11.2 or later.”

    +

    then device authentication is required. Press the icon in the upper left corner and select the leftmost icon according to the image below:

    +

    +

    Select media_player as domain, apple_tv_authenticate as service and enter {'entity_id': 'XXX'} into “Service Data”, but replace XXX with the entity id of your device (e.g. media_player.apple_tv). Press the button and hopefully you are presented with an input dialog asking for a pin code:

    +

    +

    If no dialog appears, go back to the states view and show it from there. A PIN code should now be visible on your TV, just enter it into the dialog and press “Confirm”. You should see if it succeeded in the state view:

    +

    +

    Copy the credentials and insert it into your configuration (make sure you copy everything, it should be 81 characters):

    +
    # Example configuration.yaml entry
    +media_player:
    +  - platform: apple_tv
    +    host: 10.0.0.20
    +    login_id: 00000000-1234-5678-9012-345678901234
    +    credentials: 1B8C387DDB59BDF6:CF5ABB6A2C070688F5926ADB7C010F6DF847252C15F9BDB6DA3E09D6591E90E5
    +
    +
    +

    Restart Home Assistant and now you should be able to use play_url as before.

    +

    Services

    +

    Service apple_tv_authenticate

    +

    In order to play media on an Apple TV with device authentication enabled (e.g. ATV4 with tvOS 10.2+), Home Assistant must properly authenticated. This method starts the process and presents the credentials needed for playback as a persistent notification. Please see guide above for usage.

    + + + + + + + + + + + + + + + +
    Service data attributeOptionalDescription
    entity_idyesString or list of strings that point at entity_ids of Apple TVs.
    +

    Service apple_tv_press_buttons

    +

    Send one or more button presses to the device.

    + + + + + + + + + + + + + + + + + + + + +
    Service data attributeOptionalDescription
    entity_idyesString or list of strings that point at entity_ids of Apple TVs.
    buttonsnoList of buttons. Supported buttons are: up, down, left, right, menu, top_menu and select.

    Notes and Limitations

    • Pairing is currently not supported
    • +
    • Updates is sometimes not propagated correctly on ATV4
    @@ -113,7 +195,7 @@ Found Apple TVs:
    - IoT class: Local Polling + IoT class: Local Push
    Introduced in release: 0.38 diff --git a/images/components/apple_tv/authenticate.png b/images/components/apple_tv/authenticate.png new file mode 100644 index 0000000000..4a9a4020f7 Binary files /dev/null and b/images/components/apple_tv/authenticate.png differ diff --git a/images/components/apple_tv/credentials.png b/images/components/apple_tv/credentials.png new file mode 100644 index 0000000000..90b04fb556 Binary files /dev/null and b/images/components/apple_tv/credentials.png differ diff --git a/sitemap.xml b/sitemap.xml index 5900491c37..8ce495eedc 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -3731,62 +3731,62 @@ https://home-assistant.io/demo/frontend.html -2017-07-16T15:57:05+00:00 +2017-07-16T16:09:07+00:00 https://home-assistant.io/demo/index.html -2017-07-16T15:57:05+00:00 +2017-07-16T16:09:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2017-07-16T15:57:05+00:00 +2017-07-16T16:09:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2017-07-16T15:57:05+00:00 +2017-07-16T16:09:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2017-07-16T15:57:05+00:00 +2017-07-16T16:09:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2017-07-16T15:57:05+00:00 +2017-07-16T16:09:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2017-07-16T15:57:05+00:00 +2017-07-16T16:09:07+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2017-07-16T15:57:05+00:00 +2017-07-16T16:09:07+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2017-07-16T15:57:05+00:00 +2017-07-16T16:09:07+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2017-07-16T15:57:05+00:00 +2017-07-16T16:09:07+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2017-07-16T15:57:05+00:00 +2017-07-16T16:09:07+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2017-07-16T15:57:05+00:00 +2017-07-16T16:09:07+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2017-07-16T15:57:05+00:00 +2017-07-16T16:09:07+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2017-07-16T15:57:05+00:00 +2017-07-16T16:09:07+00:00 https://home-assistant.io/static/mdi-demo.html -2017-07-16T15:57:05+00:00 +2017-07-16T16:09:07+00:00