Entity: sensor.temperature_158d0001571539
State: 25.04
Attributes:
battery_level: 39
friendly_name: Temperatura
homebridge_name: Temperatura Quarto
unit_of_measurement: °C
icon: mdi:thermometer
In the log, I can also see the following on restart:
DEBUG (MainThread) [homeassistant.components.alert] Watched entity (sensor.bedroom_sensor_battery_low) has changed
Still then, no notification is ever sent to me, even if the battery level value has changed during the course of the day (with values below the threshold of 50):
You ALERT when the sensor state is “on” but your tools tell you that the sensor state is “True”
I would say that “on” is not the same as “True”
Try changing your alarm to state: ‘True’
The sensor started as a binary_sensor and ended up as a sensor exactly because it could only be on/off. That’s why it said ‘on’. Changing it to ‘True’ seems to have the done the trick.
At least now I can see 2 lines like these in the log: DEBUG (MainThread) [homeassistant.components.alert] Beginning Alert: Bedroom sensor battery is low INFO (MainThread) [homeassistant.components.alert] Alerting: Bedroom sensor battery is low
I didn’t get the actual notification but I suppose this is because of a line which appears later in the log: INFO (MainThread) [homeassistant.components.notify] Setting up notify.ios
I’ll leave it running, to see if the notification appears after the 3600 seconds I defined to receive the alert again.
Unfortunately, although I defined 3600 seconds to get daily notifies, I get none.
These lines also don’t seem to appear anymore in the log: DEBUG (MainThread) [homeassistant.components.alert] Beginning Alert: Bedroom sensor battery is low INFO (MainThread) [homeassistant.components.alert] Alerting: Bedroom sensor battery is low
I think the simple mistake is that you should only put the notifier name in the end statement and not notify.NAME (at least that is how I did in my setup and it works great)