While away for the holiday my router freaked out and stopped updating my DDNS. I was still receiving the occasional notification email from HA, but was unable to connect directly without the IP. This has happened before, which has made me decide to setup a “System Update” email to be sent to me 4x per day when I’m traveling. The email will have External IP address and current states of a few sensors (temp, security lights, etc.) My thought being that if I lose contact via DNS, within a few hours I will have the IP address so I can VPN in and reboot.
Ideally I’d like the email sent at 00:00, 06:00, 12:00, and 18:00. Can somebody point me to how I do this? I tried:
trigger:
- platform: time
hours: ‘/6’
minutes: ‘00’
seconds: ‘00’
but HA did not seem to like it. It sent me 6 emails immediately and then nothing after.
Also, I often find that I build something new in HA to fill a need of mine just to find out later that there is a core component/feature that does the exact thing I just built. So I’ll ask, is there a better way for me to accomplish my goal?
So that I understand, you are using a rest sensor to get your external IP (as I am). Your automation triggers when the external IP address changes. How often does HA check the external IP address? Is there a default and can it be modified?
I’m also having trouble understanding the condition. Is it checking whether it has been 5 minutes since the attributes have been checked? Can you please help with the logic?