mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-27 19:26:50 +00:00
Supports device class (#24458)
This commit is contained in:
parent
718d6a2d4d
commit
091400197b
@ -73,6 +73,10 @@ name:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: Bayesian Binary Sensor
|
default: Bayesian Binary Sensor
|
||||||
|
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
|
||||||
|
type: string
|
||||||
observations:
|
observations:
|
||||||
description: The observations which should influence the probability that the given event is occurring.
|
description: The observations which should influence the probability that the given event is occurring.
|
||||||
required: true
|
required: true
|
||||||
@ -174,6 +178,7 @@ Finally, here's an example for `template` observation platform, as seen in the c
|
|||||||
binary_sensor:
|
binary_sensor:
|
||||||
name: "Paulus Home"
|
name: "Paulus Home"
|
||||||
platform: "bayesian"
|
platform: "bayesian"
|
||||||
|
device_class: "presence"
|
||||||
prior: 0.5
|
prior: 0.5
|
||||||
probability_threshold: 0.9
|
probability_threshold: 0.9
|
||||||
observations:
|
observations:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user