-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created automations and testing out various sensors to try and detect…
… when the bin has been put out. Update #40
- Loading branch information
1 parent
f9a1776
commit de8da5a
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,67 @@ | ||
# Created by Danny Tsang <[email protected]> | ||
automation: | ||
- id: "1714779045289" | ||
alias: "Bin: Taken Out" | ||
description: "" | ||
trigger: | ||
- platform: numeric_state | ||
entity_id: | ||
- sensor.bin_estimated_distance | ||
for: | ||
hours: 1 | ||
minutes: 0 | ||
seconds: 0 | ||
above: 7 | ||
condition: [] | ||
action: | ||
- service: script.send_direct_notification | ||
metadata: {} | ||
data: | ||
message: Taken out. | ||
title: Bin | ||
people: | ||
entity_id: person.danny | ||
mode: single | ||
|
||
sensor: | ||
- platform: statistics | ||
name: "Bin Distance Change Sample" | ||
entity_id: sensor.bin_estimated_distance | ||
state_characteristic: change_sample | ||
sampling_size: 100 | ||
precision: 2 | ||
|
||
- platform: statistics | ||
name: "Bin Distance 95 Percent" | ||
entity_id: sensor.bin_estimated_distance | ||
state_characteristic: distance_95_percent_of_values | ||
sampling_size: 100 | ||
precision: 2 | ||
- platform: statistics | ||
name: "Bin Distance 95 Percent Over 5 Minutes" | ||
entity_id: sensor.bin_estimated_distance | ||
state_characteristic: distance_95_percent_of_values | ||
max_age: | ||
minutes: 5 | ||
sampling_size: 50 | ||
precision: 2 | ||
- platform: statistics | ||
name: "Bin Distance Change Over 5 minutes" | ||
entity_id: sensor.bin_estimated_distance | ||
state_characteristic: change | ||
max_age: | ||
minutes: 5 | ||
sampling_size: 50 | ||
precision: 2 | ||
- platform: statistics | ||
name: "Bin Distance Change Over 1 minutes" | ||
entity_id: sensor.bin_estimated_distance | ||
state_characteristic: change | ||
max_age: | ||
minutes: 1 | ||
sampling_size: 25 | ||
precision: 2 | ||
|
||
template: | ||
- binary_sensor: | ||
- name: Bin Collection Due | ||
|