Hi everyone,
I have setup a bayesian sensor (or at least I tried) in order to detect if we are in the bed. My configuration looks like the following:
binary_sensor:
- platform: bayesian
prior: 0.5
name: Bett
probability_threshold: 0.85
observations:
- entity_id: device_tracker.thomas
prob_given_true: 0.99
prob_given_false: 0.4
platform: state
to_state: home
- entity_id: binary_sensor.handy_thomas_laedt_derzeit
prob_given_true: 0.6
prob_given_false: 0.5
platform: state
to_state: on
- entity_id: sun.sun
prob_given_true: 0.9
platform: state
to_state: below_horizon
- entity_id: binary_sensor.tv_wohnzimmer
prob_given_true: 0.9
platform: state
to_state: off
- entity_id: vacuum.robi
prob_given_true: 1
platform: state
to_state: docked
All the provided entities exist but it seems like the sensor is unable to observe them (e.g. where is the sun observation?) and thus making it’s state always to “on”:
It seems like I am missing something very important. Could someone enlighten me?
Thank you very much in advance.
Thomas