mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
48 lines
1.7 KiB
YAML
48 lines
1.7 KiB
YAML
platform: 'bayesian'
|
|
name: Clint Work From Home
|
|
prior: 0.4
|
|
probability_threshold: 0.75
|
|
observations:
|
|
- entity_id: 'person.clint'
|
|
# Probability that I'm working from home when person.clint is home
|
|
prob_given_true: .4
|
|
# Probability that I'm not working from home when person.clint is home
|
|
prob_given_false: .6
|
|
platform: 'state'
|
|
to_state: 'home'
|
|
- entity_id: 'person.clint'
|
|
# Probability that I'm working from home when person.clint is away
|
|
prob_given_true: .01
|
|
# Probability that I'm not working from home when person.clint is away
|
|
prob_given_false: .9
|
|
platform: 'state'
|
|
to_state: 'away'
|
|
- entity_id: 'person.clint'
|
|
# Probability that I'm working from home when person.clint is at AGH
|
|
prob_given_true: .01
|
|
# Probability that I'm not working from home when person.clint is at AGH
|
|
prob_given_false: .7
|
|
platform: 'state'
|
|
to_state: 'WMU'
|
|
# Probability that I'm working from home from 8:00 AM to 4:30 PM
|
|
- entity_id: binary_sensor.work_hours
|
|
prob_given_true: .4
|
|
# Probability that I'm not working from 8:00 AM to 4:30 PM
|
|
prob_given_false: .1
|
|
platform: 'state'
|
|
to_state: 'on'
|
|
- entity_id: binary_sensor.work_hours
|
|
# Probability that I'm working from home outside of 8AM to 4:30PM
|
|
prob_given_true: .001
|
|
# Probability that I'm not working from home outside of 8AM to 4:30PM
|
|
prob_given_false: .9
|
|
platform: 'state'
|
|
to_state: 'off'
|
|
- entity_id: binary_sensor.clint_home_during_work_hours
|
|
# Probability that I'm working from home if I'm home during work hours
|
|
prob_given_true: .8
|
|
# Probability that I'm not working from home if I'm home during work hours
|
|
prob_given_false: .2
|
|
platform: 'state'
|
|
to_state: 'on'
|