view, binary sensor, and sensor fixes

This commit is contained in:
CeeWeasel
2025-07-13 19:36:49 -04:00
parent 52a52c823c
commit f608ec2827
9 changed files with 89 additions and 223 deletions
@@ -1,61 +0,0 @@
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
@@ -1,61 +0,0 @@
platform: 'bayesian'
name: 'Emmett 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
@@ -1,4 +0,0 @@
platform: tod
name: Business Hours
after: '07:45'
before: '16:45'
@@ -1,4 +0,0 @@
platform: tod
name: Childcare Hours
after: '07:00'
before: '16:30'
@@ -1,4 +0,0 @@
platform: tod
name: Childcare NonSchool Hours
after: '08:00'
before: '16:30'
@@ -3,7 +3,7 @@ mqtt:
- name: "Timestamp"
device_class: timestamp
icon: mdi:clock-in
state_topic: "rtl_433/9b13b3f4-rtl433/devices/Nexus-TH/1/69/time"
state_topic: "rtl_433/9b13b3f4-rtl433/devices/Nexus-TH/1/+/time"
force_update: true
entity_category: diagnostic
unique_id: Nexus-TH-1-69-UTC
@@ -19,7 +19,7 @@ mqtt:
value_template: "{{ (float(value) * 99 + 1) | round(0) }}"
state_class: measurement
entity_category: diagnostic
state_topic: "rtl_433/9b13b3f4-rtl433/devices/Nexus-TH/1/69/battery_ok"
state_topic: "rtl_433/9b13b3f4-rtl433/devices/Nexus-TH/1/+/battery_ok"
force_update: true
unique_id: Nexus-TH-1-69-B
device:
@@ -33,7 +33,7 @@ mqtt:
unit_of_measurement: "°C"
value_template: "{{ value|float }}"
state_class: measurement
state_topic: "rtl_433/9b13b3f4-rtl433/devices/Nexus-TH/1/69/temperature_C"
state_topic: "rtl_433/9b13b3f4-rtl433/devices/Nexus-TH/1/+/temperature_C"
force_update: true
unique_id: Nexus-TH-1-69-T
device:
@@ -47,7 +47,7 @@ mqtt:
unit_of_measurement: "%"
value_template: "{{ value|float }}"
state_class: measurement
state_topic: "rtl_433/9b13b3f4-rtl433/devices/Nexus-TH/1/69/humidity"
state_topic: "rtl_433/9b13b3f4-rtl433/devices/Nexus-TH/1/+/humidity"
force_update: true
unique_id: Nexus-TH-1-69-H
device:
@@ -3,7 +3,7 @@ mqtt:
- name: "Timestamp"
device_class: timestamp
icon: mdi:clock-in
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/54/time"
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/+/time"
force_update: true
entity_category: diagnostic
unique_id: LaCrosse-TX141THBv2-0-54-UTC
@@ -19,7 +19,7 @@ mqtt:
value_template: "{{ (float(value) * 99 + 1) | round(0) }}"
state_class: measurement
entity_category: diagnostic
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/54/battery_ok"
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/+/battery_ok"
force_update: true
unique_id: LaCrosse-TX141THBv2-0-54-B
device:
@@ -33,7 +33,7 @@ mqtt:
unit_of_measurement: "°C"
value_template: "{{ value|float }}"
state_class: measurement
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/54/temperature_C"
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/+/temperature_C"
force_update: true
unique_id: LaCrosse-TX141THBv2-0-54-T
device:
@@ -47,7 +47,7 @@ mqtt:
unit_of_measurement: "%"
value_template: "{{ value|float }}"
state_class: measurement
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/54/humidity"
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/+/humidity"
force_update: true
unique_id: LaCrosse-TX141THBv2-0-54-H
device: