From 7cb7c9ea7636d20f150f6d365122145dce4a4e4e Mon Sep 17 00:00:00 2001 From: HarvsG <11440490+HarvsG@users.noreply.github.com> Date: Tue, 25 Oct 2022 12:03:52 +0100 Subject: [PATCH] Bayesian - adds unique ID (#24457) Co-authored-by: Franck Nijhof --- source/_integrations/bayesian.markdown | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/_integrations/bayesian.markdown b/source/_integrations/bayesian.markdown index aada7ca7ff2..f72a13ba1d8 100644 --- a/source/_integrations/bayesian.markdown +++ b/source/_integrations/bayesian.markdown @@ -73,6 +73,10 @@ name: required: false type: string default: Bayesian Binary Sensor +unique_id: + description: An ID that uniquely identifies this bayesian entity. If two entities have the same unique ID, Home Assistant will raise an exception. + required: false + type: string device_class: description: Sets the [class of the device](/integrations/binary_sensor/), changing the device state and icon that is displayed on the frontend. required: false @@ -119,8 +123,9 @@ The following is an example for the `state` observation platform. ```yaml # Example configuration.yaml entry binary_sensor: - name: "in_bed" platform: "bayesian" + name: "in_bed" + unique_id: "172b6ef1-e37e-4f04-8d64-891e84c02b43" # generated on https://www.uuidgenerator.net/ prior: 0.25 # I spend 6 hours a day in bed 6hr/24hr is 0.25 probability_threshold: 0.8 # I am going to be using this sensor to turn out the lights so I only want to to activate when I am sure observations: