Intruder alert!

Very nice friend Bob. Thank you

1 Like

@Bob_NL unhappy yes and you have to be a customer of Free Mobile and you can only send sms to your own number (to avoid any spams or abuse !!)

@Bob_NL thanks for the trick, message is now perfect on my phone :slight_smile:

1 Like

Than it has to be a syntax error. Can you post your automation?

My Pushbullet component stopped working with a recent HA update :disappointed:

That issue should have been fixed.

I can confirm that Pushbullet notifications are working fine in 0.51.2 here

Awesome idea, thx bro! :smiley:

1 Like

Hi Bob. Nice idea and I copied it into my configuration. It works, at least the detection works. But because I’ve set up a SSL reverse proxy through my Synology NAS, it detects only the internal IP address of my Synology.

Does anybody has a solution for this problem, or is it simply not possible to resolve the external IP address through a SSL reverse proxy ?

You’re right! I had to update the trigger per the giant warning about homeassistant_start (https://home-assistant.io/docs/automation/trigger/). Thanks for getting that back on my radar, that has been annoying.

Hi,

I had the same problem. Getting the external IP address on the backend you have to modify both the reverse proxy and the webserver at the backend. The solution depends on what webserver you are running. I enabled authentication on the reverse proxy of my Synology. When I try to access HA from outside my home I have to login, when I access it from my lan I don’t. It should be possible to enable logging on synology for login attempts and do something with it (fe. fail2ban)

Sorry, I dont have any experience with reverse proxies.

This is working for me on 0.51.1 nice thanks

@carlostico can you be more specific on what doesn’t work?

1 Like

entity_id: persistent_notification.httplogin
Bob where can I find this entity? It is not in my list. Although you mentioned just the pushbullet entry as additional set up

It’s only there when the persistant norification is shown in your frontend. You can create it by entering a wrong password.

1 Like

Bedankt het werkt inderdaad smooth :wink:

Graag gedaan landgenoot :slight_smile:

btw pushbullet works nice! It right away takes you to the website. So this is a handy add on!

I took this a step further and forwarded all persistent notifications to Telegram by triggering on the persistent_notification.create service call event:

automation:
  - alias: forward_persistent_notifications
    initial_state: 'on'
    trigger:
      - platform: event
        event_type: call_service
        event_data:
          domain: persistent_notification
          service: create
    action:
      - service: notify.telegram
        data_template:
          message: >-
            {% set message = trigger.event.data.service_data.message %}
            {% if 'invalid authentication' in message or 'login attempts' in message %}
              {{ message }}: http://www.ip-tracker.org/locator/ip-lookup.php?ip={{ message.split('from ')[1] }}
            {% else %}
              {{ message }}
            {% endif %}
6 Likes