Homekit media_player change mode to feature (#5447)

This commit is contained in:
cdce8p 2018-05-28 16:26:57 +02:00 committed by Paulus Schoutsen
parent 39ae5f9ff8
commit c86b12957f

View File

@ -35,11 +35,11 @@ homekit:
alarm_control_panel.home: alarm_control_panel.home:
code: 1234 code: 1234
media_player.living_room: media_player.living_room:
mode: feature_list:
- on_off - feature: on_off
- play_pause - feature: play_pause
- play_stop - feature: play_stop
- toggle_mute - feature: toggle_mute
``` ```
{% configuration %} {% configuration %}
@ -102,11 +102,15 @@ homekit:
required: false required: false
type: string type: string
default: '' default: ''
mode: feature_list:
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. description: Only for `media_player` entities. List of feature dictionaries to add for a given entity. Comparable to the platform schema.
required: false required: false
type: list type: list
default: '`<All supported modes>`' 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 %} {% endconfiguration %}
<p class='note'> <p class='note'>