platform: 'bayesian' name: 'Bridget Home' device_class: presence prior: 0.5 probability_threshold: 0.7 observations: - entity_id: 'person.clint' prob_given_true: .99 prob_given_false: .99 platform: 'state' to_state: 'home' - entity_id: 'calendar.my_custody' prob_given_true: .99 prob_given_false: .5 platform: 'state' to_state: 'on' - entity_id: 'input_boolean.clint_work_from_home' prob_given_true: .01 prob_given_false: .33 platform: 'state' to_state: 'on' - entity_id: 'input_select.weaver_kids' prob_given_true: .99 prob_given_false: 0.01 platform: 'state' to_state: 'Home' - entity_id: 'input_select.weaver_kids' prob_given_true: .01 prob_given_false: 0.99 platform: 'state' to_state: 'Away' - entity_id: 'input_select.weaver_kids' prob_given_true: .5 prob_given_false: 0.5 platform: 'state' to_state: 'Auto' # # If I am working from home and the 'Weaver Kids' are in automatic mode # - platform: template # value_template: > # {{ is_state('input_boolean.clint_work_from_home', 'on') and is_state('input_select.weaver_kids','Auto') }} # prob_given_true: 0.01 # prob_given_false: .99 # # If I am working from home and the 'Weaver Kids' are manually set as home # - platform: template # value_template: > # {{ is_state('input_boolean.clint_work_from_home', 'on') and is_state('input_select.weaver_kids','Home') }} # prob_given_true: 0.99 # prob_given_false: .01 # # If I am working from home and the 'Weaver Kids' are manually set as away # - platform: template # value_template: > # {{ is_state('input_boolean.clint_work_from_home', 'on') and is_state('input_select.weaver_kids','Away') }} # prob_given_true: 0.01 # prob_given_false: .99