I have a dual WAN failover/failback set up in my router. I would like to be notified when the main WAN goes down. so I set up the DNS IP component. It is working and shows my public IP and when it changes.
However I never receive the following notification:
- id: dns_notification
alias: 'DNS Change Notification'
trigger:
platform: state
entity_id: sensor.myipopendnscom
action:
service: notify.iphone
data_template:
message: 'Public IP changed from {{ trigger.from_state.state }} to {{ trigger.to_state.state }}'
data:
push:
sound: "Attention.wav"
I can receive other notifications via notify.iphone no matter which WAN I am connected to.
Any ideas as to why this automation is not working?