mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 12:26:50 +00:00
Add HomeKit support for media players (#5378)
This commit is contained in:
parent
4da6af168e
commit
f6b02b1c0b
@ -30,9 +30,16 @@ homekit:
|
|||||||
include_domains:
|
include_domains:
|
||||||
- alarm_control_panel
|
- alarm_control_panel
|
||||||
- light
|
- light
|
||||||
|
- media_player
|
||||||
entity_config:
|
entity_config:
|
||||||
alarm_control_panel.home:
|
alarm_control_panel.home:
|
||||||
code: 1234
|
code: 1234
|
||||||
|
media_player.living_room:
|
||||||
|
mode:
|
||||||
|
- on_off
|
||||||
|
- play_pause
|
||||||
|
- play_stop
|
||||||
|
- toggle_mute
|
||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
@ -95,6 +102,11 @@ homekit:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: ''
|
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.
|
||||||
|
required: false
|
||||||
|
type: list
|
||||||
|
default: '`<All supported modes>`'
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
<p class='note'>
|
<p class='note'>
|
||||||
@ -229,6 +241,7 @@ The following components are currently supported:
|
|||||||
| fan | Fan | Support for `on / off`, `direction` and `oscillating`. |
|
| fan | Fan | Support for `on / off`, `direction` and `oscillating`. |
|
||||||
| light | Light | Support for `on / off`, `brightness` and `rgb_color`. |
|
| light | Light | Support for `on / off`, `brightness` and `rgb_color`. |
|
||||||
| lock | DoorLock | Support for `lock / unlock`. |
|
| lock | DoorLock | Support for `lock / unlock`. |
|
||||||
|
| 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`. |
|
||||||
| sensor | TemperatureSensor | All sensors that have `Celsius` or `Fahrenheit` as their `unit_of_measurement` or `temperature` as their `device_class`. |
|
| sensor | TemperatureSensor | All sensors that have `Celsius` or `Fahrenheit` as their `unit_of_measurement` or `temperature` as their `device_class`. |
|
||||||
| sensor | HumiditySensor | All sensors that have `%` as their `unit_of_measurement` and `humidity` as their `device_class`. |
|
| sensor | HumiditySensor | All sensors that have `%` as their `unit_of_measurement` and `humidity` as their `device_class`. |
|
||||||
| sensor | AirQualitySensor | All sensors that have `pm25` as part of their `entity_id` or `pm25` as their `device_class` |
|
| sensor | AirQualitySensor | All sensors that have `pm25` as part of their `entity_id` or `pm25` as their `device_class` |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user