Added new motion tracker utility meter sensor to tell me how many times motion was sensed at front door
This commit is contained in:
parent
70eb88e91f
commit
124e337f10
|
@ -60,8 +60,28 @@ sensor:
|
|||
value_template: >-
|
||||
{{ states.sensor.home_assistant_configuration.attributes.open_pull_requests }}
|
||||
|
||||
# For tracking number of times motion is detected
|
||||
# at front door in last 7 days
|
||||
- platform: history_stats
|
||||
name: Front Door Motion
|
||||
entity_id: binary_sensor.aarlo_motion_front_door
|
||||
state: 'on'
|
||||
type: count
|
||||
end: '{{ now() }}'
|
||||
duration:
|
||||
days: 7
|
||||
|
||||
utility_meter:
|
||||
# Use the 7 day history of motion at front door
|
||||
# to get daily motion.
|
||||
daily_frontdoor_motion:
|
||||
source: sensor.front_door_motion
|
||||
cycle: daily
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue