Files
fresh-home/components/binary_sensors/rooms/garage_occupied.yaml
T
2025-02-10 15:08:18 -05:00

67 lines
1.5 KiB
YAML

platform: bayesian
unique_id: bayesianbinarysensor.garage_occupied
name: Garage Occupied
device_class: occupancy
prior: 0.4
probability_threshold: 0.6
observations:
- entity_id: group.garage_motion
prob_given_true: .8
prob_given_false: 0.01
platform: state
to_state: 'on'
- entity_id: group.garage_motion
prob_given_true: .5
prob_given_false: 0.5
platform: state
to_state: 'off'
- entity_id: cover.garage_door
prob_given_true: .60
prob_given_false: 0.5
platform: state
to_state: 'open'
- entity_id: cover.garage_door
prob_given_true: .50
prob_given_false: 0.5
platform: state
to_state: 'closed'
- entity_id: binary_sensor.inner_garage_door_contact
prob_given_true: .75
prob_given_false: 0.01
platform: state
to_state: 'on'
- entity_id: binary_sensor.inner_garage_door_contact
prob_given_true: .5
prob_given_false: 0.5
platform: state
to_state: 'off'
- entity_id: binary_sensor.outer_garage_door_contact
prob_given_true: .75
prob_given_false: 0.5
platform: state
to_state: 'on'
- entity_id: binary_sensor.outer_garage_door_contact
prob_given_true: 0.5
prob_given_false: 0.5
platform: state
to_state: 'off'
- entity_id: binary_sensor.workshop_person_occupancy
prob_given_true: .99
prob_given_false: 0.5
platform: state
to_state: 'on'
- entity_id: binary_sensor.workshop_person_occupancy
prob_given_true: 0.5
prob_given_false: 0.5
platform: state
to_state: 'off'