I want a email and mobile notification when ip_ban is happend

Hi all
Chatgpt has given up and me to :frowning:
I can get the SMTP part to work.
But when a ip_ban is happening and i get a notifivcation in HA i just cant get it to sendt me a email and a push message.
Isent this possible? :frowning:
Thanks!

Maybe look for file change and send regular push message saying “ipbans.yaml has changed”

You can probably have it send the ip using file integration

With file you can make ipbans file a text sensor and send notification when change

Wow why it this so complicated :frowning:

I’m not the best at this so there may be an easier way

Capturing the contents of ip ban then having an automation to simply notify when change is enough

It would be easier if ip ban was a sensor in ha that could be used directly. I will look to see if there is feature request for this or if it exists and I miss it

1 Like

I guess there is persistent notification. Haven’t had ip ban in a while so I forget but this could work

1 Like

I have it explained and working in that link they sent you.

1 Like

Thanks! It worked! :slight_smile: