From 48e7e709e056935edf4c8c1a6c3e107985e1e0be Mon Sep 17 00:00:00 2001 From: Gabriel Rauter Date: Mon, 3 Jan 2022 15:10:18 +0100 Subject: [PATCH] Add unique_id configuration variable to command_line integration (#20031) --- source/_integrations/command_line.markdown | 4 ++++ source/_integrations/cover.command_line.markdown | 4 ++++ source/_integrations/sensor.command_line.markdown | 4 ++++ source/_integrations/switch.command_line.markdown | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/source/_integrations/command_line.markdown b/source/_integrations/command_line.markdown index fb2485ba441..d8a5ebf4a8e 100644 --- a/source/_integrations/command_line.markdown +++ b/source/_integrations/command_line.markdown @@ -72,6 +72,10 @@ command_timeout: required: false type: integer default: 15 +unique_id: + description: An ID that uniquely identifies this binary sensor. Set this to a unique value to allow customization through the UI. + required: false + type: string {% endconfiguration %} ## Execution diff --git a/source/_integrations/cover.command_line.markdown b/source/_integrations/cover.command_line.markdown index c6e2f5c9229..d5210523a2b 100644 --- a/source/_integrations/cover.command_line.markdown +++ b/source/_integrations/cover.command_line.markdown @@ -67,6 +67,10 @@ covers: required: false type: integer default: 15 + unique_id: + description: An ID that uniquely identifies this cover. Set this to a unique value to allow customization through the UI. + required: false + type: string {% endconfiguration %} ## Examples diff --git a/source/_integrations/sensor.command_line.markdown b/source/_integrations/sensor.command_line.markdown index c15e824401b..011c5b4446d 100644 --- a/source/_integrations/sensor.command_line.markdown +++ b/source/_integrations/sensor.command_line.markdown @@ -54,6 +54,10 @@ json_attributes: description: Defines a list of keys to extract values from a JSON dictionary result and then set as sensor attributes. required: false type: [string, list] +unique_id: + description: An ID that uniquely identifies this sensor. Set this to a unique value to allow customization through the UI. + required: false + type: string {% endconfiguration %} ## Execution diff --git a/source/_integrations/switch.command_line.markdown b/source/_integrations/switch.command_line.markdown index c50ae9d6cf8..7c22c201571 100644 --- a/source/_integrations/switch.command_line.markdown +++ b/source/_integrations/switch.command_line.markdown @@ -65,6 +65,10 @@ switches: required: false type: integer default: 15 + unique_id: + description: An ID that uniquely identifies this switch. Set this to a unique value to allow customization through the UI. + required: false + type: string {% endconfiguration %} A note on `friendly_name`: