Description
Enables querying devices which are able to switch inputs.
Media inputs can have dynamic names per device that represent audio or video feeds. These feeds can be hardwired or networked, but they should be named and reasonably persistent. This does not support arbitrary ephemeral feeds, such as a searchable networked library. Paired, named Bluetooth sources are supported. Sources can have multiple names, so user-created and discovered names are supported, as well as default names; for example, 'hdmi_1'might also be 'DVD player,' or 'usb_1' might also be 'Hard drive'.
Media inputs can be ordered to support 'next' and 'previous' commands.
Fields
Key | Type | Description |
---|---|---|
device
|
Device |
The device reporting the input state. Required Variable is allowed. |
state
|
FieldPath |
The specific state data to check. Required Variable is NOT allowed |
is
|
Dynamic |
Checks if the state data is equal to a value. Optional To use this field, all the following fields CANNOT be used: isNot, greaterThanOrEqualTo, greaterThan, lessThanOrEqualTo, lessThan Variable is allowed. |
isNot
|
Dynamic |
Checks if the state data is not equal to a value. Optional To use this field, all the following fields CANNOT be used: is, greaterThanOrEqualTo, greaterThan, lessThanOrEqualTo, lessThan Variable is allowed. |
greaterThan
|
Dynamic |
Checks if the state data is greater than (>) a value. Optional To use this field, all the following fields CANNOT be used: isNot, is, greaterThanOrEqualTo Variable is allowed. |
greaterThanOrEqualTo
|
Dynamic |
Checks if the state data is greater than or equal to (>=) a value. Optional To use this field, all the following fields CANNOT be used: isNot, is, greaterThan Variable is allowed. |
lessThan
|
Dynamic |
Checks if the state data is less than (<) a value. Optional To use this field, all the following fields CANNOT be used: isNot, is, lessThanOrEqualTo Variable is allowed. |
lessThanOrEqualTo
|
Dynamic |
Checks if the state data is less than or equal to (<=) a value. Optional To use this field, all the following fields CANNOT be used: isNot, is, lessThan Variable is allowed. |
for
|
Duration |
Checks if the state has already remained for a certain duration. Only applicable for Starters, cannot be used with Conditions. Optional Variable is allowed. |
suppressFor
|
Duration |
Suppress the triggering of the starter for a specified time period. Optional Variable is allowed. |
InputSelector State Data
Key | Type | Description |
---|---|---|
currentInput
|
String |
Optional |
Examples
starters:
- type: device.state.InputSelector
device: My Device - Room Name
state: currentInput
is: HDMI 1
condition:
type: device.state.InputSelector
device: My Device - Room Name
state: currentInput
is: HDMI 1