Files
fresh-home/components/binary_sensors/rooms/front_room_occupied.yaml
T
2024-07-02 12:20:03 -04:00

38 lines
873 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'