Hello all,
Im pretty new to coding and Homeassistant. I found some topics about how to send notifications when the battery is low or complete 0, but as my knowledge about coding is limited i could not find a solution for my case.
As the topic mentioned, i want to get an notification on my devices when the state “battery low” ia triggered for binary_sensor.int0000004_low_bat. But i cant find the variable that i need to write into the “to” section. i tried true,false,low,normal, 0 and 1, but im complete clueless what to write in there to tell homeassistant the low battery status is triggered. Sorry in advance for any errors in the coding and in explaining and big thanks if anybody can help.
alias: Battery
description: ''
trigger:
- platform: state
entity_id: binary_sensor.int0000004_low_bat
id: ' binary_sensor.int0000004_low_bat'
**to:**
condition: []
action:
- service: notify.mobile_app_iphone_von_margarethe
data:
message: Batterie leer
- service: notify.mobile_app_iphone_von_timur
data:
message: Batterie leer
mode: single