-
-
Notifications
You must be signed in to change notification settings - Fork 501
Expand file tree
/
Copy pathsend_to_logbook.yaml
More file actions
32 lines (30 loc) · 1.19 KB
/
Copy pathsend_to_logbook.yaml
File metadata and controls
32 lines (30 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
######################################################################
# @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: "startup"
message:
description: Logbook entry message
example: "Home Assistant is Up and Running!"
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