I have a binary sensor automation to send me a mobile notification when it transitions from off to on. The problem is that HA will send me a notification roughly every minute when the sensor state is on. I just want a single notification until it changes from off to on again. Is the repeated notification expected behavior? The binary sensor if from an ESP device, and I can see in the ESP log that the transition is not bouncing, so repeated notifications are not coming from that.
Here is the automation yaml:
alias: Trap Activation
description: ''
trigger:
- entity_id: binary_sensor.trap
platform: state
from: 'off'
to: 'on'
condition: []
action:
- device_id: ce030dd6c600481bb03ffcbaebb68014
domain: mobile_app
type: notify
message: On!
title: On!
data:
push:
badge: 1
mode: single