Return of entity_id in template platforms (#4600)

This commit is contained in:
Anders Melchiorsen 2018-02-08 07:46:16 +01:00 committed by Paulus Schoutsen
parent 99c835699b
commit 045422dad6
5 changed files with 23 additions and 0 deletions

View File

@ -48,6 +48,10 @@ binary_sensor:
description: Name to use in the frontend.
required: false
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:
description: The type/class of the sensor to set the icon in the frontend.
required: false

View File

@ -48,6 +48,10 @@ cover:
description: Name to use in the frontend.
required: false
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:
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
@ -197,6 +201,9 @@ cover:
{% else %}
mdi:window-closed
{% endif %}
entity_id:
- cover.bedroom
- cover.livingroom
sensor:
- platform: template

View File

@ -51,6 +51,10 @@ light:
description: Name to use in the frontend.
required: false
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:
description: Defines a template to get the state of the light.
required: false

View File

@ -45,6 +45,10 @@ sensor:
description: Name to use in the frontend.
required: false
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:
description: Defines the units of measurement of the sensor, if any.
required: false

View File

@ -55,6 +55,10 @@ switch:
description: Name to use in the frontend.
required: false
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:
description: Defines a template to set the state of the switch.
required: true