mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 15:56:51 +00:00
Document 'turn_on_command' and 'turn_off_command' config entries (#9018)
This commit is contained in:
parent
084d7a98d7
commit
327dab3ebe
@ -97,6 +97,14 @@ device_class:
|
|||||||
required: false
|
required: false
|
||||||
default: auto
|
default: auto
|
||||||
type: string
|
type: string
|
||||||
|
turn_on_command:
|
||||||
|
description: An ADB shell command that will override the default `turn_on` command.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
turn_off_command:
|
||||||
|
description: An ADB shell command that will override the default `turn_off` command.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
### {% linkable_title Full Configuration %}
|
### {% linkable_title Full Configuration %}
|
||||||
@ -104,8 +112,8 @@ device_class:
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
media_player:
|
media_player:
|
||||||
# Use an ADB server to setup an Android TV device
|
# Use an ADB server to setup an Android TV device, provide
|
||||||
# and provide an app name
|
# an app name, and override the default turn on/off commands
|
||||||
- platform: androidtv
|
- platform: androidtv
|
||||||
name: Android TV
|
name: Android TV
|
||||||
device_class: androidtv
|
device_class: androidtv
|
||||||
@ -113,6 +121,8 @@ media_player:
|
|||||||
adb_server_ip: 127.0.0.1
|
adb_server_ip: 127.0.0.1
|
||||||
apps:
|
apps:
|
||||||
com.amazon.tv.launcher: "Fire TV"
|
com.amazon.tv.launcher: "Fire TV"
|
||||||
|
turn_on_command: "input keyevent 3"
|
||||||
|
turn_off_command: "input keyevent 223"
|
||||||
|
|
||||||
# Use the Python ADB implementation with authentication
|
# Use the Python ADB implementation with authentication
|
||||||
# to setup a Fire TV device and don't get the running apps
|
# to setup a Fire TV device and don't get the running apps
|
||||||
|
Loading…
x
Reference in New Issue
Block a user