Files
Home-AssistantConfig/config/automation/System/bad_logins.yaml

20 lines
535 B
YAML
Raw Normal View History

2018-01-01 19:00:45 -05:00
###################################
## Uses IFTTT to notify me of bad logins.
###################################
- alias: Login Failure
id: 814c48ea-e2e1-4b75-92b0-581081af5ce5
2018-01-01 19:00:45 -05:00
trigger:
platform: template
value_template: "{{ states('persistent_notification.httplogin') != 'unknown' }}"
action:
- service: script.notify_engine
data:
2018-01-01 19:00:45 -05:00
value1: 'Bad Login: '
value2: 'There was a Hack attempt!'
value3: 'Go Check the GUI for details.'
who: 'carlo'
apns_id: 'information'
2018-01-01 19:00:45 -05:00