I was trying to create an automation to inform me when any entity change status to unavailable for 1 minutes.
I have successfully to use blueprint from others and also create automation without blueprint.
But those without for function. Sometimes my device will lose wifi for a few seconds but it will connect back very fast. So that doesn’t feed my needs.
Below is the working version without for x minutes. Anyone can help on this?
trigger:
platform: event
event_type: state_changed
event_data: {}
condition: template
value_template: '{{trigger.event.data.new_state.state == ''unavailable''}}'
action:
service: notify.mobile_app_iPhone
data:
message: ' {{ trigger.event.data.entity_id }} is not available'