I would like to receive a notification when the LED is on and the lux sensor reading is greater than 12lx for 1 minute.
situation: Led is on till the next washing machine use.
I’ve automated two diffrent automation. Automation with a numeric state trigger sends messages every three and ten minutes.
Automation trigger is State
id: '1681152431843'
alias: washer notification
description: ''
trigger:
- platform: state
entity_id:
- sensor.washer
condition:
- condition: template
value_template: '"{{ trigger.to_state.state | int > 12 }}"'
action:
- service: notify.telegram_xxx
data:
message: Washing machine is finished
mode: single
Automation trigger is Numeric state
id: '1681987053661'
alias: New washer
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.washer
for:
hours: 0
minutes: 1
seconds: 0
above: 12
condition: []
action:
- service: notify.telegram_xxx
data:
message: Washing machine is finished
mode: single