mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
Bayesian - adds unique ID (#24457)
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
fb7e2f407e
commit
7cb7c9ea76
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user