Skip to content

Commit f6b02b1

Browse files
schmittxcdce8p
authored andcommitted
Add HomeKit support for media players (home-assistant#5378)
1 parent 4da6af1 commit f6b02b1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

source/_components/homekit.markdown

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,16 @@ homekit:
3030
include_domains:
3131
- alarm_control_panel
3232
- light
33+
- media_player
3334
entity_config:
3435
alarm_control_panel.home:
3536
code: 1234
37+
media_player.living_room:
38+
mode:
39+
- on_off
40+
- play_pause
41+
- play_stop
42+
- toggle_mute
3643
```
3744
3845
{% configuration %}
@@ -95,6 +102,11 @@ homekit:
95102
required: false
96103
type: string
97104
default: ''
105+
mode:
106+
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.
107+
required: false
108+
type: list
109+
default: '`<All supported modes>`'
98110
{% endconfiguration %}
99111

100112
<p class='note'>
@@ -229,6 +241,7 @@ The following components are currently supported:
229241
| fan | Fan | Support for `on / off`, `direction` and `oscillating`. |
230242
| light | Light | Support for `on / off`, `brightness` and `rgb_color`. |
231243
| lock | DoorLock | Support for `lock / unlock`. |
244+
| media_player | MediaPlayer | Represented as a series of switches which control `on / off`, `play / pause`, `play / stop`, or `mute` depending on `supported_features` of entity and the `mode` list specified in `entity_config`. |
232245
| sensor | TemperatureSensor | All sensors that have `Celsius` or `Fahrenheit` as their `unit_of_measurement` or `temperature` as their `device_class`. |
233246
| sensor | HumiditySensor | All sensors that have `%` as their `unit_of_measurement` and `humidity` as their `device_class`. |
234247
| sensor | AirQualitySensor | All sensors that have `pm25` as part of their `entity_id` or `pm25` as their `device_class` |

0 commit comments

Comments
 (0)