From 045422dad6c49da2dd1e738962c58fc2ff8380b9 Mon Sep 17 00:00:00 2001 From: Anders Melchiorsen Date: Thu, 8 Feb 2018 07:46:16 +0100 Subject: [PATCH] Return of entity_id in template platforms (#4600) --- source/_components/binary_sensor.template.markdown | 4 ++++ source/_components/cover.template.markdown | 7 +++++++ source/_components/light.template.markdown | 4 ++++ source/_components/sensor.template.markdown | 4 ++++ source/_components/switch.template.markdown | 4 ++++ 5 files changed, 23 insertions(+) diff --git a/source/_components/binary_sensor.template.markdown b/source/_components/binary_sensor.template.markdown index 290e3af9bc6..35b1d3f91ba 100644 --- a/source/_components/binary_sensor.template.markdown +++ b/source/_components/binary_sensor.template.markdown @@ -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 diff --git a/source/_components/cover.template.markdown b/source/_components/cover.template.markdown index 1450be2d50d..25dd15b7870 100644 --- a/source/_components/cover.template.markdown +++ b/source/_components/cover.template.markdown @@ -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 diff --git a/source/_components/light.template.markdown b/source/_components/light.template.markdown index 58648b4735b..a9f1b834e48 100755 --- a/source/_components/light.template.markdown +++ b/source/_components/light.template.markdown @@ -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 diff --git a/source/_components/sensor.template.markdown b/source/_components/sensor.template.markdown index 2841dc027ba..c8d8e2cd0a0 100644 --- a/source/_components/sensor.template.markdown +++ b/source/_components/sensor.template.markdown @@ -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 diff --git a/source/_components/switch.template.markdown b/source/_components/switch.template.markdown index 86d0e95e578..3568915ccc0 100644 --- a/source/_components/switch.template.markdown +++ b/source/_components/switch.template.markdown @@ -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