mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
38 lines
863 B
YAML
38 lines
863 B
YAML
platform: bayesian
|
|
unique_id: bayesianbinarysensor.front_room_occupied
|
|
name: Front Room Occupied
|
|
device_class: occupancy
|
|
prior: 0.5
|
|
probability_threshold: 0.75
|
|
observations:
|
|
|
|
- entity_id: group.front_room_motion
|
|
prob_given_true: .75
|
|
prob_given_false: 0.01
|
|
platform: state
|
|
to_state: 'on'
|
|
|
|
- entity_id: media_player.front_room_tv
|
|
prob_given_true: .9
|
|
prob_given_false: 0.01
|
|
platform: state
|
|
to_state: 'playing'
|
|
|
|
- entity_id: media_player.front_room_tv
|
|
prob_given_true: .5
|
|
prob_given_false: 0.01
|
|
platform: state
|
|
to_state: 'home'
|
|
|
|
- entity_id: input_boolean.home_occupied
|
|
platform: state
|
|
prob_given_true: .01
|
|
prob_given_false: 0.01
|
|
to_state: 'off'
|
|
|
|
- entity_id: binary_sensor.front_room_person_occupancy
|
|
prob_given_true: .99
|
|
prob_given_false: 0.01
|
|
platform: state
|
|
to_state: 'on'
|