mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +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
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: Bayesian Binary Sensor
|
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:
|
device_class:
|
||||||
description: Sets the [class of the device](/integrations/binary_sensor/), changing the device state and icon that is displayed on the frontend.
|
description: Sets the [class of the device](/integrations/binary_sensor/), changing the device state and icon that is displayed on the frontend.
|
||||||
required: false
|
required: false
|
||||||
@ -119,8 +123,9 @@ The following is an example for the `state` observation platform.
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
name: "in_bed"
|
|
||||||
platform: "bayesian"
|
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
|
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
|
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:
|
observations:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user