I have a Shelly Button 1 built into HA with MQTT.
I would like the button to notify Home Assistant (via simple notification) when the battery is almost empty so that we can provide it in time.
I tried with this simple automation:
- id: ‘889895656587455’
alias: Living Room Button Battery Status Notification
description: ‘’
trigger: - platform: numeric_state
entity_id: sensor.batteria_bottone_lotto
above: 5
condition: []
action: - service: persistent_notification.create
date:
title: Living Room Button Battery Discharged
message: ‘The Battery Level is: {{states (“sensor.batteria_bottone_salotto”)}}%’
mode: single
In theory it should warn me when the button reaches 5%, but it is not so, set to 5% before the button was at about 60% it did not correctly indicate anything, since it went down to 59% it continues to warn me about the battery status, and I can’t understand why, can some kind soul help me?
Bye thank you
Micky