Skip to content

Instantly share code, notes, and snippets.

@Chris-V
Created November 11, 2016 05:08
Show Gist options
  • Save Chris-V/02dc1319d68e79ef40e6aac2ae4b92eb to your computer and use it in GitHub Desktop.
Save Chris-V/02dc1319d68e79ef40e6aac2ae4b92eb to your computer and use it in GitHub Desktop.
Home Assistant notification for failed login attempts
- alias: failed_login_attempt
hide_entity: true
trigger:
- platform: event
event_type: "call_service"
event_data:
domain: "persistent_notification"
service: "create"
condition:
- condition: template
value_template: "{{ trigger.event.data.service_data.notification_id == 'http-login' }}"
action:
- service: notify.admin
data_template:
title: "Home Assistant: {{ trigger.event.data.service_data.title }}"
message: "{{ trigger.event.data.service_data.message }}"
data:
data:
tag: "failed_login_attempt"
url: !secret http_public_host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment