mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 00:06:51 +00:00
Return of entity_id in template platforms (#4600)
This commit is contained in:
parent
99c835699b
commit
045422dad6
@ -48,6 +48,10 @@ binary_sensor:
|
|||||||
description: Name to use in the frontend.
|
description: Name to use in the frontend.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
entity_id:
|
||||||
|
description: A list of entity IDs so the sensor only reacts to state changes of these entities. This can be used if the automatic analysis fails to find all relevant entities.
|
||||||
|
required: false
|
||||||
|
type: string, list
|
||||||
device_class:
|
device_class:
|
||||||
description: The type/class of the sensor to set the icon in the frontend.
|
description: The type/class of the sensor to set the icon in the frontend.
|
||||||
required: false
|
required: false
|
||||||
|
@ -48,6 +48,10 @@ cover:
|
|||||||
description: Name to use in the frontend.
|
description: Name to use in the frontend.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
entity_id:
|
||||||
|
description: A list of entity IDs so the cover only reacts to state changes of these entities. This can be used if the automatic analysis fails to find all relevant entities.
|
||||||
|
required: false
|
||||||
|
type: [string, list]
|
||||||
value_template:
|
value_template:
|
||||||
description: Defines a template to get the state of the cover. Valid values are `open`/`true` or `closed`/`false`. [`value_template`](#value_template) and [`position_template`](#position_template) cannot be specified concurrently.
|
description: Defines a template to get the state of the cover. Valid values are `open`/`true` or `closed`/`false`. [`value_template`](#value_template) and [`position_template`](#position_template) cannot be specified concurrently.
|
||||||
required: exclusive
|
required: exclusive
|
||||||
@ -197,6 +201,9 @@ cover:
|
|||||||
{% else %}
|
{% else %}
|
||||||
mdi:window-closed
|
mdi:window-closed
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
entity_id:
|
||||||
|
- cover.bedroom
|
||||||
|
- cover.livingroom
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: template
|
- platform: template
|
||||||
|
@ -51,6 +51,10 @@ light:
|
|||||||
description: Name to use in the frontend.
|
description: Name to use in the frontend.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
entity_id:
|
||||||
|
description: A list of entity IDs so the light only reacts to state changes of these entities. This can be used if the automatic analysis fails to find all relevant entities.
|
||||||
|
required: false
|
||||||
|
type: [string, list]
|
||||||
value_template:
|
value_template:
|
||||||
description: Defines a template to get the state of the light.
|
description: Defines a template to get the state of the light.
|
||||||
required: false
|
required: false
|
||||||
|
@ -45,6 +45,10 @@ sensor:
|
|||||||
description: Name to use in the frontend.
|
description: Name to use in the frontend.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
entity_id:
|
||||||
|
description: A list of entity IDs so the sensor only reacts to state changes of these entities. This can be used if the automatic analysis fails to find all relevant entities.
|
||||||
|
required: false
|
||||||
|
type: string, list
|
||||||
unit_of_measurement:
|
unit_of_measurement:
|
||||||
description: Defines the units of measurement of the sensor, if any.
|
description: Defines the units of measurement of the sensor, if any.
|
||||||
required: false
|
required: false
|
||||||
|
@ -55,6 +55,10 @@ switch:
|
|||||||
description: Name to use in the frontend.
|
description: Name to use in the frontend.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
entity_id:
|
||||||
|
description: A list of entity IDs so the switch only reacts to state changes of these entities. This can be used if the automatic analysis fails to find all relevant entities.
|
||||||
|
required: false
|
||||||
|
type: [string, list]
|
||||||
value_template:
|
value_template:
|
||||||
description: Defines a template to set the state of the switch.
|
description: Defines a template to set the state of the switch.
|
||||||
required: true
|
required: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user