From c86b12957fcc8dbbc7a0d014172a95124f828280 Mon Sep 17 00:00:00 2001 From: cdce8p <30130371+cdce8p@users.noreply.github.com> Date: Mon, 28 May 2018 16:26:57 +0200 Subject: [PATCH] Homekit media_player change mode to feature (#5447) --- source/_components/homekit.markdown | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/source/_components/homekit.markdown b/source/_components/homekit.markdown index 6c57811dc3a..958c03c7cd1 100644 --- a/source/_components/homekit.markdown +++ b/source/_components/homekit.markdown @@ -35,11 +35,11 @@ homekit: alarm_control_panel.home: code: 1234 media_player.living_room: - mode: - - on_off - - play_pause - - play_stop - - toggle_mute + feature_list: + - feature: on_off + - feature: play_pause + - feature: play_stop + - feature: toggle_mute ``` {% configuration %} @@ -102,11 +102,15 @@ homekit: required: false type: string default: '' - mode: - description: Operation modes of switches within HomeKit. Valid modes are `on_off`, `play_pause`, `play_stop`, and `toggle_mute`. Only applicable for `media_player` entities. + feature_list: + description: Only for `media_player` entities. List of feature dictionaries to add for a given entity. Comparable to the platform schema. required: false type: list - default: '``' + keys: + feature: + description: Name of the feature to add to the entity representation. Valid features are `on_off`, `play_pause`, `play_stop` and `toogle_mute`. The media_player entity must support the feature to be valid. + required: true + type: string {% endconfiguration %}