Refactor automation scripts to log significant events to the Activity feed using script.send_to_logbook. This includes updates to high wind speed notifications, bad login attempts, trigger dumps, startup notifications, and various other automations across multiple packages, enhancing visibility and tracking of system activities.

This commit is contained in:
Carlo Costanzo
2025-12-12 16:38:24 -05:00
parent 8ec5173f4d
commit c365a1c233
33 changed files with 348 additions and 352 deletions

View File

@@ -1,6 +1,13 @@
###################################
## Uses IFTTT to notify me of bad logins.
###################################
######################################################################
# @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
@@ -9,11 +16,7 @@
value_template: "{{ states('persistent_notification.httplogin') != 'unknown' }}"
action:
- service: script.notify_engine
- service: script.send_to_logbook
data:
value1: 'Bad Login: '
value2: 'There was a Hack attempt!'
value3: 'Go Check the GUI for details.'
who: 'carlo'
group: 'information'
topic: "SYSTEM"
message: "Bad Login: There was a hack attempt. Check the HA UI for details."

View File

@@ -1,6 +1,13 @@
###################################
## Trigger Dump
###################################
######################################################################
# @CCOSTAN - Follow Me on X
# For more info visit https://www.vcloudinfo.com/click-here
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# -------------------------------------------------------------------
# Trigger Dump - Log feedreader events to Activity feed
# Related Issue: 1550
# Writes a Logbook entry and publishes payload to MQTT for debugging.
# -------------------------------------------------------------------
######################################################################
- alias: Trigger dump - MQTT
id: 74edd73d-f0a5-45cf-9561-c6a1777236e5
@@ -8,12 +15,10 @@
- platform: event
event_type: feedreader
action:
- service: script.notify_engine
- service: script.send_to_logbook
data:
value1: 'Check the MQTT Dump'
value2: '/dump/{{ trigger.platform }}'
who: 'carlo'
group: 'information'
topic: "SYSTEM"
message: "Check the MQTT dump: /dump/{{ trigger.platform }}"
- service: mqtt.publish
data:
topic: '/dump/{{ trigger.platform }}'