here is my code but it is not working as expected. is there something wrong with my syntax?
platform: "bayesian"
name: "front_sensors"
prior: 0.1
probability_threshold: 0.6
observations:
- platform: "state"
entity_id: "input_boolean.trip_wire2"
prob_given_true: 0.8
prob_given_false: 0.2
to_state: "on"
- platform: "state"
entity_id: "input_boolean.front_approach"
prob_given_true: 0.8
prob_given_false: 0.2
to_state: "on"
- platform: "state"
entity_id: "input_boolean.front_frigate"
prob_given_true: 0.8
prob_given_false: 0.2
to_state: "on"
i have 3 sensors. if any 2 of them are turned on, then Bayesian sensor will be On too. instead, it is stuck in Off (not good). if only 1 is on, then Bayesian will be Off (good)