Bayesian - adds unique ID (#24457)

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
HarvsG 2022-10-25 12:03:52 +01:00 committed by GitHub
parent fb7e2f407e
commit 7cb7c9ea76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: