Hi,
I would like to get a notification if motion detection was activated more the 5 times in 10 minutes period, when other automation is on.
I have a dog thats normaly sleep when I am at work, but sometimes she has problem and in that time sensor is decting a lot of moves, so If I get a notifcation I can check the camera if eveyrhing is ok. But it need to be like more the x dection in short time of period like 10 minutes, becuase sometimes she only move from place to place - I would like to avoide the alarm when she only change place.
I made something like that, will it work?
alias: Goldi test2
description: ""
trigger:
- platform: numeric_state
entity_id:
- binary_sensor.kuchnia1_occupancy
- binary_sensor.kuchnia2_occupancy
for:
hours: 0
minutes: 5
seconds: 0
above: 10
attribute: "{\"state\":\"on\"}"
condition:
- condition: state
entity_id: automation.pies_alarm
state: "on"
action:
- service: notify.mobile_app_sm_g998b
metadata: {}
data:
message: Golid
mode: single