Created
November 11, 2016 05:08
-
-
Save Chris-V/02dc1319d68e79ef40e6aac2ae4b92eb to your computer and use it in GitHub Desktop.
Home Assistant notification for failed login attempts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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