mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-12-17 12:09:02 +00:00
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:
@@ -29,6 +29,7 @@ Reusable scripts that other automations call for notifications, lighting, and sa
|
||||
| File | Why it matters |
|
||||
| --- | --- |
|
||||
| [notify_engine.yaml](notify_engine.yaml) | Single entrypoint for rich push notifications. |
|
||||
| [send_to_logbook.yaml](send_to_logbook.yaml) | Generic `logbook.log` helper for Activity feed entries (Issue #1550). |
|
||||
| [speech_engine.yaml](speech_engine.yaml) | TTS/announcement orchestration with templated speech. |
|
||||
| [monthly_color_scene.yaml](monthly_color_scene.yaml) | Seasonal lighting scenes used across automations. |
|
||||
| [interior_off.yaml](interior_off.yaml) | One-call <20>all interior lights off<66> helper. |
|
||||
|
||||
32
config/script/send_to_logbook.yaml
Normal file
32
config/script/send_to_logbook.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
######################################################################
|
||||
# @CCOSTAN - Follow Me on X
|
||||
# For more info visit https://www.vcloudinfo.com/click-here
|
||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
# -------------------------------------------------------------------
|
||||
# Send To Logbook - Generic helper for Activity/logbook entries
|
||||
# Related Issue: 1550
|
||||
# Calls `logbook.log` using `sensor.activity_feed` as the entity_id.
|
||||
# -------------------------------------------------------------------
|
||||
######################################################################
|
||||
|
||||
send_to_logbook:
|
||||
alias: Send To Logbook
|
||||
mode: queued
|
||||
fields:
|
||||
topic:
|
||||
description: Logbook entry name (headline)
|
||||
example: "n8n"
|
||||
message:
|
||||
description: Logbook entry message
|
||||
example: "Webhook received and workflow started."
|
||||
sequence:
|
||||
- condition: template
|
||||
value_template: >-
|
||||
{{ topic is defined and (topic | string | trim) != '' and
|
||||
message is defined and (message | string | trim) != '' }}
|
||||
- service: logbook.log
|
||||
data:
|
||||
name: "{{ topic | string | trim }}"
|
||||
message: "{{ message | string | trim }}"
|
||||
entity_id: sensor.activity_feed
|
||||
|
||||
Reference in New Issue
Block a user