mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-27 16:05:07 +00:00
You can find the entire repo here.
This commit is contained in:
26
config/automation/System/bad_logins.yaml
Executable file
26
config/automation/System/bad_logins.yaml
Executable file
@@ -0,0 +1,26 @@
|
||||
###################################
|
||||
## Uses IFTTT to notify me of bad logins.
|
||||
###################################
|
||||
|
||||
- alias: Login Failure
|
||||
hide_entity: True
|
||||
trigger:
|
||||
platform: template
|
||||
value_template: "{{ states('persistent_notification.httplogin') != 'unknown' }}"
|
||||
|
||||
action:
|
||||
- service: script.notify_engine
|
||||
data_template:
|
||||
value1: 'Bad Login: '
|
||||
value2: 'There was a Hack attempt!'
|
||||
value3: 'Go Check the GUI for details.'
|
||||
who: 'carlo'
|
||||
|
||||
- service: script.tweet_engine
|
||||
data_template:
|
||||
tweet: >
|
||||
{{ [
|
||||
"Seriously, I am a Smart Home. I am logging your hack attempt.",
|
||||
"If you do not know the password, you get locked out and IP banned.",
|
||||
"Three Strikes and you are OUT! IP Banned."
|
||||
] | random + "#Security"}}
|
Reference in New Issue
Block a user