I have an automation that notifies me whenever my phone is below 50% battery and not charging
it has been acting quite erratically lately
First off, it’s not intended to trigger more than once after the battery is below 50%, but does so regardless, in intervals that seem random to me. How would I prevent that?
trigger:
- platform: numeric_state
entity_id: sensor.iphone_battery_level
below: 50
condition:
- condition: state
entity_id: sensor.iphone_battery_state
state: Not Charging
action:
- service: notify.pushover
data:
title: charge iPhone!
message: x
- service: automation.turn_off
metadata: {}
data:
stop_actions: false
target:
entity_id: automation.automation_59
- delay:
hours: 1
minutes: 20
seconds: 0
milliseconds: 0
- service: automation.turn_on
metadata: {}
data: {}
target:
entity_id: automation.automation_59
mode: single