Heyhey
Im using battery notes and I want to check for devices with low threeshold every day (except on non workdays).
If there is a device present I want to receive a telegram message telling me the devices name and the batteries needed.
In the docs I found the following automation (where I added the workday test):
alias: Daily Battery Low Check
description: Check whether a battery is low
triggers:
- trigger: time
at: "09:00:00"
conditions:
- condition: state
entity_id: binary_sensor.workday_sensor
state: "on"
actions:
- action: battery_notes.check_battery_low
data: {}
mode: single
This, obviously, doesnt send any notification.
How do I get the devices now?
No I do not have, because I dont understand this.
It wouldnt be an issue for me changing the other automation, which raises a persistent notification on battery low, into sending a telegram message.
But this automation uses the battery_notes_battery_threshold as trigger.
I think if I run - action: battery_notes.check_battery_low
the idea is to “manually” trigger this as the event is fired, if there is a device with low threshold available. Is this correct?
And if this is the way to go do I get notification every day for a low battery device, or only once?
And how to pretend the automation from running, outside “my call”.
This automation would send me a message as soon as a device has low battery, I dont want this to happen (only at specific time, when my check automation runs).
Hmm. Sorry I need to ask again as i stil didnt get it.
I now have both automations. The one that calls the battery low check:
action: battery_notes.check_battery_low
And the one that raises a persistent notification on battery low.
The battery low check can easy be scheduled with condition and I tested (as I have a low battery present at the moment), if I call the check_battery_low I get the persistent notification.
BUT the automation sending the persistent notification does run every time a battery wents low, doesnt it?
If I set a devices’ low battery state to 5% I should get a notification as soon as the battery hits this state.
How to prefent this?