Hi there,
again a noob, who has just started.
What I want to do:
I have an aqara sensor for open/close status. This is recognized and working already.
I want it to trigger a telegram message to my mobile, if the fridge is not closed. I already got it working with a alert action, but it now sends everytime if the fridge is open. Therefore, I want to modify that in a way, that it only sends a warning message if the fridge is open for, lets say >1 minute.
I found, that this is not working with a normal alert, but a binary sensor, but unfortunately, here I am stuck at progress → it doesnt work.
Attached is the code that I tried in different variations already:
template:
- binary_sensor:
- name: "kuhlschrank_status_sensor"
delay_off:
minutes: 1
state: "{{ is_state('binary_sensor.openclose_27') , 'on' }}"
alert:
kuehlschrank_status_alarm:
name: Kuehlschrank ist offen!
done_message: Kuehlschrank wieder geschlossen!
entity_id: binary_sensor.kuhlschrank_status_sensor
state: "on"
repeat: 5
can_acknowledge: true
notifiers:
- zyv_telegram
So, it shows no configuration failures, but running it, wont generate any messages.
On the frontend it shows:
so, something seems to be wrong with that generated binary sensor of mine.
Anybody might chip in to help?
Thx already!
BR,
Martin