Files
fresh-home/components/binary_sensors/rooms/master_bathroom_occupied.yaml
T
2025-11-21 09:42:43 -05:00

37 lines
900 B
YAML

platform: bayesian
unique_id: bayesianbinarysensor.master_bathroom_occupied
name: Master Bathroom Occupied
device_class: occupancy
prior: 0.2
probability_threshold: 0.75
observations:
- entity_id: group.master_bathroom_motion
prob_given_true: .99
prob_given_false: 0.05
platform: state
to_state: 'on'
# - entity_id: binary_sensor.bathroom_getting_humid
# prob_given_true: .75
# prob_given_false: 0.01
# platform: state
# to_state: 'on'
- entity_id: binary_sensor.master_bathroom_too_humid
prob_given_true: .99
prob_given_false: 0.05
platform: state
to_state: 'on'
- entity_id: input_boolean.home_occupied
platform: state
prob_given_true: .99
prob_given_false: 0.01
to_state: 'on'
# - entity_id: input_boolean.home_occupied
# platform: state
# prob_given_true: .01
# prob_given_false: 0.5
# to_state: 'off'