mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-12-13 10:32:24 +00:00
23 lines
957 B
YAML
Executable File
23 lines
957 B
YAML
Executable File
######################################################################
|
|
# @CCOSTAN - Follow Me on X
|
|
# For more info visit https://www.vcloudinfo.com/click-here
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
# -------------------------------------------------------------------
|
|
# Bad Login Attempts - Log security events to Activity feed
|
|
# Related Issue: 1550
|
|
# Replaces phone push with `script.send_to_logbook` using `sensor.activity_feed`.
|
|
# -------------------------------------------------------------------
|
|
######################################################################
|
|
|
|
- alias: Login Failure
|
|
id: 814c48ea-e2e1-4b75-92b0-581081af5ce5
|
|
trigger:
|
|
platform: template
|
|
value_template: "{{ states('persistent_notification.httplogin') != 'unknown' }}"
|
|
|
|
action:
|
|
- service: script.send_to_logbook
|
|
data:
|
|
topic: "SYSTEM"
|
|
message: "Bad Login: There was a hack attempt. Check the HA UI for details."
|