Bad Login Notify

I have searched and tried all the samples I found on the forum. Cant seems to get any to work.
What I’m looking for is to get notified if someone tries to login to my HA with the wrong password. Anyone have this working?

Here is what I have. I believe the persistent notification of a bad login is built in and has been since the low 0.30.0 releases.

  - alias: "Send notification upon failed login attempt"
    trigger:
      - platform: state
        entity_id: persistent_notification.httplogin
    condition:
      - condition: template
        value_template: "{{ trigger.to_state.state != 'None' }}"
    action:
      - service: notify.home_assistant
        data_template:
          title: "Failed Home Assistant login!"
          message: "{{ trigger.to_state.state }}"
2 Likes

Here is mine. Slightly different…

https://github.com/CCOSTAN/Home-AssistantConfig/blob/master/automation/System/bad_logins.yaml

3 Likes

Thanks Guys
Did some playing around and just got it working.
:slight_smile: